Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/10/2013, 19:17
JeanPHP
 
Fecha de Ingreso: junio-2013
Mensajes: 11
Antigüedad: 10 años, 10 meses
Puntos: 0
traer datos a un input con espacios

ESTE ES M ICODIGO.. LO QUE PASA ES Q SI JALA MI BASE DE DATOS A LOS INPUT PERO SOLO JALA HASTA ANTES DEU NESPACIO.. EJEMPLO Jean carlos .. solo jala Jean.. como arreglo eso ?


Código PHP:
$s=$_REQUEST["search"];
$sql="select *from Personas where Nombre ='$s'";
$rs=mysql_query($sql,$db);
if($fila=mysql_fetch_array($rs)){?>
<table border='1'>
<tr>
<td width="58">Nombre</td><td width="167"><input type="text" value= <?php echo $fila["Nombre"?>></td>
</tr>
<tr>
<td>Direccion</td><td><input type="text" value= <?php echo $fila["Direccion"?>></td>
</tr>
<tr>
<td>Mail</td><td><input type="text" value= <?php echo $fila["Mail"?>></td>
</tr>
<tr>
<td>Telefono</td><td><input type="text" value= <?php echo $fila["Telefono"?>></td>
</tr>
</table>