
29/03/2011, 14:00
|
| | Fecha de Ingreso: marzo-2010 Ubicación: colombia_santander
Mensajes: 68
Antigüedad: 14 años, 11 meses Puntos: 0 | |
Respuesta: consultas con script sale este error ahora:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\faico\consulta.php on line 6
<?php
include("conec.php");
$link=Conectarse();
$id=$_GET['id'];
$result=mysql_query("SELECT * FROM maquina WHERE id=$id");
$row=mysql_fetch_array($result,$link);
?>
<p>
<label>
<input type="text" name="textfield" value="<? echo $row["nombmaq"]; ?>">
</label>
</p>
<p>
<input type="text" name="textfield2" value="<? echo $row["tipo_man"]; ?>">
</p>
<p>
<input type="text" name="textfield3" value="<? echo $row["operario"]; ?>">
</p>
.
.
.
<p> </p> |