$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 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'; } 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 :-) 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
Archived
This topic is now archived and is closed to further replies.