Jump to content
xisto Community
Cookiemonster1405241499

MySQL: Help Needed With MySQL_fetch_array() Error help needed

Recommended Posts

I have my site up and running, it it written in php but the problem im getting is the mysql database the warning is:Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mrogers/public_html/config.php on line 47but on line 47 it shows this:$email = mysql_fetch_array($adminemail);any one help on this + my site wont connect to my database. I have feeled out all the requirements that has asked and i know its write.All help would be apreciated as i would like my site fully functional by next week. :lol:

Edited by microscopic^earthling (see edit history)

Share this post


Link to post
Share on other sites

what it looks like is the config file for a PHP-Nuke but nevertheless look at the below code: I host a Nuke on Xisto so you should be similar.

$dbhost = "localhost";

$dbuname = "XXXXXX";

$dbpass = "XXXXXX";

$dbname = "yourUsername";

$prefix = "nuke";

$user_prefix = "nuke";

$dbtype = "MySQL";

$sitekey = "S·kQSd5%W@Y62-dm29-.-39.3a8sUf+W9";

$gfx_chk = 0;

$subscription_url = "";

$admin_file = "admin";

$advanced_editor = 0;

$display_errors = 0;

If you go to your site lets say http://forums.xisto.com/no_longer_exists/ and it shows Sorry there seems to be a problem with the MySQL server you have not set up your database. If you are using PHP-Nuke then this is the case I run a standard PHP-Nuke and also an IPB-Nuke site (it has IPB forums instead of phpBB) and I write ported MODs for PHP-Nuke and I also modify the IPB boards mostly cause I don't like the crappy button in the posting area.

 

If you want further help send me a PM or email and I'll correct you code in a few minutes.

Share this post


Link to post
Share on other sites

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mrogers/public_html/config.php on line 47

 

but on line 47 it shows this:

 

$email = mysql_fetch_array($adminemail);

 

any one help on this + my site wont connect to my database. I have feeled out all the requirements that has asked and i know its write.

<{POST_SNAPBACK}>


See this is your second post with almost exact same problem - we've told you before, unless you can post a good part of the code it won't be possible to crack the problem in any way. This way at best, we can make some wild guesses - such error messages can be caused by over a million different reasons. You'll never get a good reply unless you're more specific with your problem.

Share this post


Link to post
Share on other sites

@fabio: are you Brazilian? Your name and the way you write just looks Brazilian =)@Houdini: the piece of code you post won't help; you must use mysql_connect() to actually connect to the database.@Cookiemonster: Your problem is exactly what it says; "argument is not a valid MySQL result resource ". Do what fabio told; or something like:$adminemail = mysql_query("SOMEQUERYHERE") or die (mysql_error());which will return an error if any

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.