Home  >  Article  >  Backend Development  >  php-PHP留言板问题! 好像是连接数据库有问题 求解答

php-PHP留言板问题! 好像是连接数据库有问题 求解答

WBOY
WBOYOriginal
2016-06-02 11:28:15759browse

php数据库

自己写了个留言板 打不开 显示如下错误
Fatal error: Call to undefined function inclue() in .....\lyb\index.php on line 2

index.php代码如下

inclue ("config.php");
$sql = "select * from content";
$resule = mysql_query($sql,$q);
?>


留言本

首页|留言

<code><table width="678" border="1" align="center" cellpadding="1" cellspacing="1"></table></code>


Name: echo $row[1] ?>
Email echo $row[2] ?>


echo $row[3] ?>



}
?>

config.php 代码如下


$q = mysql_connect("localhost","root","root");
if(!$q)

{ die('Could not connect: ' . mysql_error()); }

mysql_query("set names utf8"); //以utf8读取数据 mysql_select_db("guestbook",$q); //数据库
?>

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