GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   another php/mysql question.. this time it's about separator's (https://gfy.com/showthread.php?t=599034)

poe 04-17-2006 11:09 AM

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'].", ";

mrkris 04-17-2006 11:10 AM

You need to post to a php forum, not gfy :thumbsup

poe 04-17-2006 11:12 AM

Quote:

Originally Posted by mrkris
You need to post to a php forum, not gfy :thumbsup

it's all good :)

mrkris 04-17-2006 11:14 AM

hit me up on icq, i'll help ya out.

Azlord 04-17-2006 11:19 AM

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.

mrkris 04-17-2006 11:21 AM

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