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

Help Ordering Arrays
Hi, I have 3 arrays as shown below.

Code: $users = $this->get_latest_users();
$flir

Strip Slashes Help
I've got a script that i've downloaded of the net to edit multiple fields from my sql database, and

This is driving me nuts!
This insert query looks to be alright, however I get this error:

QuoteYou have an error in yo

Generate multilayered array from string.
ok so i have a string that looks like this:
Code: [Select]blog:edit_all,delete_all|users:edit_all

using variables in another page
I have a test database set up on localhost. I have a form that I can type a name into, hit the butto

Forms Authentication and Refresh at Login page
Hello, When I try to press the Login button in my webapplication at my login.aspx page nothing h

CRM?
I think that's what they're called. Customer Management System? Anyway. Is there any good free ones

Sending UDP Raw socket
I truly need help on this. I am trying to write a test program that simulate a network environment

Printing issues with xMII 11.5
For some reason, we have one report (and only one) that is giving us fits when trying to print. The

using file_get_contents??
okay how would i create a script using file_get_contents() in php have it grab search pages 1-20 and

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