Jump to content

output response from mysql


Omzy

Recommended Posts

Lets say I run a mysql query in my php script, I want a message to be output with the mysql response, for example "1 row added", or "2 rows affected".

 

Currently I've got it to output an error message if it fails, as follows:

 

 
mysql_query($query) or die("<b>Error " .mysql_errno($connect). " - " .mysql_error($connect). "</b>");

Link to comment
https://forums.phpfreaks.com/topic/170550-output-response-from-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.