> $sql = "SELECT userid FROM users WHERE MAX(userid) AS userid";
> 
> Wouldnt this also get the last userid if it is called right after you 
> input your values?


Better:
"SELECT userid FROM users order by userid desc limit 1 "

No. You have multiprocessing and might get the last id of another process.


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to