Jump to content

SQL "LAST" Function


supertrucker

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...