I am using PHP5 and MySQL. I use functions mysql_...().
mysql_...()
if (mysql_num_rows($query_identifier) == 0) echo "Query returned 0 rows";
In addition, mysql_query () returns falsein case of an error.
false
Guide: MySQL functions in PHP
If you use mysqli_ functions, you can call $ stmt-> num_rows () . But only after calling $ stmt-> store_result () to ensure that all rows have been returned.
Source: https://habr.com/ru/post/1726691/More articles:Implementation of a comet on the database side - databaseSilverlight 4.0 + MVC 2.0 + WCF RIA Services + EF 4.0 = Error loading - silverlight-4.0Возможно ли иметь jeditable popup вместо встроенного - jqueryHow to use C ++ lib from python - pythonSilverlight, RIA services, MVC2P2 = no data - silverlightEclipse PDT does not emphasize syntax errors and code termination - eclipseHow to split records with rubies on rails? - ruby-on-railsHow to "build and run" without binding to gdb in Xcode? - objective-cHow to change a UITextField to look like a search box? - iphoneBest way to deal with Cocoa malloc failure - mallocAll Articles