Lodius2000 Posted April 28, 2009 Share Posted April 28, 2009 if I use a mysql query like 'SELECT title, post FROM table WHERE id = 23' but there is no id = 23 what is the php value of a variable made out of title or post? NULL, 2 single quotes ( '' ), something else? thanks Quote Link to comment https://forums.phpfreaks.com/topic/155929-solved-php-mysql-theory-question-easy-one/ Share on other sites More sharing options...
premiso Posted April 28, 2009 Share Posted April 28, 2009 Try it out and see. You can use var_dump on the value you are assigning the return set to to see what it is that was returned. Quote Link to comment https://forums.phpfreaks.com/topic/155929-solved-php-mysql-theory-question-easy-one/#findComment-820802 Share on other sites More sharing options...
Lodius2000 Posted April 28, 2009 Author Share Posted April 28, 2009 duh, Im such a fool. I always forget about the 'troubleshooting' functions and jump straight to asking a total noob question Solved Quote Link to comment https://forums.phpfreaks.com/topic/155929-solved-php-mysql-theory-question-easy-one/#findComment-820803 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.