摘要:
prepare("select id, name, price, num, desn from shops where id>?"); $stmt->bind_param("i", $id); $stmt->bind_result($id, $name, $price, $num, $d... 阅读全文
摘要:
prepare($sql); //给占位符号每个?号传值(绑定参数) i d s b $stmt->bind_param("sdis", $name, $price, $num, $desn); $name="zhangsan"; $price=56.78; $... 阅读全文
摘要:
query($sql); $rows=$result->num_rows; $cols=$result->field_count; echo "表中{$rows}行,{$cols}列"; //记录信息 /* $result->fetch_row() ----... 阅读全文
摘要:
query($sql); $rows=$result->num_rows; $cols=$result->field_count; echo "表中{$rows}行,{$cols}列"; $mysqli->close(); 阅读全文
摘要:
'80'"; $result=$mysqli->query($sql); if(!$result){ echo "SQL语句有误"; echo "ERROR:".$mysqli->errno."|".$mysqli->error; ex... 阅读全文
摘要:
query($sql); if(!$result){ echo "SQL语句有误"; echo "ERROR:".$mysqli->errno."|".$mysqli->error; exit; } echo $mysqli... 阅读全文
摘要:
character_set_name().""; echo $mysqli->get_client_info().""; echo $mysqli->host_info.""; echo $mysqli->server_info.""; echo $mysqli->serve... 阅读全文
摘要:
0) { echo '上传错误: '; switch ($_FILES['myfile']['error']) { case 1: die('上传文件大小超出了PHP配置文件中的约定值:upload_max_filesize'); ... 阅读全文