MySQL Insert information into tables
Insert information into tables
<?php
$db = "1book";
$table = "_info";
$address = "Grand Aveneu";
$link = mysql_connect("localhost","root","pass") or die("Couldn't connect to MySQL");
mysql_select_db($db , $link) or die("Select DB Error: ".mysql_error());
mysql_query ("
INSERT INTO $table (name, home, mobile, email, address) VALUES
('John Smith', '39129389', '121341237', 'test@example.com', '$address')
") or die("Insert table Error");
mysql_close($link);
?>