Ver Mensaje Individual
  #8 (permalink)  
Antiguo 11/09/2010, 17:12
Avatar de Maverik2
Maverik2
 
Fecha de Ingreso: agosto-2010
Mensajes: 67
Antigüedad: 13 años, 8 meses
Puntos: 1
Respuesta: PHP MYSQL y Lista/Menu

ok, hice lo q me dices ahi y tengo esto.

Código PHP:
if ($language != 0
{
                    (
$_REQUEST['action'] == "acc")
                    
$id2 intval($_REQUEST['acc']);
                   
$result2 =  mysql_query("SELECT id,zona,ip,acc1,acc2,acc3,acc4,acc5,acc6,acc7,acc8 FROM zonas WHERE zona=$id2");

    echo       
"<form action=".htmlspecialchars($row['zona'])." method="get" name="acc1">";
    echo    
"<label class="username" for="username">".htmlspecialchars($row['acc1']).":</label>";
    echo       
"<input type="submit" name="acc1" value="ON">";
    echo      
"<input type="submit" name="acc1" value="OFF">";
    echo      
"</form>";
?> 
pero me da un error en la fila q dice: $id2 = intval($_REQUEST['acc']);
Parse error: syntax error, unexpected T_VARIABLE.
tienes idea de porq es eso??