如何使用php存储变量中受影响的行数?
下面是我的代码的样子如何使用php存储变量中受影响的行数?,php,Php,下面是我的代码的样子 $update = mysql_query("update profile set status=1 where id='$id_ex'")or die("error from $update".mysql_error()); printf("Affected record is : %d\n", mysql_affected_rows()); 谢谢直接储存在一个可变的 $update = mysql_query("update profile set status=1
$update = mysql_query("update profile set status=1 where id='$id_ex'")or die("error from $update".mysql_error());
printf("Affected record is : %d\n", mysql_affected_rows());
谢谢直接储存在一个可变的
$update = mysql_query("update profile set status=1 where id='$id_ex'")or die("error from $update".mysql_error());
$affected_rows = mysql_affected_rows();
printf("Affected record is $affected_rows");
下面是php文档
$variable=mysql\u受影响的行()代码>