PHPDiscussion related to PHP web development, PHP coding. Tutorials, source code, tips and tricks related to PHP programming.
The thread "If statement not recognising when mysql_num_rows returns 0 results" has not received any replies for a month. It has been automatically closed as a result. You may start a new thread on the topic if the information in this thread is not sufficient.
If statement not recognising when mysql_num_rows returns 0 results
Here is my code: PHP: --------- if( mysql_num_rows($result) == 0 ) { echo "Not Found"; } --------- What am I doing wrong here? When the query returns 0 rows, it does not echo "Not Found". I even did an echo mysql_num_rows($result), and it displays 0. Your help is greatly appreciated. Frank
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
__________________ █ High Quality To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
█ Powerful To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
█ To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
The thread "If statement not recognising when mysql_num_rows returns 0 results" has not received any replies for a month. It has been automatically closed as a result. You may start a new thread on the topic if the information in this thread is not sufficient.