<?php
$connection = mysql_connect("localhost", "******", "******");
if (!$connection)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("trickyph_testdb1", $connection) or die('Could not select DB.');
$query = "INSERT INTO users (FirsName, LastName, Address, City) VALUES ('Jimmy', 'Watts', '484 Wolfer Ln.', 'Springston')";
mysql_query($query, $connection);
mysql_close($connection);
?>
Executing the query in phpMyAdmin works fine, but when I try to use the example above, nothing happens. Any suggestions?
Thanks.