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 `? 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. 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... 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. Link to comment https://forums.phpfreaks.com/topic/130368-solved-difference/#findComment-676276 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.