Weeks! Weeks I say! This has me baffeled. I want to insert some data to a table. It just won't work for me.
This is my code:
<?php
$con = mysql_connect(<host>, <name>, <pass>);
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$dog = 'fish';
$photo = 0;
mysql_select_db(<database>, $con);
mysql_query("INSERT INTO breeds (id, breed, photo)
VALUES (NULL, $dog, $photo)");
mysql_close($con);
?>
The table is as follows:
AUTO_INCREMENT, VARCHAR, DECIMAL
All NOT NULL
What am I doing wrong?