現在私は使用しています
select text, tid from notifications where user = '".$_SESSION['id']."' ORDER BY id asc
しかし、私が使用している場合:
select text, tid from notifications where user = '".$_SESSION['id']."' ORDER BY id asc LIMIT 0,25
最初の 25 件のみが表示されます。最新の 25 件である必要があります。これを行うにはどうすればよいですか?
私はこれを解決したと思いますか?
$total = mysql_query("select id from notifications where user = '".$_SESSION['id']."'");
$total = mysql_num_rows($total)-25;
$l = mysql_query("select text, tid from notifications where user = '".$_SESSION['id']."' ORDER BY id asc limit $total,25") or die ( mysql_error());