PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Ok ive broken down the code taking stuff out with comments, and something between line 3 and after is what is killing the code and making the page go blank..
yet i see no errors, and reports arent doing anything... and when i edited my php.ini it messed stuff up
$display= mysql_query("SELECT * FROM `points` WHERE `username`= '" . $username . "'");
$output = '';
if (!$display)
{
print("A database error has occurred. Please contact your administrator");
}
else
{
$row = mysql_fetch_array($display);
if(!empty($row['tasknum']))
{
echo 'You have no tasks recorded on record.';
}
I had it indented and just switched it that way again.. i simply CANT find the error... ive changed the ' to " and vice versa on echos and prints... nothing happening.. white page... and when I comment up until this section it works so it must be here
if(!$display)
{
print('A database error has occurred. Please contact your administrator');
}
else
{
$row = mysql_fetch_array($display);
if(!empty($row['tasknum']))
{
echo "You have no tasks recorded on record.";
}}