Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.