0

plz find the error
it give this error
Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\soomrof\a_task_2_1.php:3) in D:\xampp\htdocs\soomrof\a_task_2_1.php on line 24

<?
include("connection.php");
 
$check=false;
 
$sql=mysql_query("select * from doctor_schedule_information where  doctor_ID='".$_POST[doctor_id]."'") or die(mysql_error());
 
if(mysql_num_rows($sql)==1)
{
$row=mysql_fetch_array($sql);
$check=true;
}
 
else
 
{
$check=false;
}
 
if($check==true)
{
header("location:a_task_2_3.php");
}
else
{
header("location:a_task_2.php");
}
 
 
 
 
?>
3
Contributors
5
Replies
6
Views
6 Years
Discussion Span
Last Post by __avd
0

I will recommend you post the content of that file.

Edited by cossay: n/a

0

connection.php

<?

$cn=mysql_connect("localhost","root");
mysql_select_db("dummy",$cn);


?>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.