RE: [PHP-DB] Re: [PHP-WIN] (DRW) Ordenar por fecha
| From: | Miguel Guirao | Date: | Tue, 13 Feb 2007 15:19:22 +0000 |
| Subject: | RE: [PHP-DB] Re: [PHP-WIN] (DRW) Ordenar por fecha | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43073@lists.php.net to get a copy of this message | ||
You have to issue the following query:
select
id,publico_privado,usuario,fecha,categoria,pequena_comentario,comentario,arc
hivo from mi_sitio_personal_menu order by fecha
Tienes que usar la siguiente consulta:
select
id,publico_privado,usuario,fecha,categoria,pequena_comentario,comentario,arc
hivo from mi_sitio_personal_menu order by fecha
-----Original Message-----
From: bedul [mailto:landavia81@gmail.com]
Sent: Lunes, 12 de Febrero de 2007 10:41 p.m.
To: Anuack Luna
Cc: php-windows@lists.php.net; php-db@lists.php.net
Subject: [PHP-DB] Re: [PHP-WIN] (DRW) Ordenar por fecha
Importance: High
english plz
you know.. i'm not native with english.. but using english is very helpfull
to me for solve your problem
----- Original Message -----
From: "Anuack Luna" <anuack@gmail.com>
To: <php-windows@lists.php.net>
Sent: Friday, February 09, 2007 6:28 AM
Subject: [PHP-WIN] (DRW) Ordenar por fecha
> Hola Foreros
>
> Tengo la siguiente pregunta.
>
> Como puedo darle la orden a un juego de registro que me lo ordene por
fecha?
>
> SELECT *
> FROM mi_sitio_personal_menu
> ORDER BY id DESC
>
> Si le digo Orden by fecha Desc... Me lo ordena por números, no por fecha.
>
> La fecha de la siguiente forma: "DIA/MES/AÑO"
>
> Alguna sugerencia... Adjunto database
>
>
> --
> -- Estructura de tabla para la tabla
mi_sitio_personal
> --
>
> CREATE TABLE mi_sitio_personal (
> id int(11) NOT NULL auto_increment,
> publico_privado varchar(10) default '0',
> usuario varchar(255) default NULL,
> fecha varchar(100) default NULL,
> categoria varchar(100) default NULL,
> pequena_comentario text,
> comentario text,
> archivo varchar(255) default NULL,
> PRIMARY KEY (id)
> ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
>
> --
> -- Volcar la base de datos para la tabla mi_sitio_personal
> --
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Este mensaje es exclusivamente para el uso de la persona o entidad a quien esta dirigido; contiene
informacion estrictamente confidencial y legalmente protegida, cuya divulgacion es sancionada por la
ley. Si el lector de este mensaje no es a quien esta dirigido, ni se trata del empleado o agente
responsable de esta informacion, se le notifica por medio del presente, que su reproduccion y
distribucion, esta estrictamente prohibida. Si Usted recibio este comunicado por error, favor de
notificarlo inmediatamente al remitente y destruir el mensaje. Todas las opiniones contenidas en
este mail son propias del autor del mensaje y no necesariamente coinciden con las de Radiomovil
Dipsa, S.A. de C.V. o alguna de sus empresas controladas, controladoras, afiliadas y subsidiarias.
Este mensaje intencionalmente no contiene acentos.
This message is for the sole use of the person or entity to whom it is being sent. Therefore, it
contains strictly confidential and legally protected material whose disclosure is subject to penalty
by law. If the person reading this message is not the one to whom it is being sent and/or is not an
employee or the responsible agent for this information, this person is herein notified that any
unauthorized dissemination, distribution or copying of the materials included in this facsimile is
strictly prohibited. If you received this document by mistake please notify immediately to the
subscriber and destroy the message. Any opinions contained in this e-mail are those of the author of
the message and do not necessarily coincide with those of Radiomovil Dipsa, S.A. de C.V. or any of
its control, controlled, affiliates and subsidiaries companies. No part of this message or
attachments may be used or reproduced in any manner whatsoever.