Article View: es.comp.os.linux.programacion
Article #7315select con php
From: kurtsik
Date: Thu, 06 Mar 2003 19:00
Date: Thu, 06 Mar 2003 19:00
36 lines
2025 bytes
2025 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Salu2.
Estoy intentando hacer una peque�a aplicacion via web con php y mysql, y hay
unas cosas que se me estan resistiendo bastante. Os las comento y a ver si
podeis echarme una mano:
- -En esta consulta siempre me da error y, creo, que la sintaxis es correcta,
es asi?
if (!($resultado=mysql_query("SELECT * FROM datos WHERE fecha BETWEEN
#'$fecha1' AND #'$fecha2' AND id='$nombre'"))) die ("Error en la
consulta");
- -Por otro lado $fecha1 es esto:
$fecha1=$a�o."/".$mes."/".$dia;
Es valido como fecha en el select?
Bueno, creo que esto es todo :-)
Gracias mil.
Kurtsik
- --
- - - ------------------------------------------------------------------
"Euskera da euskaldun egiten gaituena"
Mandrake 9 Linux erabiltzaile errejistratua: #231651
GnuPG giltza: www.rediris.es/pgp ---> kurtsik_news
- ------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+aPp36gRb2POS43sRAiLIAJ0aYqAjgRe435qqW3t3r3UJJuJVTQCfYEr9
G8ksgcWX51PcYm+ZSS+pwIk=
=+koG
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<b485s7$1sd42v$1@ID-101278.news.dfncis.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!221.red-80-35-97.pooles.rima-tde.NET!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,37bbdd8515b5918a,start X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2003-03-06 11:00:26 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!221.red-80-35-97.pooles.rima-tde.NET!not-for-mail From: kurtsik <merlinaztia*STOPSPAM*@mixmail.com> Newsgroups: es.comp.os.linux.programacion Subject: select con php Date: 6 Mar 2003 19:00:23 GMT Lines: 36 Message-ID: <b485s7$1sd42v$1@ID-101278.news.dfncis.de> Reply-To: merlinaztia*STOPSPAM*@mixmail.com NNTP-Posting-Host: 221.red-80-35-97.pooles.rima-tde.net (80.35.97.221) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit X-Trace: fu-berlin.de 1046977223 63344735 80.35.97.221 (16 [101278]) User-Agent: KNode/0.7.1