supertrucker Posted April 24, 2008 Share Posted April 24, 2008 Here's my code SELECT LAST(LinkId) FROM waplinks WHERE SubmitterId='1' This code generates a syntax error, but doesn't tell me what I did wrong... Link to comment Share on other sites More sharing options...
homiee Posted April 24, 2008 Share Posted April 24, 2008 trySELET MAX(LinkId) as LastLinkId FROM waplinks WHERE SubmitterId='1' Link to comment Share on other sites More sharing options...
supertrucker Posted April 25, 2008 Author Share Posted April 25, 2008 Thanks for your help! I also found this in the PHP SQL functions, that does exactly what I needed: $linkid=mysql_insert_id(); Returns the unique id of the last insert row. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.