How to get Mysql execute messager from php code? -


how messager mysql query ?

ex :

$results = $this->query("select * tbl.admin");  if($results){     echo 'affected rows: 0 , 6 total results , time: 0.001s'; }else{     echo $mysql_error; } 

so when use update,delete query when execute success messager like

"1 row affected."

how can ?

thanks , regards

do mean

if (!is_bool($results)) {     $num_rows= mysql_num_rows($results);     echo "number of rows returned $num_rows"; } else {     echo "no rows returned."; } 

hope helps.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -