关于Deprecated: mysql_result: The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in


require_once('connect.php'); $sql = "select * from introduce"; $query = mysql_query($sql); if($query&&mysql_num_rows($query)){ $row = mysql_fetch_row($query); $contact = $row[1]; }


改为

include_once('connect.php'); $sql = "select * from introduce"; $query = mysqli_query($con,$sql); if($query&&mysqli_num_rows($query)){ $row = mysqli_fetch_row($query); $contact = $row[1]; }
posted @ 2016-11-26 14:25  纪伟  阅读(137)  评论(0编辑  收藏  举报