Re: Ayuda con SQL
| From: | Satyam | Date: | Sat, 24 Mar 2007 11:15:30 +0000 |
| Subject: | Re: Ayuda con SQL | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-60650@lists.php.net to get a copy of this message | ||
Tengo un par de preguntas de PHP, no conoces algún foro de SQL donde me la puedan responder?
----- Original Message ----- From: "Leopoldo" <potxoka3a@yahoo.es>
To: <php-es@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