= 0 || $cristal >= 0 || $hydrogene >= 0) { $tec = implode(' ',$fileTec).' '.$tec.' '; if (count($fileTemps_t) == 0 || count($fileTemps_t) == 1) $temps_tec = time().' '.$temps_tec.' '; else $temps_tec = implode(' ',$fileTemps_t).' '.$temps_tec.''; mysql_query("UPDATE planete SET metal='$metal', cristal='$cristal', hydrogene='$hydrogene' WHERE id_user='$id' AND galaxie='$galaxy' AND ss='$ss' AND position='$pos'"); mysql_query("UPDATE user SET temps_t='$temps_tec', tec='$tec' WHERE id='$id'"); } } mysql_close(); header('Location: laboratoire.php'); ?>