Deprecated: mysql_connect(): The mysqlextension is deprecated and will be removed in the future: use mysqli or PDOinstead in D:\ApaServ\php\includes\myfun2.php on line 17php
Deprecated:mysql_connect(): The mysql extension is deprecated and will be removed in thefuture: use mysqli or PDO instead in D:\ApaServ\php\includes\duibifun.php online 6mysql
這是在新版本的php中再也不支持mysql_connect()這個函數,改用$link = mysqli_connect("myhost","myuser","mypassw","mybd") or die("Error " . mysqli_error($link));sql
可是這個方法不靠譜,改了以後又出現一大堆別的問題。函數
正確作法:代碼前面加上ui
error_reporting(0); spa
這樣就行了!!!!!!!!!!!!!!!!!!!rem
記念php零基礎的我1個半小時解決了團隊一成天都沒解決的問題,要不是今天就要調好交貨,我怎麼可能8點不到就起牀了?io