Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/01/2009, 07:28
Avatar de emiliodeg
emiliodeg
 
Fecha de Ingreso: septiembre-2005
Ubicación: Córdoba
Mensajes: 1.830
Antigüedad: 19 años, 6 meses
Puntos: 55
Respuesta: Error de sintaxis!

fijate que tenes todo metido dentro de un echo lo cual esta mal, deberia ser algo asi


Código PHP:
echo "
<table border=\"0\">
      <tr>
            <td colspan=\"2\"><h2>Hardware</h2></td>
      </tr>
      <tr>
            <td><strong>Dispositivo:</strong></td>
            <td>
                   <select name=\"hardware\" size=\"1\">"
;
                          
$num=0;
                          
$sql='SELECT * FROM hardware WHERE hardware_id !=1 ORDER BY hardware_name';
                          
$resultado pg_query($sql);
                          
$num=pg_num_rows($resultado);
                          print 
'<option value=\"1\">&nbsp;</option>';
                          while(
$result pg_fetch_array($resultado)) 
                          {
                                
$id=$result['hardware_id'];
                                
$name=ucwords($result['hardware_name']);
                                print 
'<option value=\".$id.\">'.$name.'</option>';
                                
$num++;
                           }    
echo 
"            </select>
             </td>
       </tr>
</table>"

__________________
Degiovanni Emilio
developtus.com