“Warning: mysql_query(): supplied argument is not a valid MySQL-Link” - Why?

前端 未结 7 1284
有刺的猬
有刺的猬 2021-01-26 04:17

What\'s wrong with my code? I keep getting this error: Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in functions.php on line 4 error readin

7条回答
  •  北荒
    北荒 (楼主)
    2021-01-26 05:06

    to find the error you can try putting mysql_error()

    $result = mysql_query("SHOW TABLES LIKE '$gn'",$db) or exit( mysql_error() );
    

提交回复
热议问题