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

前端 未结 7 1188
有刺的猬
有刺的猬 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条回答
  •  -上瘾入骨i
    2021-01-26 05:02

    The problem is here: mysql_query("SHOW TABLES LIKE '$gn'",$db)

    There is no $db in scope.

    If you are only using one database connection and you have already connected, you can just remove this argument.

提交回复
热议问题