So I have the following:
$query = "SELECT id,account,status FROM service WHERE status = 'Unpaid'";
$result = mysql_query($query);
while($row = mysql_fetch_row($result)){
$id = $row[0];
$dateEntered = $row[1];
$type = $row[2];
$account = $row[3];
$dateCompleted = $row[4];
$notes = $row[5];
$status = $row[6];
echo $account;
// mailStatusUpdate($account, $status, $dateEntered);
}
echo mysql_error();
Query processes fine in phpmyadmin. When I echo the $account of the unpaid status records, it doesn't echo. Whats the problem? PHPmyadmin processes everything fine and shows me the records?
print_r($row);from within the while loop, to see what it says. That will let you know what you're working with.