CRO8 Posted April 29, 2004 Posted April 29, 2004 ok, I did a search on TCH for "tables and mysql" but found nothing. Anyway, making progress with my project. I have a mysql/php page presenting correct results But I want to incorporate tables on my page and create columns and rows for the info. I tried to put my code within a table and I get a blank page. What am I missing? What are the rules with using tables and php/mysql? Thanks! Quote
TCH-Rob Posted April 29, 2004 Posted April 29, 2004 Putting PHP code into a table shouldnt cause an issue. It kind of depends on what you are trying to accomplish. Can you give us an example to look at? Quote
DarqFlare Posted April 29, 2004 Posted April 29, 2004 Example: ><table> <? while($datareturn - mysql_row($databack)) { $1 = $datareturn[0]; $2 = $datareturn[1]; echo "<tr><td>$1</td><td>$2</td></tr>"; } ?> </table> Quote
CRO8 Posted April 30, 2004 Author Posted April 30, 2004 Thanks guys. I think Robert has it. Let me explain. User logs on and sees homepage, where there is a menu on left side, banner ads up top. User clicks on "button 1" on left menu, the hyperlink passes "1" to my php page which returns results, but I want the results to be presented within a page with the same layout as homepage (left menu, banner on top, etc) so, to the user, nothing has changed layout wise, just that now there is new info in body of page- layout remaining the same. Makes sense? Let me go home tonight and play around and re-post. Thanks! *9 hours later, biz day ends* You know I put the code inside a <td></td> of a table and the page is blank, but when I view source I can see the correct results. Quote
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.