$select=mysql_query("SELECT * FROM genneration WHERE or_ID='".$or_ID."'") or die (mysql_error());
$num_rows=mysql_num_rows($select);
if($num_rows==0){
for($i=0;$i<=count($or_ID);$i++){
$or_ID=$_POST['or_ID'];
$or_generation=$_POST['or_generation'];
$Insert="INSERT ignore INTO genneration (or_ID,or_generation)
VALUES ('".$or_ID[$i]."','".$or_generation[$i]."') ";
$queinsert=mysql_query($Insert);
}
}
Tag : PHP, HTML/CSS, JavaScript, Action Script, Ajax, jQuery