Your
sql error is because the line, right of the '=' sign starts with a " but there is no closing " and following the opening " you have the concat operator but there is nothing to concatonate, as far as I can see.
As soon as a page starts being processed by the server, header information is sent unless you start your page with;
- Code: Select all
<?php
ob_start();
?>
This turns on output buffering.
Once you have finished making decisions in your code that effect header information, you have the code;
- Code: Select all
<?php
ob_end_flush();
?>
Which as you may have guessed flushes the output buffer.