Jump to content

Need Help with tables and images


inferium

Recommended Posts

I'm pretty new to PHP, so any help would be much appreciated :) I'm trying to build a form that would take a simple table and fill it with information. Like, as if I had a table set as a template, and the only things that would be changed would be some text and an image. Maybe the colors too. I've found a lot of different scripts online that allow you to change images and text, but how would I go about changing the cell data in the table? I hope this makes sense.

Link to comment
https://forums.phpfreaks.com/topic/121295-need-help-with-tables-and-images/
Share on other sites

Ah, thanks :) So if I dynamically generate the tables, can I do this to where there would be form fields with various options to fill out the table fields? And then like a "generate table" button that would lead to a page where the table has been generated?

yeah you'd basically have like a template of your dynamic content.. like :

 

<table>

  <tr>

      <td><img src="<php print $record['imgSrc']; ?>" /></td>

      <td>Name: <?php print $record['name']; ?></td>

  </tr>

  .......... etc

 

And basically the content would change varying what record you'd selected...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.