Tom,
I don't think I'm trying to get a sequence value. 🙂 I just want to grab the unique ID of the last insert so I can then insert that as a foreign key into another table. (I know mysql doesn't really support FKs).
So in my code I do this:
$NewID=mysql_insert_id(); //get the last id
then...
$query="INSERT INTO request VALUES(NULL, NULL, '$request','$type',1,'$NewID')";
where the $NewID is the primary key of the last insert...
Does that make sense?
Im not sure why you have it like this:
$query 'insert into table (value) values ('string');
Why are you putting (value) right after table? I'm confuzed.
Thanks Tom! 🙂
chris