警告:extract():第一个参数应该是一个数组 [英] Warning: extract(): First argument should be an array in

查看:88
本文介绍了警告:extract():第一个参数应该是一个数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是我的代码:

Below is the code I have:

展开 | 选择 | Wrap | 行号

推荐答案

嗨Geeza。欢迎来到The Scripts!


mysql_fetch_array()函数可能无法从mysql_query()结果资源中读取一行。当发生这种情况时,它返回FALSE,这会在extract()函数尝试使用它的结果时触发警告。


尝试做更像这样的事情:
Hi Geeza. Welcome to The Scripts!

The mysql_fetch_array() function is likely not able to read a row from the mysql_query() result resource. When that happens it returns FALSE, which triggers the warning you get when the extract() function tries to use it''s result.

Try doing something more like this:
展开 | 选择 | Wrap | 行号


我尝试了两个例子Atli。好消息是,你们两个例子都摆脱了错误。坏消息是现在我什么都没得到。我假设我的db.php文件中一定有问题。它好像数据库甚至都没有被访问过。我不是100%确定我设置的
I tried both of your examples Atli. The good news is that both of you''re examples got rid of the error. The bad news is that now I am getting nothing. I''m assuming there must be a problem in my db.php file . Its as if the database isn''t even being accessed. I''m not 100% sure that what I set the


主变量是正确的。我正等着收到我的主办公司的回复,找出主机名。
host variable to was correct. I''m waiting to hear back from my host company to find out the host name.


这篇关于警告:extract():第一个参数应该是一个数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆