<?php
session_start();
include "../inc/chec.php";
include "../conn/conn.php";
$t_sqlstr = "select * from chuku where id = ".$_GET[id] or die(mysql_error());
$t_result = mysql_query($t_sqlstr,$conn) or die(mysql_error());
$t_rows = mysql_fetch_row($t_result) or die(mysql_error());
?>
运行错误提示:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
session_start();
include "../inc/chec.php";
include "../conn/conn.php";
$t_sqlstr = "select * from chuku where id = ".$_GET[id] or die(mysql_error());
$t_result = mysql_query($t_sqlstr,$conn) or die(mysql_error());
$t_rows = mysql_fetch_row($t_result) or die(mysql_error());
?>
运行错误提示:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
解决方案 »
- xtrabackup添加--slave-info参数全备失败, InnoDB: Operating system error number 2
- 为何我的一条insert语句插入两条数据?
- win xp 系统下MYSQL 安装没错 关机重启无法正常启动
- mysql优化
- 问一个mysql基础问题
- 地名数据库设计问题
- 请教两个MYSQL的问题
- 请教高手:可以用VC++建一个MYSQL表吗
- 值得研究的问题,在线等候!!!
- mysql 多表查询 1700+条数据查询1700+次 需要20多分钟,怎么可以优化一下
- 从.myd.myi.frm 导入的表,提示was created with a different version of MySQL and cannot be
- 为什么能查出count(*)但是找不出 select *
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2' at line 1