mysql_fetch_array en php7.4.3
Publicado por jose luis (65 intervenciones) el 23/05/2020 23:05:40
hola tengo este codigo y no me funciona el mysql_fetch_array, hay alguna forma de hacerlo en php7.4.3?
un saludo.
un saludo.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if (isset($_POST["editar"]))
{
echo "<form action='newfile.php' method='post'>";
echo "<table border=1>";
$h_id=$_POST["h_id"];
$datos = $db->query("select * from rutas where id='$h_id'");
$fila =mysql_fetch_array($datos);
$info_tabla = $db->query("describe rutas");
//foreach($info_tabla as $row)
while($row = mysql_fetch_array($info_tabla))
{
$field=$row[Field];
echo("<tr>");
echo("<td>".$row[Field]."</td><td><input type='text' name='".$row[Field]."'value='".$fila[$field]."'></td>");
echo("</tr>");
}
echo"</table>";
echo("<input type='submit' name='modificar' value='Modificar'> <input type='hidden' name='h_id' value='".$h_id."'</td>");
echo "</form>";
}
Valora esta pregunta


0