input text
Posted: Fri Mar 28, 2003 7:02 am
In following script I modify the data of the table “Memorias”
The problem consists of which in the instruction (<input type….)
single it shows the first word of the fields
where it is the error?
mysql_select_db('auth',$conexion);
$result=mysql_db_query("auth","select * from Memorias where Numero='$numero'");
$row = mysql_fetch_row($result);
echo "<td> Número de Memoria: $numero</td><tr>";
echo "<td> Nombre: <input type=text name='nombre' value=$row[1]></td><tr>";
echo "<td> Teléfono: <input type=text name='telefono' value=$row[2]></td><tr>";
echo "<td> Mail: <input type=text name='email' value=$row[3]></td><tr>";
echo "<td> <input type=hidden name='numero' value=$row[0]>";
echo "<input type=submit value='Modificar los datos'></td></tr>";
echo "</table>";
The problem consists of which in the instruction (<input type….)
single it shows the first word of the fields
where it is the error?
mysql_select_db('auth',$conexion);
$result=mysql_db_query("auth","select * from Memorias where Numero='$numero'");
$row = mysql_fetch_row($result);
echo "<td> Número de Memoria: $numero</td><tr>";
echo "<td> Nombre: <input type=text name='nombre' value=$row[1]></td><tr>";
echo "<td> Teléfono: <input type=text name='telefono' value=$row[2]></td><tr>";
echo "<td> Mail: <input type=text name='email' value=$row[3]></td><tr>";
echo "<td> <input type=hidden name='numero' value=$row[0]>";
echo "<input type=submit value='Modificar los datos'></td></tr>";
echo "</table>";