mysql_affected_rows()

예제
<?
$db = mysql_connect("localhost", "board_user", "12345");
mysql_select_db("board_db", $db);
$query = "UPDATE board_db SET datecheck = now() WHERE num < 5";
$mysql_result = mysql_query($query, $db);

$affected_rows = mysql_affected_rows($db);
print ("$affected_rows 갱신되었습니다.");
mysql_close($db);
?>
Posted by csbuilder