Niccaman Posted March 18, 2009 Share Posted March 18, 2009 Please tell me why when i $_GET an integer and die it, it displays absolutly nothing. e.g. url...../?num=4 $var = $_GET['num']; die($var); Quote Link to comment Share on other sites More sharing options...
drisate Posted March 18, 2009 Share Posted March 18, 2009 What are you trying to do bro? Are you trying to delete the value? try unset() instead. Quote Link to comment Share on other sites More sharing options...
Niccaman Posted March 18, 2009 Author Share Posted March 18, 2009 ty for response im using die for checking the value of the variable im using. It normally would display the number. Quote Link to comment Share on other sites More sharing options...
seaweed Posted March 18, 2009 Share Posted March 18, 2009 try... $var = $_GET['num']; echo $var; Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted March 18, 2009 Share Posted March 18, 2009 From die/exit section of the php manual - If status is a string, this function prints the status just before exiting. If status is an integer, that value will also be used as the exit status. Exit statuses should be in the range 0 to 254, the exit status 255 is reserved by PHP and shall not be used. The status 0 is used to terminate the program successfully. You need to force a value to be a string for it to be printed. Quote Link to comment Share on other sites More sharing options...
Niccaman Posted March 18, 2009 Author Share Posted March 18, 2009 That was it. Thankyou. Quote Link to comment 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.