02-04-2007, 10:36
|
|
|
חבר מתאריך: 31.05.05
הודעות: 190
|
|
[SQL] להציג הכל מטבלה מסוימת חוץ מ x
יש לי מערכת חדשות,
אני מחפש פקודה שתוציא את כל החדשות חוץ מ where id=50.
יש לי עכשיו את זה -
קוד PHP:
$getnews = mysql_query("select * from news ORDER BY id DESC LIMIT $from, $max_results");
while($r=mysql_fetch_array($getnews)){
extract($r);
echo("$title");
אני צריך שזה יישאר ככה, ויוציא הכל חוץ מהכתבה שה id שלה הוא 50,
תודה מראש.
_____________________________________
Your signature did not follow Fresh's signatures policy, therefore it was automatically erased. Please see the E-Mail which has been sent to you, to learn how to fix this.
|