| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) | |||
|
Registered User
Join Date: Aug 2004
Location: Montreal
Posts: 10
|
PHP & mySQL Help
Hello guys, I've never written in PHP before. After reading a few tutorials on the Internet, I decided to play around a bit and see if things I've learn work. I just made this really simple page that has a form where the user types in the info, and upon submission, it is supposed to connect to the mySQL server and input the data into a specific table. Here goes the source of the page with the form: Quote:
Here goes the source of insert.php: Quote:
The database and table named "cusinfo" is already created. Everything seems to be fine but I'm getting the follow message when I test the file: Quote:
Can anyone help me out please? I don't think I've reached the maximum number of connections since no one knows about the site I'm working with right now, besides I've read about mysql_connect and mysql_pconnect, I didn't use any persistent connections. There's no way I've maxed out the number of connections. Thanks in advance! |
|||
|
|
|
|
|
#2 (permalink) |
|
vague™
Join Date: Mar 2004
Location: Glasgow
Posts: 5,337
|
Get in touch with whoever provides the mysql databse server and inform them of the problem - it's upto them to fix it, it's not your code for reference, here's the Mysql manual page for the error |
|
|
|
#4 (permalink) |
|
Registered User
Join Date: Aug 2004
Location: Montreal
Posts: 10
|
Ok, now I don't get the "too many connections" problem anymore, but I still can't connect. It now says access denied, I checked at least 25 times before I post this. My username, password and hostname are all fine. I also double checked if my code is flawless. I still can't help. Can anyone of you go through my code and see if I forgot a little something? |
|
|
|
#6 (permalink) |
|
Registered User
Join Date: Aug 2004
Location: Montreal
Posts: 10
|
Here's the error message: Unable to select database Access denied for user: 'uckc_dbadmin@localhost' to database 'uckc_db1' As for the code, I just replaced uckc_db1 by db1 in my previous post, but on my php file, I'm still using uckc_db1 as my database name. |
|
![]() |