Jump to content
xisto Community
thugsmoke058

Need Help Uploading Php

Recommended Posts

PHP is already included in your hosting account, no need to upload anything, simply name your files with a php file extension and they will be parsed as php.

Share this post


Link to post
Share on other sites

Can you post a link please.Or post the error message you are receiving. There are simply too many possibilities to 'guess' what the error is or how to fix it.We may also ask for the code to be posted, but let us see the error message first. Thanks.

Share this post


Link to post
Share on other sites

my error is that only script come out T_T that when i try to click it

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/smoke058/public_html/thugsmoke058/sources/sql/mysql.php on line 32
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/smoke058/public_html/thugsmoke058/sources/sql/mysql.php on line 33

Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/smoke058/public_html/thugsmoke058/sources/sql/mysql.php on line 47

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/smoke058/public_html/thugsmoke058/sources/sql/mysql.php on line 47

Fatal error: Database error in "/home/smoke058/public_html/thugsmoke058/index.php" on line 44

in /home/smoke058/public_html/thugsmoke058/sources/sql/mysql.php on line 88


Notice from rvalkass:

You need to quote the error message.

Edited by rvalkass (see edit history)

Share this post


Link to post
Share on other sites

Your problem lies with this part:

Access denied for user 'nobody'@'localhost' (using password: NO)

You need to provide a username and password if you want to connect to MySQL and access your database. However, this shows you are being referred to as 'nobody' and you have not given the script a password. You need to put this line in before you try to access the database:

mysql_connect (localhost, "YOUR USERNAME", "YOUR PASSWORD");
Obviously replace the username and password with your actual cPanel username and password.

Try that and see if the error disappears.

Share this post


Link to post
Share on other sites

rvalkass has given good advise, but also, you need to check to make certain the Database has been created, and that you have the correct name, user and password. The Trap is set-up so that the database names are pre-fixed with your cpanel name and an underscore.Example: DB named "stuff" should be referenced by "jlhaslip_stuff" as the DB name. And the DB user needs to be set-up in MYSQLADMIN on the Cpanel, too.

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.