January 24th, 2000, 11:45 PM
When using submitform.php3, the MYSQL connection fails. I am denied access ...the line in question is the following..mysql_connect (localhost,username,password) I have inserted my username and password without quotes. Should I be filling something into the localhost area.
January 24th, 2000, 11:49 PM
host, username and password should ALL be in quotes, unless you are using variables to pass them to the function.
January 26th, 2000, 06:13 PM
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by rod k:
host, username and password should ALL be in quotes, unless you are using variables to pass them to the function.[/quote]
Where do I go to see what my host_server name, username. password is??
I am new to php and to test it out I installed a script on my server. I go to the browser and point is to the admin index file. This is what I get;
Warning: Unknown MySQL Server Host (dweb) (0) in lib.inc.php3 on line 124
The original script came with "localhost" but that wasn't working either. Where should I look for the MySQL server host info? Shoul I also set up a username and password while there? How?
Thank you for any help?
Get Real.....Go Virtual!
January 26th, 2000, 06:37 PM
Where is mysql located? If you have a host, they will tell you what your username and password are. If you set it up yourself then you have to create permissions and assign a username and password. See GRANT in the mysql manual. If localhost isn't working it means that you are running php and mysql on different machines. If so, you need to give the URL or IP address of the machine that mysql is on. Note also that you have to have permission to connect from a particular machine.