把 mysql_ 都改成 mysqli_

解决方案 »

  1.   

    >把 mysql_ 都改成 mysqli_ 
    版主啊~ 那么改不行啊 错误更多了!!!!!
    Warning: session_start(): Cannot send session cookie - headers already sent by 
    Warning: mysqli_select_db() expects exactly 2 parameters, 1 given in
    Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in 
    Warning: mysqli_query() expects at least 2 parameters, 1 given in 
    Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in
      

  2.   

    对不起 最后的Deprecated没有 粘错了
      

  3.   

    就等着你呢
    出错是很正常的,改了就是了
    不报错而又工作不正常,才是麻烦事出错的 mysqli 函数是因为不能缺省数据库连接字
    你把 $db 作为出错函数的第一个参数就可以了