Toplist ERROR

Started on the old forum in December 2009 · view the original in the archive · old links redirect here

15 replies · 624 views · started 16 years ago · 1 min read

4 participants
Pablo Developer · 164 posts #1

hey coders am having a bit a problem with my up coming toplist script i am put a text on the index that shows the amount of site registered this is the code

$sites = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM nt4_toplist"));

echo"$sites[0] Registered Sites! ";

but its not working and am getting this error

Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/chill/public_html/gb1/index.php on line 13

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/chill/public_html/gb1/index.php on line 13

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/chill/public_html/gb1/index.php on line 13 Registered Sites!

can someone tell me whats the problem?

ranzit2 Developer · 187 posts #2

Lol fill password for sql.and username too.

she is beautifull than php.and i love her more than php.

Pablo Developer · 164 posts #3

what do you mean?

subzero Super moderator Fellow · 3,954 posts #4

He means your a retard. lol

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Pablo Developer · 164 posts #5

I know im a retard...

Pablo Developer · 164 posts #7

?????????????? dude if the data base was not connected the site would not be working

ranzit2 Developer · 187 posts #8

Pablo wrote: ?????????????? dude if the data base was not connected the site would not be working

u making me laugh. Probably u did not included the correct database.php file which has details of database in ur this file where u using this code. Cant u see the error.? Read it 5 times.its written using password no.it mean u didnot connected to database.

she is beautifull than php.and i love her more than php.

subzero Super moderator Fellow · 3,954 posts #9

lol true !

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Pablo Developer · 164 posts #10

let me check sumting

Pablo Developer · 164 posts #11

$db_host = "localhost"; // DB Host $db_user = "chill_pablo"; // DB User $db_pass = "1234pablopg1234"; // DB Pass $db_name = "chill_chillblock"; // DB Name $dbc = mysql_connect($db_host, $db_user, $db_pass); $dbs = mysql_select_db($db_name);

thats whats in my file!

subzero Super moderator Fellow · 3,954 posts #12

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'chill_pablo'@'localhost' (using password: YES) in /home/chill/public_html/config.php on line 11

i still see you have not given rights to sql to add/edit/read your toplist!

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

GiLL Senior · 356 posts #13

Pablo wrote: $db_host = "localhost"; // DB Host $db_user = "chill_pablo"; // DB User $db_pass = "1234pablopg1234"; // DB Pass $db_name = "chill_chillblock"; // DB Name $dbc = mysql_connect($db_host, $db_user, $db_pass); $dbs = mysql_select_db($db_name);

thats whats in my file!

Its seems your using cpanel ok when login in your cpanel click on MySQL® Databases then there you will see

Add Users To Your Databases:

choose your chill_pablo and chill_chillblock

then make sure you tick on Privileges: ALL

then click on add user to database

thats all check now your site

left wap stuff

Pablo Developer · 164 posts #14

that was one of the first thing done bro from day one when creating the data base!

GiLL Senior · 356 posts #15

what is your site name ?

left wap stuff

Pablo Developer · 164 posts #16

chillblock.wapdesire.com/gb1 am working on a TOPLIST

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close