Code: Select all
<?php
echo "This is the first page!";
// Below is the page which adds the mysql data:
include("Yourfile.php");
?>
The thing is, when i tried using ?insert=true it couldnt find it... So you could put the ?insert=true on that page. so if the first page was called 'firstpage.php' you would put yourlink.com/firstpage.php?insert=true which will be picked up in the included file, if it has an if checking for it..
fopen isnt for viewing, you would have to make a couple more steps, and thats what include is for. fopen would be if you wanted to modify the data inside of the opened file..