Jump to content

mysql connect


wernervantonder

Recommended Posts

Hi there i am a newbie in php and allready i find it very intresting! you might see me around here often. so my first question is this:

My database does not connect when i use the line: mysql_connect(localhost,$username,$password);
i have se my $username and $password vairiables and assure that it is correct. mysql is running alongside my apache server. i can view php pages via http://localhost/.

what did i do wrong when the error refrences to this line (....mysql_connect(localhost,$username,$password);......)
and tells me that there is a parsing error.?

Thanks in advance Werner
Link to comment
https://forums.phpfreaks.com/topic/20699-mysql-connect/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.