Jump to content

Problem in connecting to Database


tolearn

Recommended Posts

  • 2 weeks later...
Did you forget your connection entries?

If there was a previous connection on the page, did you close that and then forget to reconnect?

[code]mysql_connect("localhost", "$username", "password") or die(mysql_error());
mysql_select_db("$database") or die(mysql_error());[/code]

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.