Revision: 58432
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 14, 2012 02:31 by vdubplate
Initial Code
<?php $connect = mysql_connect("localhost:8889","root","root"); if (!$connect) { die('Could not connect: ' . mysql_error()); } mysql_select_db("ourDatavase", $connect); mysql_query("INSERT INTO someData (name, email, address) VALUES ('Peter', '[email protected]', '35 curtis way')") || die(mysql_error()); mysql_query("INSERT INTO someData (name, email, address) VALUES ('POooFace', '[email protected]', '33 poo way')") || die(mysql_error()); mysql_close($connect); ?>
Initial URL
Initial Description
$connect = mysql_connect("localhost:8889","root","root"); Means: server, user, pass
Initial Title
Add info to mysql table
Initial Tags
Initial Language
MySQL