Hello Larry,
Yes, with the ex1 we could add page.
But how create an update page ?
it's CRUD system?
Where i could find it in one of your book ?
So first personaly, i create the list_page where i find all the list of pages from an user.
//path to page Update
<td><a href="author_list_page_update.php?page_id=<?php echo $row['page_id'];?>">Mise à jours</a></td>
i create the page UPDATE for this user.
first on this page UPDATE i select all attributes of this page
$q = "SELECT * FROM pages
WHERE (status='$st', title='$t', summary='$s', ingredient='$i', recipe='$i', tips='$t',filename='$f', category ='$cat_id', tag='$tag_id') )";
and after
with the form "update"
$q="UPDATE pages SET status='$st',title='$t', summary='$s', ingredient='$i', recipe='$i', tips='$t',filename='$f', category ='$cat_id', tag='$tag_id' ";
$r = @mysqli_query($dbc, $q);
My first problem that any value appear in the input of my form.
<div class="form-group">
<label for="title">titre</label>
<input type="text" name="title" value="<?php if(isset($_POST['title']) ) echo $_POST['title']; ?>" />
</div>
a little advice will be cordially accept.
Thanks