include "cafematao/mysqlconecta.php" ; include "cafematao/mysqlexecuta.php" ; $select = "SELECT * from parametros where idpar = '1' " ; $res_par = mysqlexecuta($id,$select) ; while ($line_par = mysql_fetch_array($res_par)){ $status = $line_par['valorpar'] ; } // controle de acesso $ip = getenv("REMOTE_ADDR"); $insertiup = "insert into visitantes values (NULL, '$ip' , NULL)"; mysql_query($insertiup); ?>