Jump to content

Correct way to create a table within <?php ?>


Recommended Posts


Had some great help yesterday, but I'm stuck using <?php ?> on every line, thanks to Joomla


Anyway, I'm trying to create a table, and it doesn't seem to be working, to create it, what is the correct format?


<?php <table width='400px' border ='1'>; ?>  ??


output will be put out on a per line within a if statement, which works, just the framing of the table and tr and td seem to be eluding me.



Link to comment
Share on other sites

Or alternatively come out of your <?php ?> tags and just put pure HTML in then reopen you tags as and when you need to.




/* Some php code defining variables, functions etc etc*/

<tr><td>blah blah <?php echo $variable ?> blah </td></tr>
// more php code


Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.