Hi, im trying to figure out the best way to create this PHP/MYSQL website. It has news and events which will be stored in a MYSQL database.
To insert data I will create a insert form.
To update data I want the exisiting rows to be listed in a list menu, so that I can select it, and then have it bring up a page where it would load the current data from the database into an editable form. At which point when complete with the editing, it would update the database.
And to delete a database, the user will simply select the row and click the delete button to delete it.
And then on the actual page, the link will be ‘http://my.domain/news.php?pageid=someVariable’ where someVariable is the name of the page. How will I be able to tell the database to choose to bring in all the data that has to do with someVariable. I know it will have to look something like this, ‘SELECT * FROM news WHERE pageid=$pageid’ but having not done this before, I am unsure of how to do it efficently.
Can anyone give guidance on any of the issues I have? Also is it wise to do multiple queries in one php page?
Thanks, but isn’t that code, simply pulling out the information and listing it? Is there a way to make certain mySQL cells appear in certain areas of the page, using the method you used? I mean I know there is a way, but I’m very new to this.
*Originally posted by comicGeek *
**I don’t know about that but I think the theory is placing the variable “$row[pageid]” inside a useful html code to display it instead of using “echo”.