Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/04/2008, 13:19
hasc
 
Fecha de Ingreso: abril-2008
Mensajes: 14
Antigüedad: 16 años, 1 mes
Puntos: 0
Re: Ayuda Con Select en Php

Cita:
Iniciado por jovendigital Ver Mensaje
Código PHP:
echo     "<td width='20%' style='vertical-align:top'>"
echo     
"<select name='estado'>"
$result mysql_query("Select estado From beneficios where rut = '".mysql_escape_string($_POST['caja1'])."' order BY estado"); 
while(
$row=mysql_fetch_array($result)) { 
if(
$result=="Pendiente") {
$estado="Pendiente"
echo 
"<option value=$row['estado'] selected>$row['estado']</option>"
echo 
"<option value='Solucionado'>Solucionado</option>"; }
if(
$result=="Solucionado") {
$estado="Solucionado"
echo 
"<option value= 'Solucionado' selected>Solucionado</option>"
echo 
"<option value=$row['estado']>$row['estado']</option>"; }

echo     
"</select></td>"
Creo que te refieres a esto
ME sale el siguiente error:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in E:\wamp\www\consulta.php on line 132