[PHP] calling all set vars

2001-12-03 Thread christian.donhofer

hola...

one question:

is there a way of calling all vars at once to analize there details, i. e. prefixes or 
value?

thanks in advance, chris




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] database problem?

2001-12-02 Thread christian.donhofer

hi all!

i have the following problem:

1.im loading 5 colums from a mysql-table into an array: 

$threads = db_query(SELECT title, date, body, poster, board_posts_ID FROM board_posts 
WHERE msgkind = 'thr' 
   ORDER BY date DESC);

everything fine so far...

2.im trying to list them line by line:

while (list ($title, $date, $body, $poster, $msgID) = mysql_fetch_array($threads)){
print ( tr\n.
 tda href=\view_thread.phpparent=.$msgID. 
 \$title/a/td\n.
 td$poster/td\n.
 td$date/td\n.
 /tr\n);

}
here is the problem:
there's always one line(row) missing (i.e. if there are 17 rows in the db, 16 are 
being displayed in the browser).i've tried the same code with mysql_fetch_row()...no 
difference in the outcome.

please reply to this msg if you can help,
thx in advance, Chris




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]