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
Working with Dates, help.
Sooo to make a long story short, here's what im trying to accomplish.
I need to create a drop
php multiple action on submit
I have a form which says:
<form enctype='multipart/form-data' method='post' action='pr
Page doesn't expand for content
Hi. I've been testing a query I made. It's here http://lapr1.6te.net/inquerito.php
The page doesn
Oracle Text CTX_DOC.snippet slow
I have a table (FILE_TABLE) that contains a blob column (ft_file) and I have created the following O
socket makes browser hang...
I have a socket server, and I am having a problem at the moment...
A browser sends a http hea
Passing an array of values From VB6.0 to Oracle PL/SQL Function
Basically we are using VB6.0.
When we try to pass an array from VB6.0 to an Oracle PL/SQL
Why doesn't this work? (SSH2)
This is my script:
Code: <?php
$connection = ssh2_connect('213.251.167.109', 22);
Accessing Infotype data in dialog program
Hi All
In Dialog programs attributes I didn't see any logical database field. How can I access
New Search Engine problem
Hey everyone,
I have a ZIP Code Radius search engine already functional. it displays all of t
Hits this week counter
I have a counter on my site that tracks hits, IP's, etc. into a mySQL database. It also includes the