Salve ho un problema con questo codice
Nel database xx e uguale a 4 ss e uguale a 2 e dd e uguale a 4
il problema sta sempre che mi visualizza questo template qui errore
e non mi visualizza mai l'ok
Codice PHP:
if ($mode == 'XXXX') {
$Query = doquery("SELECT * FROM {{table}} WHERE `id` = '". $user['current_planet'] ."';", 'planets', true);
$Query['xx'] == 4 ;
$Query['ss'] == 2 ;
$Query['dd'] == 4 ;
if($meteo_query['xx'] == 4 && $meteo_query['ss'] == 2 && $meteo_query['dd'] == 4){
$page .= parsetemplate(gettemplate('ok'), $lang);
display($page);
}else{
$page .= parsetemplate(gettemplate('errore'), $lang);
display($page);
}
}