blank page.... nothing is happening.


Posted on 16th Feb 2014 07:03 pm by admin

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.
Did you know?Explore Trending and Topic pages for more stories like this.

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.
No comments posted yet

Your Answer:

Login to answer
93 Like 36 Dislike
Previous forums Next forums
Other forums

Procedure with variable number of columns
Hi, I have a procedure that looks like this:

PROCEDURE PROC(p_cursor OUT sys_refcurso

column name cancatenation within PL/SQL
I have a PLSQL store procedure, and the following statement is part of a subquery
fname||lnam

HTML Viewer HIDE scrollbar
How can I disable scrollbars in a HTML Viewer control? I can't hide them. Even i have enough space b

newbie error
what is wrong with this code ?

<html>
<body>

<?

array_diff weirdness
I'm using the following bit of code

$diff = array_diff($pids, $pidlist);
$diff = array_va

PHP loop
Okay so I have several "articles" stored in a mysql database and am attempting to echo tho

passthru() help
Hi everyone,
I'm new to the forum and to PHP. I have some pretty good experience writing shell sc

ImageCreate()
When I create an image and add text to it I want my text to be replaced with a PNG image, because th

Change image filetype on upload?
Hi,
I've got a form which uploads an image to the server.
Is it possible to change the image t

Hyperlink is adding an extra gap to variable
Hi, here's my problem..

I have a php generated page with a hyperlink which opens in a new win

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash