Log in

View Full Version : MySql Error



reindeer.
03-08-2006, 05:57 PM
Hi, I just uploaded a DJ panel - http://www.samsterteenzradio.com/staff2/Panel But I cant create a user, and when I just click the login link, I get this error...

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/sradio/public_html/staff2/Panel/index.php on line 35

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/sradio/public_html/staff2/Panel/index.php on line 37
Your Username And Password Did Not Match


Line 35 has this:
list($user) = mysql_fetch_array(mysql_query("SELECT `username` FROM `staff` WHERE username='$user1_post'"));

Line 37 has this:
list($pass) = mysql_fetch_array(mysql_query("SELECT `password` FROM `staff` WHERE password='$pass1_post'"));


Any ideas whats wrong and how I could create a user?

The Voice
03-08-2006, 07:38 PM
I had the same problem. have you chenged the MySQL details in you config file? If you have try that, if you haven't then repost and Ill have a look.

Josh-H
03-08-2006, 10:17 PM
The problem is you havn't added an account so you cannot select an account from drop down list.

reindeer.
04-08-2006, 01:26 PM
Yes, I have changed all the details. And I know I havent added an account, thats cause I dont know how, theres no page to do it on, or if there is, I cant find it.

ClubTime
04-08-2006, 01:51 PM
It's becuase you havent inserted the tables in PHPmyadmin

Becuase the pael you have (i'm guessing) didnt come with an install folder?

reindeer.
04-08-2006, 01:52 PM
Oh :( I have no idea how to usr that lol. Nor does it tell me where to insert the tables in phpmyadmin lol

the wombats
04-08-2006, 04:55 PM
What DJ panel is it?

Chriš
04-08-2006, 04:57 PM
I will create you an install folder for Ł1.50 paypal if you want?

reindeer.
07-08-2006, 07:47 PM
No thanks, dont have paypal. Id pay habbo furni, doubt if youd be interested though.

ClubTime
07-08-2006, 08:39 PM
offer in habbo

Want to hide these adverts? Register an account for free!