You are here: Implode? Explode? « PHP « IT news, forums, messages
Implode? Explode?

Posted by Jack Jackson on 06/06/05 15:32

Hi all,
I'm trying to fetch similar things - in this case, rows which share a
series ID no - and bring them into an array and display them grouped by
what makes them similar (in this case, series id). I looked at implode
and explode which seem wrong for this - the only separator I can see is
that they're each in a table cell.

The result of my query returns something like:

art_id series_id art_title series_name
2 1 Weddings 2004 Summer Special
4 1 Summer In The City Summer Special
5 2 Bags of NY Op-Art
7 2 Dogs of NY Op-Art


I'd like to create a list of links to each art_id grouped together as
series, href code obviously not complete but demonstrative:

<p>Summer Special<br />
<a href='2'>Weddings 2004</a> | <a href='4'>Summer In The City</p>

<p>Op-Art<br />
<a href='5'>Bags of NY</a> | <a href='7'>Dogs of NY</p>


?

Thanks in advance,
Jack

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация