Hi all, i have difficulties in appending my sql query in php. Need some of your help to guide me along. Tell me where does my code goes who. Thanks.
for ($i = 1; $i<=$dayc; $i++){
$daya[] = $_POST['day'.$i];
}
$link = mysqli_connect($HOST,$USERNAME,$PASSWORD,$DB);
$query = "UPDATE class SET Time_Slot_idTime_Slot = '$time',Course_idCourse = '$name',exam_date = '$exam',closing_date = '$closing',";
$query = $query."day$1 = '$daya[$1]'";
$query = $query."where idClass = ' ". $_GET['id'] ." '";
$echo $query;
$result = mysqli_query($link,$query) or die(mysqli_error($link));
am i doing a correct way of append? there seems to be error..Thanks for your help