speedman_2001
Registered User.
- Local time
- Yesterday, 22:33
- Joined
- May 23, 2008
- Messages
- 30
Ok guys been working on this for a bit now and keep running into different issues. First the basis of everything. Building a web page in Expression Web 4 running the development server for testing. Using PHP 5.2.17 currently. PHP code being used is pretty basic and is posted below. The issue I am currently running into is that when I preview the web page I am presented with a blank screen. I don't get a connection error or pass. If I try to view the phpinfo() within the php it comes back correctly so the php portion is processing correctly. At one point I was using PHP 5.3, but since our hosting service for our MySql server doesn't accept 5.3 due to password authentication issues I downgraded to 5.2.
Any thoughts on what I'm doing wrong?
Any thoughts on what I'm doing wrong?
PHP:
<?php
$username = 'username';
$password = 'password';
$hostname = 'hostname';
$conn = mysql_connect($hostname, $username, $password);
if (!$conn)
{
die(mysql_error());
}
else
{
echo 'Connected to MySQL';
}
mysql_close($conn);
?>