Re: ayuda con fetch_row!!!

From: Date: Tue, 02 Dec 2003 04:14:22 +0000
Subject: Re: ayuda con fetch_row!!!
References: 1 2  Groups: php.general.es 
Request: Send a blank email to general-es+get-43180@lists.php.net to get a copy of this message
Nilson, hice el cambio que me dijiste pero me sigue saliendo el error.... sera porque el campo ID es integer y el argumento que le paso ($MID) no esta definido como tal???? ----- Original Message ----- From: "Joe Nilson Zegarra Galvez" <nzegarra@kolareal.net> To: <lista@phpes.com> Sent: Monday, December 01, 2003 12:26 PM Subject: Re: [PHP-ES] ayuda con fetch_row!!! > 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 > > --------------------------------------------------------------------- > Archivo On-line: http://www.phpes.com/ > via news: news://news.phpes.com/ > Manual PHP en español: http://www.php.net/manual/es/ > Para dar de baja la suscripción, mande un mensaje a: > lista-unsubscribe@phpes.com

« previous php.general.es (#43180) next »