Hey I'm somewhat new to this
but heres the problem:
Heres a example of what i need to do:
1-Check database for record
if(record exists)
{
<!--HTML STUFF-->
}
else
{
<!--redirect to another page-->
Location: addCampThesis.php <-- localhost of course :\
}
Now i was told header() redirects but this doesnt work in this case because there is both HTML and php code being executed 1st ... giving me this error:
Warning: Cannot modify header information - headers already sent by (output started at c:\program files\apache group\apache\htdocs\addcampthesis.php:20) in c:\program files\apache group\apache\htdocs\addcampthesis.php on line 57
Is there any way i can make php redirect me to another page in this scenario?