PHP - How do I setup a link to modify one field in a mysql database via URL?

tuaamin13

New member
Use $_GET for the id. Search online on how to use it.

After you get the ID, you can do a query like "SELECT * FROM mprofiles WHERE id=$id"
 
Ok.. I need to modify one spot in mysql database. I neet to have it run via a url (modify.php). modify.php?id=2

Table = mprofiles
field id = is
MODIFY APPROVED TO "0"

How type of array / code will I use for this? I'm new to mysql/php
 
Back
Top