Error Handling

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!

Moderator: General Moderators

Post Reply
haseebmaqsood
Forum Newbie
Posts: 15
Joined: Sat Jun 16, 2007 10:55 am

Error Handling

Post by haseebmaqsood »

Hi

I am Haseeb trying to develop a website, I have to face a problem and i can't able to handle it.
I am using HEADER method

<?
if(isset($_POST['title']))
{
$title=$_POST["title"];
mysql_query("INSERT INTO categoriesinfo(title) Values('$title')");
header("Location: categories.php?msg=Added");
}
?>

and i have to face an error

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\AdminPanel\addCategory.php:12) in C:\xampp\htdocs\AdminPanel\addCategory.php on line 19
Add Category
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Post Reply