I just wanted to say I got all my information from this document for the most part. Making modifications as I learn. https://developers.google.com/maps/documentation/javascript/mysql-to-maps
Now I echo'd my information from sql database.. and read the file as a myfile.php.. Problem is.. if I go to www.mywebsite.com/myfile.php.. I can see all the results of my sql database.
How do I hide this information from view, but can call upon it?
but can call upon it?... Do you have a second script that will then handle theecho'd results?myfile.phpcheck the referrer URL and only return data if it is the correct referrer. This is no guarantee that somebody won't fake the referring URL, but it will prevent the casual surfer from getting your data.includemyfile.php in its script, and call your function whenever it needs to read the results. Then you can echo them from myfile2.php whenever it's needed. And that way, if someone accesses myfile.php directly, the function will not have been called so the results will not echo. Sounds like you need to learn about functions, and object-oriented programming too.