Home > Backend Development > PHP Tutorial > phpmyadmin运行sql出现有关问题

phpmyadmin运行sql出现有关问题

WBOY
Release: 2016-06-13 12:58:42
Original
857 people have browsed it

phpmyadmin运行sql出现问题

本帖最后由 huoshi5151 于 2012-12-09 21:58:13 编辑 在phpmyadmin中,无论sql语句条件如何写,点击执行后总是
SELECT * <br />
FROM `test` <br />
WHERE 1 <br />
LIMIT 0 , 30
Copy after login
Copy after login

例如:我输入的sql语句是
SELECT `name` FROM `test` WHERE `id`=2
Copy after login

结果点击执行后,输出的还是按照
SELECT * <br />
FROM `test` <br />
WHERE 1 <br />
LIMIT 0 , 30
Copy after login
Copy after login
输出

------解决方案--------------------
这有什么关系 
------解决方案--------------------
phpmyadmin版本的问题应该是,你换一个最新的版本试一下,实在不行换SQL的管理工具呗,在PHP里语句执行不是没问题么
------解决方案--------------------
是吗, 那你觉得输出什么结果才是对的 
------解决方案--------------------
引用:
引用:phpmyadmin版本的问题应该是,你换一个最新的版本试一下,实在不行换SQL的管理工具呗,在PHP里语句执行不是没问题么
php里执行好像也有问题
PHP code?123456789


$conn=@mysql_connect("localhost","root","123456") or die("链接失败");
mysql_select_db("test",$conn);
 
$sql="SELECT * FROM `test`";
$row=mysql_fetch_array($sql);
 
var_dump($row);
 
?>

这样的结果  标出来看下
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template