connecting to db
Posted: Wed Mar 25, 2009 1:12 am
I'm using the following code from a tutorial trying to connect to a database but am getting an http 500 error.
$dbconn = mysql_connect("localhost","phpuser","!phpuser");
if (!$dbconn) {
die('Could not connect: ' . mysql_error());
}
mysql_query("SET NAMES 'utf8'");
http://www.netbeans.org/kb/docs/php/wis ... sson2.html
The link above is to the tutorial I'm working with.
Any ideas are appreciated.
$dbconn = mysql_connect("localhost","phpuser","!phpuser");
if (!$dbconn) {
die('Could not connect: ' . mysql_error());
}
mysql_query("SET NAMES 'utf8'");
http://www.netbeans.org/kb/docs/php/wis ... sson2.html
The link above is to the tutorial I'm working with.
Any ideas are appreciated.