='$data_atual_'";
$res_15 = mysql_query($sql_15, $dbs_con);
while($arr_15 = mysql_fetch_array($res_15)){
extract($arr_15,3,"sp");
$hora_ = date("h", time());
$hora_banco = substr("$sp_hora", 0, 2);
if($hora_banco != $hora_){
$sql_ = "UPDATE `shop_produtos` SET `cont_hora`=0, `hora`=$hora_ , `data`=0000-00-00 WHERE id ='$sp_id'";
$res_ = mysql_query($sql_, $dbs_con);
}
}
$link = $_GET["link"];
$data_atual_ = (date("Y-m-d"));
switch ($link){
case 'home':
require("home.php");
break;
case 'exibe':
require("exibe.php");
break;
case 'exibex':
require("exibex.html");
break;
case 'homex':
require("homex.html");
break;
case 'exibe_teste':
require("exibe_mais_prod_teste.php");
break;
default:
include("home.php");
break;
}
?>