Unbreakable Posted January 28, 2007 Share Posted January 28, 2007 I was wondering how you would make tables in PHP instead of HTML. (I don't know anything in PHP) This site: http://top-magneto.com/autosurf/index.php has some nice tables and I was wondering how I could make something similiar to this while being easy to add new information to the tables(HTML is a pain to make/edit big tables). Thanks.Edit: How this post got in this forum, I don't know. ??? Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted January 28, 2007 Share Posted January 28, 2007 that table would've been built with html put the actuall data would've been populated by using PHP and a while() command, i presume.PHP can't make tables, it can populate them though. Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 28, 2007 Share Posted January 28, 2007 You could have a function like tableRow($tds){ print '<tr>'; foreach($tds AS $td){ print '<td>'.$td.'</td>'; } print '</tr>';}Is that what you mean? Quote Link to comment 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.