edited in: This got posted while you were posting apparently. It is not meant as a response ot your last post but rather a continuation of my post.
.................................................. ...
OP, You had posted about this same program a while back.
https://gfy.com/fucking-around-and-b...-web-page.html
Did you revisit that thread at all? Vdbucks gives a nice solution there. You should study the code that he, I and several other people have shown you. If you don't understand the code that you are looking at, play with it, ask questions, play with it some more until you understand exactly what it is doing and why it is doing it.
The recipe.php you posted indicates to me that you did not really examine the code at all before yelling for help. If you had, you would see that the comments in there are trying to guide you through how to use it but are not actually providing the code you should be using. For example, it says:
Quote:
// You can now use $_GET['id'] which will be the id number passed
// any way you want.
// For example using a PDO connection called $pdo
|
It then shows you the code you might choose to use if you had a pdo connection established. It was not intended to be just run, it was intended to be modified before being run.
A programmer should never use code that they do not fully understand. Just my opinion, of course.
.