|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Dynamic Tables with MySQL data
Hey there guys and girls.
![]() One day I woke up and wanted to make a php-news system. So I went to work and I got as far that I managed to get it working. I got a admin page, so that I can delete posts and also add new stuff. I was also able to echo the news; PHP Code:
But now I want to make it somewhat fancier.. so I thought.. hey, why not try putting each news item in a different table?! So I started trying some stuff.. but I didn't get it to work.. ![]() This is the table I want to use; PHP Code:
So how do I make it that it also generates new tables? Some help is much appriciated cus I'm rather new to this php stuff. I hope you can help me out. Greetz NewTune |
|
#2
|
|||
|
|||
|
in your while statement when you are pulling the information from your databse put this table in....
|
|
#3
|
|||
|
|||
|
Well, thats all of HTML, make a page first in HTML using the text editor you use, or Dreamweaver etc... and then just insert it into the script.
|
|
#4
|
|||
|
|||
|
Thanks for the help you guys, I'm going to try it out real soon
![]() Btw Happy New Year all ![]() |
|
#5
|
|||
|
|||
|
OKe, I've been working on it and I got it working for about 75%...
here is the code I got; PHP Code:
http://members.lycos.nl/internetdum.../index2_new.php That's what I'm getting ![]() I wanted it to display all the newstables and make a new one for each of the news items.. Any1 know what I did wrong? |
|
#6
|
|||
|
|||
|
i get a page not found =]
|
|
#7
|
|||
|
|||
|
yeah I couldn't have it that it wasn't working.. sorry bout that.. I fixed it and it works now
![]() PHP Code:
Was giving problems :/ Thanks for your help yall!! |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > Dynamic Tables with MySQL data |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|