Probably extremely simple, I just can’t see it. My PHP file starts off with this:
[code=php]<?php
$id = $_GET[‘id’];
if($id==””){
header(“Location: restaurants.php”);
}
But then when I attempt to load the page I get this:
Warning: Cannot modify header information – headers already sent by (output started at /homepages/23/d108630418/htdocs/bellevue/restaurant.php:1) in /homepages/23/d108630418/htdocs/bellevue/restaurant.php on line 5
Warning: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 1 in /homepages/23/d108630418/htdocs/bellevue/includes/ezsql/ez_sql_mysql.php on line 204
You can see it here: [url]http://bellevue.com/restaurant.php
Now, what the heck is causing it? Nothing has be printed, there should be nothing before the header is sent, so why does it think the headers have already been sent?