先看报错信息:<b>Fatal error</b>: Uncaught Error: Call to undefined function mysql_connect() in I:\phpstudy_pro\WWW\wx\db\search.php:29
Stack trace:
#0 {main}
thrown in <b>I:\phpstudy_pro\WWW\wx\db\search.php</b> on line <b>29</b><br />
再看php文件的29行:
// 连接数据库
$con = mysql_connect("localhost","admin","123123"); (这是29行,我是小白,弄不明白,求教!)
if (!$con){die('Could not connect: ' . mysql_error());}
mysql_select_db("joblist", $con);
mysql_query("SET NAMES UTF8");
//查询数据库
$result = mysql_query("SELECT * FROM job WHERE 需要查询的字段 like '%$keyword3%' ORDER BY ID DESC");
$results = array();