View Single Post
Old 07-12-2009, 07:27 PM   #4 (permalink)
adamdecaf
The Addict
 
Join Date: May 2009
Posts: 287
Thanks: 5
adamdecaf is on a distinguished road
Default

Quote:
Originally Posted by Enfernikus View Post
Don't use backticks, makes your query more portable. And while Adamn said it was oversimplified also keep in mind to try and not use the asterisk as it slows down the query
Your correct, you could just grab the user-id field where it matches the input. It would be a faster solution but more knowledge of the subject area would be required.

Also, both of my PHP/MySQL Distributions require backticks, the query fails without them.
__________________
My Site
adamdecaf is offline  
Reply With Quote