| Current Path : /var/www/html/mmishra/indem/webbioexam/biomedical/ |
| Current File : /var/www/html/mmishra/indem/webbioexam/biomedical/croll.php |
<?php
include "header.inc";
$tbl = 'tbl_final_dispatch';
$tbl2 = 'crollno';
$rs = mysql_query("select * from $tbl2");
while ($o = mysql_fetch_object($rs)) {
$id=$o->id;
$crollno=$o->crollno;
$ps = mysql_query("update $tbl set crollno='$crollno' where id=$id");
if ($ps) { echo "$id updated with crollno = $crollno"; }
else { echo mysql_error(); }
}
include "footer.inc";
?>