<?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
解决方案 »
- 关于mysql procedure嵌套游标
- mysql下,如果判断某个表的某个索引是否存在?
- 请教php调用mysql存储过程问题!谢谢指点
- mysql 5.1 以上版本在哪里下载
- 像这样的语句要怎么优化
- 请问mysql库-->user表--->host字段--->%--->什么意思?
- mysql用TRUNCATE来删除表数据,表中原来有84条记录,TRUNCATE却返回只影响了83条。
- PostgreSQL 分组查询问题
- 跪求[怎么解决asp代码读取mysql中文数据显示成?????]
- 如何在创建表的时候使2个字段联合起来的值是不能重复的,并且不是主健
- 从.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