Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-17-2006, 11:09 AM   #1
poe
Confirmed User
 
Join Date: Mar 2004
Posts: 455
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'].", ";
__________________
poe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2006, 11:10 AM   #2
mrkris
Confirmed User
 
Join Date: May 2005
Posts: 2,737
You need to post to a php forum, not gfy
__________________

PHP-MySQL-Rails | ICQ: 342500546
mrkris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2006, 11:12 AM   #3
poe
Confirmed User
 
Join Date: Mar 2004
Posts: 455
Quote:
Originally Posted by mrkris
You need to post to a php forum, not gfy
it's all good
__________________
poe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2006, 11:14 AM   #4
mrkris
Confirmed User
 
Join Date: May 2005
Posts: 2,737
hit me up on icq, i'll help ya out.
__________________

PHP-MySQL-Rails | ICQ: 342500546
mrkris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2006, 11:19 AM   #5
Azlord
Confirmed User
 
Azlord's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: City... City of Satan
Posts: 2,651
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.
Azlord is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2006, 11:21 AM   #6
mrkris
Confirmed User
 
Join Date: May 2005
Posts: 2,737
implode()
__________________

PHP-MySQL-Rails | ICQ: 342500546
mrkris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.