You are here: using php to populate a <ul « PHP Programming Language « IT news, forums, messages
using php to populate a <ul

Posted by Japhy on 11/16/43 11:28

Hello,
I'm am pulling data from a mysql db and want to use the data to
populate a <ul.
Here are relavent parts of my code :

$wohdate = mysql_result($wohRS,$wohndx,woh_date);
$woh_display .="<li>".$wohdate."</li>" ;

$TemplateText = Replace($TemplateText,"@$wohdisplayndx@",$woh_display);


print($TemplateText) ;

So, I have 8 woh_dates that I retrieve (verified with an echo).
My page only displays the first of the 8.
ie :
2000-01-01
2001-01-01
2002-01-01
are retrieved, but only 2000-01-01 is displayed on the page.
Something wrong with appending as I am doing in
$woh_display .="<li>".$wohdate."</li>" ;

Thanks!

 

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

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