Re: ayuda con fetch_row!!!
| From: | Joe Nilson Zegarra Galvez | Date: | Mon, 01 Dec 2003 15:26:30 +0000 |
| Subject: | Re: ayuda con fetch_row!!! | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-43176@lists.php.net to get a copy of this message | ||
ine 5: $a=mysql_query("select * from instalaciones where id = " .
$MID,$conexion);
aqui deberia ser
$a=mysql_query("select * from instalaciones where id = '$MID'",$conexion);
el error es porque las comillas dobles estan terminando en id = , es por
eso el error, solo sintaxis ;).
Saludos
Nilson
Daniel Alvarez a dit :
> Estimados, alguien sabe a que se debe este error????
>
> Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result
> resource in /home/stud/public_html/cerari/instalaciones.php on line 6
>
> Aqui esta el codigo del archivo en cuestion:
>
> line 1: <?php
> line 2: include "conecta.php";
> line 3: $MID = $_GET['id'];
> line 4:
> line 5: $a=mysql_query("select * from instalaciones where id = " .
> $MID,$conexion);
> line 6: $r=mysql_fetch_row($a);
>
> Esto es lo que tiene el archivo conecta.php:
>
> <?
> $dbhost="localhost";
> $dbusuario="mestudio_arizu";
> $dbpassword="arizu";
> $db="mestudio_arizu";
> $conexion = mysql_connect($dbhost,$dbusuario,$dbpassword);
> mysql_select_db($db,$conexion);
> ?>
>
>
> Espero sus comentarios, slds. Daniel