inferium Posted August 25, 2008 Share Posted August 25, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/121295-need-help-with-tables-and-images/ Share on other sites More sharing options...
DarkWater Posted August 25, 2008 Share Posted August 25, 2008 Sounds easy enough, but can you be a bit more specific? I think I have an idea of what you're going for, but what do you actually want entered into the form and stuff? Quote Link to comment https://forums.phpfreaks.com/topic/121295-need-help-with-tables-and-images/#findComment-625313 Share on other sites More sharing options...
inferium Posted August 25, 2008 Author Share Posted August 25, 2008 Basically, I want to be able to take this table - - And change the fields that are filled in. Like, the image in the top-left and the text in all the boxes. Quote Link to comment https://forums.phpfreaks.com/topic/121295-need-help-with-tables-and-images/#findComment-625329 Share on other sites More sharing options...
DarkWater Posted August 25, 2008 Share Posted August 25, 2008 Oh, you can just store the info in the database and dynamically generate the tables. If you're unfamiliar with MySQL in PHP, there's a guide in the Tutorials section of this site. Quote Link to comment https://forums.phpfreaks.com/topic/121295-need-help-with-tables-and-images/#findComment-625332 Share on other sites More sharing options...
inferium Posted August 25, 2008 Author Share Posted August 25, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/121295-need-help-with-tables-and-images/#findComment-625338 Share on other sites More sharing options...
DarkWater Posted August 25, 2008 Share Posted August 25, 2008 Yeah, should work. Quote Link to comment https://forums.phpfreaks.com/topic/121295-need-help-with-tables-and-images/#findComment-625339 Share on other sites More sharing options...
Adam Posted August 25, 2008 Share Posted August 25, 2008 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... Quote Link to comment https://forums.phpfreaks.com/topic/121295-need-help-with-tables-and-images/#findComment-625386 Share on other sites More sharing options...
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.