Welcome Guest, Not a member yet? Register   Sign In
Affected rows VS Matched rows
#2

[eluser]Alexxz[/eluser]
What do you think about that way of implementation from PHP.net web site?

Quote:
Code:
function mysql_modified_rows () {
        $info_str = mysql_info();
        $a_rows = mysql_affected_rows();
        ereg("Rows matched: ([0-9]*)", $info_str, $r_matched);
        return ($a_rows < 1)?($r_matched[1]?$r_matched[1]:0):$a_rows;
        }


Messages In This Thread
Affected rows VS Matched rows - by El Forum - 12-06-2007, 12:57 AM
Affected rows VS Matched rows - by El Forum - 12-06-2007, 01:27 AM
Affected rows VS Matched rows - by El Forum - 12-06-2007, 01:33 AM
Affected rows VS Matched rows - by El Forum - 12-06-2007, 01:40 AM
Affected rows VS Matched rows - by El Forum - 12-06-2007, 01:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB