The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Strange Error on working PHP
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in www/htdocs/test/admin/db_mysql.php on line 154
PHP Code:
hits int(10) NOT NULL default '0', id tinyint(4) NOT NULL default '1' ) TYPE=MyISAM; It all works but gives that stupid error :/ why o why? |
#2
|
||||
|
||||
Ah Yes, I get this same error, are you running on a server with Ensim Administration?
-nOX |
#3
|
||||
|
||||
The error is probably caused because you are using query_first instead of query. Also, this method would be easier and save you a query:
PHP Code:
|
#4
|
||||
|
||||
if you run queries with no output you can't use query_first, just use query.
Because query_first is a call of query and then uses fetch_array once. so correct it would be: PHP Code:
PHP Code:
|
#5
|
||||
|
||||
Yes, but Ensim has some sort of universal problem, with this fetch_array thing, its a continued problem for me as well.
-Arunan |
#6
|
||||
|
||||
I get this error
Code:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/virtual/site19/fst/var/www/html/support/admin/db_mysql.php on line 149 |
#7
|
||||
|
||||
Here is the php
PHP Code:
|
#8
|
||||
|
||||
arunan: also you have to cut out the _first of your query call..
you cannot use fetch_array with query_first the outputtype of query is a mysql result, this is what you can use in fetch_array. the outputtype of query_first is just a normal array not a mysql result so you can't use it with fetch_array |
#9
|
||||
|
||||
Thanks Xenon, worked great!
-Arunan |
#10
|
||||
|
||||
Hey Xenon, the stuff are getting listed, but they all get listed now, not just the ones with the key words :'(
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|