HI
m working on project attendance system and attendance is recorded on daily bases.. i have to insert record in currunt date column in attendence tabl against specific roll nos. my script is not working as status does'nt change against specific roll no
foreach ($POST['id'] as $status)//array of P or A
{
foreach ($POST['st'] as $entry)//array of roll nos
{
$query = "UPDATE attendence SET $date = '$status' WHERE std_rno= '$entry'" ;
if (!mysql_query($query,$con))
die('Error: '. mysql_error());
}
}
i wish to have rec like this
.........................................................
std_rno 14/08/10
bcom-603 P
bcom-604 A
........................................................
............................