![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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'].", ";
__________________
’ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: May 2005
Posts: 2,737
|
You need to post to a php forum, not gfy
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Join Date: Mar 2004
Posts: 455
|
Quote:
![]()
__________________
’ |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: May 2005
Posts: 2,737
|
hit me up on icq, i'll help ya out.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: May 2005
Posts: 2,737
|
implode()
|
![]() |
![]() ![]() ![]() ![]() ![]() |