PDA

View Full Version : php > mySQL problem


tlaloc
6-26-03, 12:08 AM
I can't figure out what I'm doing wrong. I'm trying to set up php pages for a client who's using a powweb account to keep track of her job listings in a database. It's been a while since I've had to muck around with this so I'm following how one of MY personal database accounts are set up, and I can't even get past connecting to the *%@# table. I'm using a username and password that I set in the mySQL tab for users who can muck around with the table, and I'm connecting with this line of code:

$db_name = "tableName";

$connection = @mysql_connect( "localhost", "login", "password" ) or
die( "Unable to Connect." );


Any suggestions? THanks.

tbonekkt
6-26-03, 12:56 AM
Dont use localhost. Use your mysql server.

NMS
6-26-03, 04:46 AM
You chose the wrong forum...no php experts here!