/* Decoded by unphp.net */ ?>b'""){ $qryMSecID=mysql_query("select MSecID from tbl_mainsection order by MSecID desc") or die("Invalid Values: " . mysql_error()); if($qryMSecID){ $rows=mysql_num_rows($qryMSecID); if($rows>0){ $data=mysql_fetch_row($qryMSecID); $MSecID=$data[0]+1; }else{ $MSecID=1; } } $qryRank=mysql_query("select rank from tbl_mainsection order by rank desc") or die("Invalid Values: " . mysql_error()); if($qryRank){ $rows=mysql_num_rows($qryRank); if($rows>0){ $data=mysql_fetch_row($qryRank); $Rank=$data[0]+1; }else{ $Rank=1; } } $qrylang=mysql_query("select * from tbl_lang where active=\'y\'") or die("Invalid Sql: " . mysql_error()); if($qrylang){ $rowslang=mysql_num_rows($qrylang); if($rowslang>0){ for($i=1;$i<=$rowslang;$i++){ $datalang=mysql_fetch_row($qrylang); if (!($bFile==\'\')){ $img = "msec_".$MSecID.".jpg"; } $qry=mysql_query("insert into tbl_mainsection(MSecID,MSecName,sshow,Rank,msecimg,lngid,mdetails) values(\'".$MSecID."\',\'".$SecName."\',\'".$sshow."\',\'".$Rank."\',\'".$img."\',\'".$datalang[2]."\',\'".$mdetails."\')") or die("Invalid Values: " . mysql_error()); if($qry){ if (!($bFile==\'\')){ move_uploaded_file($_FILES[\'bFile\'][\'tmp_name\'],$msecimgs.$img); } } } } } } header(\'Location:mmainsections.php?lng=\'.$LngID.\'&mess=A+New+Main+Section+has+been+added\'); ?> '