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

WBOY
Release: 2016-06-02 11:28:15
Original
760 people have browsed it

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>
Copy after login


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); //数据库
?>

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!