jason.watkins Posted October 14, 2008 Share Posted October 14, 2008 Hello all, I am new around here and I am also very new to PHP, having only about a month's experience with it. I come from an ASP.NET background, but have fallen in love with PHP and use it most of the time now! Anyway, on to my question. What I am trying to do is populate a table with news articles (Subject, Body, Date, etc.) and I also want to add an Edit and Delete button to each row/article. I know how to populate the table with the necessary data, but I don't know the best way to go about adding the buttons to each row. I have a few ideas on how I can make this work, but I want to make sure to do it the best possible way. It is very easy to do in ASP.NET, so I figure that PHP will have a simple solution as well. Thanks a lot in advance for any advice, and if you need any more info, please let me know. Quote Link to comment Share on other sites More sharing options...
Lamez Posted October 14, 2008 Share Posted October 14, 2008 Take a look at MySQL databases, then learn about MySQL querys. its a good start. Quote Link to comment Share on other sites More sharing options...
Lamez Posted October 14, 2008 Share Posted October 14, 2008 also www.php.net/ is a great resource to look up different functions! www.php.net/echo Quote Link to comment Share on other sites More sharing options...
CroNiX Posted October 14, 2008 Share Posted October 14, 2008 Well, on each row you could have a form with a hidden field containing the ID of the row from the database. Then just have your icons or whatever submit the form. Quote Link to comment 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.