hjkhhrterwefdgdfgdfgdfgdgdfgdfgdsvstertrt
bnmbertsdfsdfgdfgdfgfffdgdfgdfgrtdfg
/
home
/
u652258970
/
domains
/
drgreal.in
/
public_html
/
admin
/
Upload FileeE
HOME
<?php session_start(); require "../config.php"; $q=$_REQUEST["q"]; $sp=mysql_query("select * from tbl_pcontent where ml_id='".$q."' and pcon_status='Y'") or die(mysql_error()); $np=mysql_num_rows($sp); $ip=1; $o=0; $sl_p="("; while($rp=mysql_fetch_array($sp)) { if($rp['sl_id']=='0') { $o++; } $sl_p.="sl_id !='".$rp['sl_id']."'"; if($ip != $np) { $sl_p.=" and "; } $ip++; } $sl_p.=")"; if($np > 0) { $select=mysql_query("select * from tbl_slink where ml_id='".$q."' and $sl_p and sl_status='Y' order by sl_pos asc") or die(mysql_error()); } else { $select=mysql_query("select * from tbl_slink where ml_id='".$q."' and sl_status='Y' order by sl_pos asc") or die(mysql_error()); } $re=mysql_num_rows($select); if($re==0) { echo '<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr class="row_color"> <td width="27%" class="form_text">Select the Sublink</td> <td width="3%" align="center" class="form_text">:</td> <td width="70%" class="form_text"><select name="sl_id" id="sl_id"> <option value="">--- Select ----</option>'; if($o=='0') { echo '<option value="0">No Sub sublink</option>'; } echo '</select></td> </tr> </table>'; } else { echo '<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr class="row_color"> <td width="27%" class="form_text">Select the Sublink</td> <td width="3%" align="center" class="form_text">:</td> <td width="70%" class="form_text"><select name="sl_id" id="sl_id"> <option value="">--- Select ----</option>'; if($o=='0') { echo '<option value="0">No Sub sublink</option>'; } while($result=mysql_fetch_array($select)) { echo '<option value="'.$result['sl_id'].'">'.$result['sl_name'].'</option>'; } echo '</select></td> </tr> </table>'; } ?>