Dedicated Servers
Managed Dedicated Servers
Semi-Dedicated Hosting
Cheap Dedicated Servers
Hyper-V VPS Hosting
Hyper-V Virtual Private Servers
Linux VPS Hosting
VPS Hosting with Root Access
Windows VPS Hosting
Windows VPS Web Hosting
Reseller Hosting
Reseller Hosting India
cPanel Shared Hosting
Linux Shared Web Hosting
Windows Hosting
Windows Shared Web Hosting
Web Hosting Blog
Web Hosting Blog India
Hosting Knowledgebase
Web Hosting Knowledgebase




  #1 (permalink)  
Old 12-18-2006, 07:09 PM
Member
 
Join Date: Sep 2006
Posts: 30
Send a message via MSN to Shanky Send a message via Yahoo to Shanky
Unhappy New PHP issue

First off im not even sure this is the right section to put this in but it seams to be the best place.

Well im trying to make a php database for my site, and i keep getting errors when I use any of the basic php database tutorials back at TZD.com.

Errors:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'Dedcollege'@'localhost' (using password: YES) in /home/josh3/public_html/members/create.php on line 6

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/josh3/public_html/members/create.php on line 10

Warning: mysql_query() [function.mysql-query]: Access denied for user 'jedio3'@'localhost' (using password: NO) in /home/josh3/public_html/members/create.php on line 23

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/josh3/public_html/members/create.php on line 23

Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/josh3/public_html/members/create.php on line 27


I dont understand why it wont work.
PHP version is 4.4.4
and mySQL is 4.1.21-standard

php 4.4.4 is not too far out of data and mySQL is a bit old but should still work.

Should I update this with php-5.2.0?..well if i can cos its a rental server.
.........
Actually now that im acutally reading the errors, im guessing its because i dont have access to the server..

$mysqlLink = mysql_connect( 'localhost' , 'username' , 'password' ); does username and password ones to the server, or do u make up ur own?

Please reply soon
Shanky
Reply With Quote
  #2 (permalink)  
Old 12-23-2006, 05:35 PM
Member
 
Join Date: Sep 2006
Posts: 30
Send a message via MSN to Shanky Send a message via Yahoo to Shanky
Smile

K nevermind about that, i was right. Because i didnt have the server's username and password in the line i mentioned above the server denied creating anything inside that bit of code.


They probably should mention that on the tutorials from now on <_<

Shanky
Reply With Quote
Reply

Bookmarks
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 10:06 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0