0

I can execute the below query just fine in mysql console, but when try doing it in a php script, I got errors. Here' my query:

$tfa2_db=mysql_query("select * from `avotf`.`callerid_vault` ORDER BY `dateused` LIMIT 100",$stor);
while ($tfa2 = mysql_fetch_row($tfa2_db)) {

When I run the php file, it's giving me the following:

mysql_fetch_row() expects parameter 1 to be resource, boolean given

it's telling me i have a boolean given for my query. I am unsure what is wrong.

Any kind of help is greatly appreciated.

thevoipman
  • 1,672
  • 2
  • 17
  • 41

1 Answers1

0

That means your qurty most likely failed and returned false, I'd find the error in the log and try to figure it out from there.

Lemon Drop
  • 2,073
  • 2
  • 21
  • 33