$insq='SELECT subcode FROM 2-1subjects'; if(!$insq) { die('invalid Query:'.mysql_error()); } $insre=mysql_query($insq); //print_r ($insre); print_r ($mark).'<br>'; while($subrow=mysql_fetch_array($insre)) { print_r ($subrow).'<br>'; $inser='INSERT into `2-1`(id,subcode,marks) VALUES('."'".$id."'".',' ."'".$subrow['subcode']."'".',' ."'".$mr."'".')'; print $subrow['subcode'].'<br>'; $inseresult=mysql_query($inser); if(!$inseresult) { die('invalid Query:'.mysql_error()); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)