PHP Code:
require("./config.php");
$db_connection = mysql_connect($servername, $dbusername, $dbpassword)
or die("Database unavailable");
mysql_select_db($dbname, $db_connection)
or die("Database unavailable");
$sql_query = "
INSERT INTO content ( 'contentid' , 'content' , 'type' , 'ObjectID' , 'order' )
VALUES ('', $title[0], 'title', $objectID, '1');
INSERT INTO content ( 'contentid' , 'content' , 'type' , 'ObjectID' , 'order' )
VALUES ('', $con[0], 'normal', $objectID, '2');
INSERT INTO content ( 'contentid' , 'content' , 'type' , 'ObjectID' , 'order' )
VALUES ('', $title[1], 'title', $objectID, '3');
INSERT INTO content ( 'contentid' , 'content' , 'type' , 'ObjectID' , 'order' )
VALUES ('', $con[1], 'normal', $objectID, '4');
";
$whatever2 = mysql_query($sql_query, $db_connection);
mysql_close($db_connection);
Comment