Hello All,
I am a total noob, and I have been reading several threads, and I'm still stumped. I am hoping someone can help this 'old Marine, learn something new.
I am trying to create something simple, the Table has the following columns
ID, set to autonumber, Name, PicUrl, Description.
I would like to be able to update a record. For example I need to change the Description, or Name or even add a PicUrl. Below is what I have come up with so far.
Code:
<?php
$dbc = mysqli_connect("localhost","uname","pword","dbase");
$Name = $_POST['Name'];
$query = "UPDATE FROM table SET field1='$Name', field2='$PicUrl', field3-'$Description WHERE id='$_GET(Name)'";
$result = mysqli_query($dbc, $query);
echo 'Anime Updated: ';
mysqli_close ($dbc);
?>
I know I have to create an html form to point to the "Table", which I did, but not sure how to have it show the show the records before, and after the edit.
Any help, anyone could provide would be greatly appreciated.
__________________
-Semper Fi
gyrene2083
|