Home  >  Article  >  Backend Development  >  没法调用include/common.inc.php

没法调用include/common.inc.php

WBOY
WBOYOriginal
2016-06-13 13:00:391674browse

无法调用include/common.inc.php
手动写的连接数据库去掉注释符可以运行,但我想用调用的方法就是无法调用include/common.inc.php晕死求助啊
require_once(dirname(__FILE__)."/../include/common.inc.php");
 /* $link=mysql_connect("localhost","root","");
    mysql_query("set names 'gbk'");  
    mysql_select_db("zynk2");  */
$username=$_POST["username"];
$age=$_POST["age"];
$phone=$_POST["phone"];
$date=$_POST["date"];
$xiangmu=$_POST["xiangmu"];
$bingqing=$_POST["bingqing"];

$tsql="insert into dede_diyform1(username,age,phone,date,xiangmu,bingqing) values('$username','$age','$phone','$date','$xiangmu','$bingqing')";

$trs=mysql_query($tsql);
echo"$trs";
if($trs){
           echo "信息已被添加到数据库";
     }
     else{
         echo "信息没被添加";
      }

?>
------解决方案--------------------
那你贴出 common.inc.php 文件的全路径

Statement:
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