自己寫了個留言板 打不開 顯示如下錯誤
Fatal error: Call to undefined function inclue() in .....\lyb\index.php on line 2
index.php代碼如下
<?php
inclue ("config.php");
$sql = "select * from content";
$resule = mysql_query($sql,$q);
?>
<table width="678" border="1" align="center" cellpadding="1" cellspacing="1"></table>
config.php 代碼如下
<?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); //數據庫
?>
inclue應該為include