
10-23-2003, 02:31 AM
|
|
|
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Hooper
Hello,
How do I tell the following sql query to grab from all forums? Or set
$forums to all?
$limit=10 ;
$forums= 19 ;
$sql = "SELECT threadid, title, forumid, replycount, postusername, postuserid, lastposter, dateline, FROM thread WHERE forumid = \"$forums\" ORDER BY threadid DESC LIMIT $limit";
|
PHP Code:
$limit = 10;
// $forums = 19;
$sql = 'SELECT * FROM thread ORDER BY threadid DESC LIMT ' . intval($limit) . '';
|