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");
}




?>
5
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by __avd
0

connection.php

<?

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


?>
0

Mais oui, mon ami, argent est tres bien.

Anyway, use full php tags (<?php .... ?>). Check your mysql too - no errors?

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.