Re: [chassa2556] What php code is needed in a table cell
Hi Charles,
There's no special php code required for tablecells. PHP doesn't "know" anything about HTML, it can just repeat blocks of text and display information from your database.
What you need to do is figure out exactly what html you want repeated. Once you get that part figure out it will be much easier.
Try doing this is plain html first. Create a file with an html comment around a content row. You should be able to copy and paste that row a few times to repeat it without any problems.
Next, create a block of code with comments around it for your images. You should be able to copy and paste that block multiple times without breaking the design.
Once you get that far try adding the foreach loop first around the article row - get that working - then around the images in the row.
Hope that helps!
Dave Edis - Senior Developer
interactivetools.com