0

whats worng in this code???????
it give this errroe
Parse error: syntax error, unexpected T_VARIABLE in D:\xampp\htdocs\soomrof\a_task_2_1.php on line 8

<? include("connection.php");
mysql_query("update doctor_schedule_information set  monday='"$_POST['m']"',tuesday='" $_POST['t']"',wednesday='"$_POST['w']"',thursday='" $_POST['th']"',friday='" $_POST['f']"',saturday='" $_POST['st']"',sunday='"$_POST['su']"' where doctor_ID='"$_POST['d_id']"'")or die(mysql_error());

header("location:admin.php");
?>

Edited by __avd: Added [code] tags. Do wrap your programming code blocks within [code] ... [/code] tags

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by soomro_moon
0

Misquoted:

mysql_query("update doctor_schedule_information set monday='{$_POST['m']}',tuesday='{$_POST['t']}',wednesday='{$_POST['w']}',thursday='{$_POST['th']}',friday='{$_POST['f']}',saturday='{$_POST['st']}',sunday='{$_POST['su']}' where doctor_ID='{$_POST['d_id']}'") or die(mysql_error());
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.