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
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?

Link to comment
Share on other sites

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

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.

Guest
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.