![]() |
mysql_fetch_field() and mysql_num_fields() Warnings
I have been having some problems on a script I am writing for one of my forums. In debug mode when I click explain on the main page of this script I get the errors below for every query I have that isn't a standard vBulletin query, however, all these queries run and produce the desired results.
However on another page, which is suppose to pass the id of a url and then retrieve the results of that id from the database, the query to get the data is not even ran and I am just presented with a warning that a field is missing. Same error when viewing the explain only thing is the query isn't listed as being ran. I was wondering what are the reasons for the error below to be shown? Here is one query that produces the following error, as it is run exactly: PHP Code:
Code:
Warning: mysql_fetch_field(): supplied argument is not a valid MySQL result resource in /home/exforum/public_html/includes/class_database_explain.php on line 94 |
I don't have your solution but I'm trying to do something similar to you and I'm a begginer.
If you could please help me out AIM: twolvsefan369 msn: twolvesfan624@msn.com |
You should really use query_first for that (and use slave if it's not a time critical read).
PHP Code:
|
I have a question, I placed that in my .php file and then I try to call it from my template
" $totalartists" and it shows up blank. I know I'm wrong and I'm new to this, so please bare with me! |
Thanks Paul. It is still returning that error within the Explain though :(
|
All times are GMT. The time now is 03:53 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:
|