I can't get it to return anything other than 0...
Here's my code...am I missing something? I am first just trying the example code that was given to see if I am obtaining the ID. (so far I'm not) The goal then, once I can obtain it will be to insert it: addphotos.php?id=$ID
Thanks for your help.
$query = "INSERT INTO mutual (ID ,Year ,Make ,Model ,BodyStyle ,Notes ,Price ,`Description ) VALUES ('' ,'$Year' ,'$Make' ,'$Model' ,'$BodyStyle' ,'$Notes' ,'$Price' ,'$Description' )";
printf ("Last inserted record has ID %d\n", mysql_insert_ID());
$result = mysql_query($query);
if ($result)
{echo 'Car successfully added. Now <a href="addphotos.php?id=$ID">Add Photos</a>.';}
else
{echo 'Car not added. There was an error.';}