Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-17-2011, 02:13 PM
Flametail Flametail is offline
Member
 
Join Date: Oct 2011
Posts: 5
Gender: Male
Credits: 816
Flametail is on a distinguished road
Default MySQL Query Empty on default install? (i.e. No edits.)

Query was empty.

KK, I was running into this wall of errors...

Code:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\inc\functions.php on line 1623

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\inc\functions.php on line 61

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\inc\functions.php on line 66

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\inc\functions.php on line 1645

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\inc\functions.php on line 424

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\inc\functions.php on line 560

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\inc\functions.php on line 564

Warning: file_get_contents(templates//template.html) [function.file-get-contents]: failed to open stream: No such file or directory in C:\xampp\htdocs\inc\functions.php on line 1691
So I tried an old php trick I know....

Code:
$resultjjj = mysql_query($result) or die($result."<br/><br/>".mysql_error());
And it said the mysql error was that the query was empty......

Help?
Reply With Quote
  #2  
Old 10-17-2011, 11:49 PM
Flametail Flametail is offline
Member
 
Join Date: Oct 2011
Posts: 5
Gender: Male
Credits: 816
Flametail is on a distinguished road
Default

I have found out that this issue is cause by the $GLOBALS not working....they seem to all be blank...
Reply With Quote
  #3  
Old 10-18-2011, 11:57 AM
Flametail Flametail is offline
Member
 
Join Date: Oct 2011
Posts: 5
Gender: Male
Credits: 816
Flametail is on a distinguished road
Default

Issue fixed by copy the variables out of config.php and puting them in functions.php.
Reply With Quote
  #4  
Old 10-18-2011, 12:30 PM
Nemesis's Avatar
Nemesis Nemesis is offline
Member
 
Join Date: Mar 2011
Location: Ohio, United States
Posts: 641
Gender: Male
Credits: 48,958
Nemesis is on a distinguished road
Default

thats good cause i couldn't help via skype :S
__________________
https://gemnode.com
Free Hosting for Mysidia Adopt Sites
Just join our forum and request your free hosting account
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Install(?) error: Unable to access site after install Catfish Questions and Supports 10 07-23-2013 11:41 PM
CSS Query .-. ChibiMaestro Templates and Themes 2 12-08-2012 05:51 AM
Having a problem running a query !Alive Questions and Supports 8 03-11-2012 02:39 PM
Simple Code Edits Tequila Tutorials and Tips 7 01-28-2011 11:05 AM
Join query for optimization? Arianna Questions and Supports 2 04-09-2010 12:32 PM


All times are GMT -5. The time now is 01:44 AM.

Currently Active Users: 6406 (0 members and 6406 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636