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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -