| Current Path : /var/www/html/mmishra/iws8/html/indem/phq/queries/ |
| Current File : /var/www/html/mmishra/iws8/html/indem/phq/queries/data.php |
<?php
include '../db.php';
$link = dbConnect("nominal_roll");
$rs = mysql_query("select * from mm_sg order by pno",$link);
while ($o = mysql_fetch_object($rs)){
$pno = $o->pno;
$j = $o->present_grade;
mysql_query("update t_recruitment set salary_grade=\"$j\" where pno='$pno'",$link);
if (mysql_error($link)){
$i++;
echo $i . "--" . mysql_errno($link) . ": " . mysql_error($link) . "\n";
}
}
?>