Jump to content

Connect


Imtehbegginer

Recommended Posts

Guessing you mean how to connect to a selected MySQL database, this is adequate:

[code]$db_login = ""; // your database login name
$db_pass = ""; // your database password
$db_name = ""; // your database name
mysql_connect($db_host, $db_login, $db_pass) or die ("Can't connect!");
mysql_select_db($db_name) or die ("Can't open database!");[/code]
Link to comment
https://forums.phpfreaks.com/topic/19508-connect/#findComment-84842
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.