$lang[selectisp]"; } else if ($_REQUEST['id']) { $id = intval($_REQUEST['id']) ; $sql = "SELECT * FROM plan,isp,speed,days WHERE plan_isp=isp_id AND plan_speed=speed_id AND plan_days=days_id AND plan_id=$id"; printPlan($sql) ; } else if ( $_REQUEST['find'] ) { find($isp,$speed,$days,$from,$to) ; } else if ( $speed and $days and $price ) { find($isp,$speed,$days,$from,$to) ; } else if ( $to > 0 ) { find($isp,$speed,$days,$from,$to) ; } else if ( $_REQUEST['fee'] ) { $result = mysql_query("SELECT DISTINCT isp_id,isp_logo,isp_name FROM isp,fee WHERE fee_isp=isp_id"); while ( $row = mysql_fetch_array($result) ) { $isp = $row['isp_id'] ; echo "
\"{$row['isp_name']}\"
" ; feeTable($isp) ; } } else if ( $_REQUEST['news'] ) { $sql = "SELECT * FROM news" ; $result = mysql_query($sql); if ( mysql_num_rows($result) ) { while ( $row = mysql_fetch_array($result) ) { $title = $row['news_title'] ; $date = hjri($row['news_date']) ; $content = nl2br($row['news_content']) ; echo "
"; echo "
$date
"; echo "$title"; echo "

$content"; echo "
"; } } } else { echo "
$lang[cheaperlist]
" ; $row = "SELECT * FROM speed ORDER BY speed_value ASC"; $col = "SELECT DISTINCT days_id,days_name FROM days,plan WHERE plan_days=days_id AND plan_bandwidth IS NULL ORDER BY days_value ASC"; $cel = "ORDER BY plan_price ASC LIMIT 1"; table ($row,$col,$cel,"cheap") ; } $msg = "$lang[note1] $contus_menu" ; require_once('include/footer.php'); ?>