p15-d24 Posted December 14, 2006 Share Posted December 14, 2006 ??? On the main page of the PHP Freaks Code Library is exactly what I want to do... For example, in the "Code Examples" you have a date (first column) and the next two columns are data as links. Anyone have an example I can review? Assume I have the query getting the data out of MySql. How do you format the href into the table? My current projects just create the table on the fly based on the number of columns in the select and number of rows returned. I'm really new to the PHP stuff so try to KISS if possible. TIA Quote Link to comment https://forums.phpfreaks.com/topic/30600-building-html-tables-with-data-values-in-the-cells-that-are-links/ Share on other sites More sharing options...
.josh Posted December 14, 2006 Share Posted December 14, 2006 just wrap the href tags around the data like you normally would. For instance:[code]while ($list = mysql_fetch_array($result)) { echo "<a href = 'someurl'>{$list['somefield']}</a><br/>";}[/code] Quote Link to comment https://forums.phpfreaks.com/topic/30600-building-html-tables-with-data-values-in-the-cells-that-are-links/#findComment-140926 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.