![]() |
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? :( |
Ah Yes, I get this same error, are you running on a server with Ensim Administration?
-nOX |
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:
|
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:
|
Yes, but Ensim has some sort of universal problem, with this fetch_array thing, its a continued problem for me as well.
-Arunan |
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 |
Here is the php
PHP Code:
|
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 |
Thanks Xenon, worked great!
-Arunan |
Hey Xenon, the stuff are getting listed, but they all get listed now, not just the ones with the key words :'(
|
All times are GMT. The time now is 03:52 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|