Tengo un par de preguntas de PHP, no conoces algún
foro de SQL donde me la
puedan responder?
----- Original Message -----
From: "Leopoldo" <potxoka3a_at_yahoo.
es>
To: <php-es_at_lists.php.net>
Sent: Saturday, March 24, 2007 12:10 PM
Subject: [PHP-ES] Ayuda con SQL
> ola
>
> tengo una SQL para sacar unos datos
de un foro pero ahora quiero cambiar
> la SQL, pero nada, no me funciona la
SQL
>
> SELECT
> foro_topics.topic_id,
> foro_topics.topic_title,
> foro_posts.post_id,
> foro_posts.post_time
> FROM
> foro_posts,
> foro_topics,
> foro_forums
> WHERE
> foro_forums.forum_id <> 5
AND
> foro_posts.forum_id =
foro_forums.forum_id AND
> foro_posts.post_id =
foro_topics.topic_last_post_id AND
> foro_posts.poster_id =
foro_users.user_id
> ORDER BY
> post_time DESC LIMIT
0,18;
>
> Quiero que tampoco me muestre el
forum_id 8, pero al poner
> "foro_forums.forum_id <> (5 OR
8) AND" y "(foro_forums.forum_id <> 5 OR
> foro_forums.forum_id <> 8)
AND"; alguna mas tambien puse, pero nada, no me
> funciona. ¿Alguien puede
ayudarme?gracias
>
> saludos
>
> --
> PHP Spanish Localization Talk
Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> No virus found in this incoming
message.
> Checked by AVG Free
Edition.
> Version: 7.5.446 / Virus Database:
268.18.17/731 - Release Date:
> 23/03/2007 15:27
>
>
--
PHP Spanish Localization Talk Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nearby sáb mar 24 2007
- 12:23:09 CET