Special Offers
if (isset($_GET[id])) {
?>
= see_the_offer("ENG",$_GET[id]) ;?>
| |
|
| |
}else{
?>
include_once ("../classi/navigator.htm");
$today = date('Y-m-d');
$sql="SELECT * FROM offerte WHERE data_inizio>='$today' AND id_login='1'";
if ($id_login!=0) {
$sql.="AND id_login='$id_login' ";
}
if ($res=mysql_query($sql,$conn)) {
$rows=mysql_num_rows($res);
if ($rows==0) {?>
| No
offer available at the moment |
}else{
$mynavigator = new navigator($tot_num_rows = $rows, $rec_per_page = 6);
$sql.=" ORDER BY data_inizio $mynavigator->sql_limit";
if ($res=mysql_query($sql,$conn)) {
while ($data=mysql_fetch_array($res)) {
$sql_testi = "SELECT * FROM testi_offerte WHERE id_offerta='$data[id_offerta]' AND lingua='ENG' ";
$res_testi = mysql_query($sql_testi,$conn);
$data_testi = mysql_fetch_array($res_testi);
?>
} ?>
|
=$mynavigator->html_data;?>
|
|
| |
}else{
$result.="error";
}
}
}
}?>
|
|
|
|