Snippet
PHP - MySQL Insert
A basic PHP example that connects to MySQL, inserts a row and closes the connection.
$dbServer = 'localhost';
$dbUserName = 'username';
$dbPassword = 'password';
$connection = mysql_connect($dbServer, $dbUserName, $dbPassword);
if (!$connection) {
die('Connection Failed : ' . mysql_error());1 min read#MySQL#PHP