$php_mysql$ Posted October 6, 2010 Share Posted October 6, 2010 friends if an array returns results as Array() how could i set an error message to it? i tried to do a if statement to the $variable but not working Quote Link to comment https://forums.phpfreaks.com/topic/215269-if-array-returns-0-error-message/ Share on other sites More sharing options...
trq Posted October 6, 2010 Share Posted October 6, 2010 if (empty($array)) { echo 'The array named $array is empty'; } Quote Link to comment https://forums.phpfreaks.com/topic/215269-if-array-returns-0-error-message/#findComment-1119499 Share on other sites More sharing options...
$php_mysql$ Posted October 6, 2010 Author Share Posted October 6, 2010 thanks soo much :-) Quote Link to comment https://forums.phpfreaks.com/topic/215269-if-array-returns-0-error-message/#findComment-1119505 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.