Re: Consulta SQL con variables de php

From: Date: Tue, 11 Mar 2003 22:34:36 +0000
Subject: Re: Consulta SQL con variables de php
References: 1 2 3 4 5  Groups: php.general.es 
Request: Send a blank email to general-es+get-33579@lists.php.net to get a copy of this message
http://www.php.net/manual/en/function.mssql-execute.php Fijate entre los comentarios ... ----- Original Message ----- From: "Sey" <seychelles.martinez@uho.edu.cu> To: <lista@phpes.com> Sent: Tuesday, March 11, 2003 6:17 PM Subject: Re: [PHP-ES] Consulta SQL con variables de php > utilizo MSSQL > > ----- Original Message ----- > From: "Pablo E. Siciliano" <psiciliano@puentenet.com> > To: <lista@phpes.com> > Sent: Tuesday, March 11, 2003 3:53 PM > Subject: Re: [PHP-ES] Consulta SQL con variables de php > > > > Que motor de base de datos estas usando? > > > > ----- Original Message ----- > > From: "Sey" <seychelles.martinez@uho.edu.cu> > > To: <lista@phpes.com> > > Sent: Tuesday, March 11, 2003 5:39 PM > > Subject: [PHP-ES] Consulta SQL con variables de php > > > > > > > Hola listeros > > > > > > Podrian ayudarme con esto: > > > Quiero hacer un procedimiento almacenado donde utilizo el TOP numero, > ese > > > numero que le quiero pasar es una variable. Para explicarme mejor: > > > > > > SELECT TOP ".$CantMostrarLista." dbo.Criteriomedida.* FROM > > > dbo.Criteriomedida > > > where CM not in (SELECT TOP > > > ".$inicio." Criteriomedida.CM > > > FROM dbo.Criteriomedida ORDER BY > CM) > > > ORDER BY CM > > > > > > El resultado de la consulta es el que deseo, pero tengo que ponerla en > la > > > pagina, lo que la hace muy dificil al ver, me gustaria ponerla en un > > > procedimiento almacenado. Si alguien sabe que me ayude. > > > > > > Saludos. > > > > > > > > > --------------------------------------------------------------------- > > > 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 > > > > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.461 / Virus Database: 260 - Release Date: 10/03/03 > > > > > > --------------------------------------------------------------------- > > 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 > > > > > --------------------------------------------------------------------- > 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 > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.461 / Virus Database: 260 - Release Date: 10/03/03

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