Jump to content

blank page.... nothing is happening.


swtlbee

Recommended Posts

I'm new to a lot of this but in the last 24hrs have learned a lot.

Installed latest version of mysql... went fine no problems.

Installed latest version of php... went fine no problems.

did all my configuring for the php.ini for mysql.

 

I am running php on windowsxp iis5.

 

When I access <?php phpinfo() ?> everything looks good I see mysql and mysqli settings. I can run php scripts no problem but when I try to run this:

<?

$dbuser = "blah"; <-changed for security

$dbserver = "localhost";

$dbpass = "blah*"; <-changed for security

$dbname = "leads";

//******** BEGIN LISTING THE CONTENTS OF  salesreps*********

//CONNECTION STRING

mysql_connect($dbserver, $dbuser, $dbpass)

or die ("UNABLE TO CONNECT TO DATABASE");

mysql_select_db($dbname)

or die ("UNABLE TO SELECT DATABASE");

 

$sql = "SELECT * FROM salesreps";

$result = mysql_query($sql);

if ($myrow = mysql_fetch_array($result)) {

do

{

$username=$myrow["username"];

$password=$myrow["password"];

$levelaccess=$myrow["levelaccess"];

$repidnumber=$myrow["repidnumber"];

 

echo "<option>$username</option>";

 

}

while ($myrow = mysql_fetch_array($result));

}

?>

 

I get a clear blank page in IE and if I view the source I see my phpcode.

In firefox is see this --> $username"; } while ($myrow = mysql_fetch_array($result)); } ?>

 

I connect find to my db using mysqladmin.

I am clueless. I moved my php.ini file into my c:windows dir from the c:php dir.

 

Any help is very much appreciated.

 

Link to comment
https://forums.phpfreaks.com/topic/182371-blank-page-nothing-is-happening/
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.