popcornplya Posted October 28, 2008 Share Posted October 28, 2008 Whats the difference between mysql_query("SELECT * FROM `whatever`") and mysql_query("SELECT * FROM whatever") Whats the point of the `? Quote Link to comment https://forums.phpfreaks.com/topic/130368-solved-difference/ Share on other sites More sharing options...
Jeremysr Posted October 28, 2008 Share Posted October 28, 2008 In this case it's optional, but if a table or column name contains spaces or is a MySQL keyword, you have to put it in backquotes. Quote Link to comment https://forums.phpfreaks.com/topic/130368-solved-difference/#findComment-676274 Share on other sites More sharing options...
bobbinsbro Posted October 28, 2008 Share Posted October 28, 2008 well, for me, using mysql 5, the difference is that the first of the 2 throws an error... Quote Link to comment https://forums.phpfreaks.com/topic/130368-solved-difference/#findComment-676275 Share on other sites More sharing options...
popcornplya Posted October 28, 2008 Author Share Posted October 28, 2008 Ohh, I see. Thanks Jeremy. Quote Link to comment https://forums.phpfreaks.com/topic/130368-solved-difference/#findComment-676276 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.