Home > Backend Development > PHP Tutorial > 以下是小弟我写的PHP表单值提取文件,请高手看一下,哪有有关问题~[]

以下是小弟我写的PHP表单值提取文件,请高手看一下,哪有有关问题~[]

WBOY
Release: 2016-06-13 13:53:05
Original
826 people have browsed it

以下是我写的PHP表单值提取文件,请高手看一下,哪有问题~[在线等]

include( "connconfig.php ");
mysql_query( 'SET       NAMES       gb2312; ');
$inttime=time();

$print= "insert   into   kanqing
(leixing,quyu,dizhi,guimo,lianxiren,lianxidianhua,xiangmu,jianjie,beizhu)   values  
($_POST[leixing],$_POST[quyu],$_POST[dizhi],$_POST[guimo],$_POST[lianxiren],$_POST[lianxidianhua],
$_POST[xiangmu],$_POST[jianjie],$_POST[beizhu] ";
mysql_query($print);

echo   $print;

?>

------解决方案--------------------
echo $print ;
看看SQL 语句对的,值有没有取过来!
------解决方案--------------------
你都不说出了什么问题?
------解决方案--------------------
也不知道connconfig.php是什么内容,也不知道哪出错了,也不知道错误提示
- -|||
------解决方案--------------------
sql没有单号吧。

最好做个封装类。直接可以用数组提交自动生成SQL就简单加不易出错
------解决方案--------------------
引号
------解决方案--------------------
缺括号,缺引号。

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