PHP未运行将表/插入表添加到表中的MySQL查询 [英] Php not running mysql queries that add tables/innsert into tables

查看:106
本文介绍了PHP未运行将表/插入表添加到表中的MySQL查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在php中运行mysql查询时,如果它们创建表或将数据插入表中,它们似乎会失败. Mysql_error不显示任何内容,并且我已经检查了连接.如果我将查询复制粘贴到phpmyadmin中,它将起作用.我以与php scropt中相同的用户身份登录.是我必须更改的设置吗?

Hi
When running mysql queries in php, they seem to fail if they create tables or insert data into tables. Mysql_error does not display anything, and i have checked the connection. If i copy-paste the query into phpmyadmin, it works. I am logging in with the same user as in the php scropt. Is it a setting i have to change?

推荐答案

您好,是从另一台PC登录的,因此名称有所不同.但是这是代码段(无法编辑?)

Hi, logged in from another pc, so name is different. But here is the code snippet(Cannot edit?)


继续 = 1 ; echo " ; echo " .
continue = 1; echo "Checking details:<br />"; echo "Connect to " .


_POST [" ]. " ;
_POST["host"] . "... ";


这篇关于PHP未运行将表/插入表添加到表中的MySQL查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆