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.
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
36
Other forums
problems with search form numerical "between" sending by php
I am trying to display the results of a search, on a sql database, on a web page. I set up html &quo
PHP webpage & array print issue
I have this code running, and it works perfectly … however, see my bottom bit about what I see
Login Script Issues
I am using a script I got from http://phpsense.com/php/php-login-script.html in order to allow peopl
List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab
Secure pages Sessions vs. Cookies & session_destroy() help
Im new here and new to PHP, I hope you can help me with some questions.
Im writing my web ap
Nested (echoed) php running wrong script
Got a problem with a php website I'm creating.
In a nutshell, the first page is entirely html
Google Map
I have done Google Map Integration for one my project. But for that we need the "latitude and l
Losing 'page' data
I have this code that allows me to update my database. But after updating, I lose the $_GET['page']
Sending a hyperlink through mail
HI all,
I am sending a mail to outlook mailbox of a user using FM SO_NEW_DOCUMENT_ATT_S
Warning: session_start() headers already sent error - Driving me Nuts!
I am trying my sister in laws site and I keep getting an error with my coding. I am more of a design