Hopefully this is the simpliest question ever. I have just produced my first php content managed site.
Basically the index.php needs to show the record from the data base with the ID of 1. Obviously when the browser loads the site it only looks for index.php and would not include the record id on the end of it. Hence it would only load the empty default page I’ve created to disploay records in.
Is there a way round this? There must be, surely!
Explanation: The line reads: “If $_GET[‘id’] is set (exists on the end of your URL), use the database object to escape the string (if you’re using procedural, this will change into mysql(i)_real_escape_string() and set $id to that. If it isnt, set $id to 1.”
Sorry, my index.php now displays the right record when it opens, but unless I put the whole url in, the browser doesn’t access index.php, maybe because it is looking for an index.html.
That is more to do with your server setup - Apache needs to be set up to look for index.php. Maybe there is an index.html or something that is being loaded in preference?