![]() |
another php/mysql question.. this time it's about separator's
also: i have a separator between each entry.. is there an if something() to check if it's the last entry, so the separator doesn't show up at the end?
now i have: Code:
echo $row['name'].", "; |
You need to post to a php forum, not gfy :thumbsup
|
Quote:
|
hit me up on icq, i'll help ya out.
|
Well, do you have an ID column in your table? if so, you can always do something like
if ($row['id'] = mysql_num_rows($res)) { echo "whatever without the comma"; } else { echo "what you want"; } I think that would work. There might be a small catch. Can't really tell unless I had something to test with. |
implode()
|
All times are GMT -7. The time now is 03:36 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123