code_junkie

Silly sprintf() question

Nov 13th, 2011
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. sprintf("SELECT robot FROM robots WHERE robot LIKE '%s'",strtolower($user_agent));
  2.  
  3. sprintf("SELECT robot FROM robots WHERE robot LIKE '%%s%'",strtolower($user_agent));
Add Comment
Please, Sign In to add comment