Hey guys. I could really use your help. I know VERY little about PHP. I have only been working with it for a few weeks. I am working on an e-mail project for a course at the university. I am getting only the blank page. I am getting myself confused the more that I try this. Can you please look at my source code and give me any suggestions? Thank you so much!
Thanks,
Angel
<? php
$authuser = '1234';
$username = "*";
$password = "***";
$db = "angel_test";
mysql_connect('localhost', $username, $password);
mysql_select_db($db);
echo "This works.. BEFORE the query!";
$query = "Select messageFrom, messageSubject, messageDate
from cw_message
where user = $authuser";
$results = mysql_query($query)or die("Could not execute query".mysql_error());
echo "This works AFTER the query!";
$numRows = mysql_num_rows($result);
mysql_close();
echo "The part works after the mysql_close!";
$counter = 0;
while ($row == mysql_fetch_array($result))
{
echo $row ['messageFrom']."<BR>";
echo $row ['messageSubject']."<BR>";
echo $row ['messageDate']."<BR>";
$counter++;
echo "The While Statement Works!";
}
echo "This Works!";
?>