Jump to content

AndrewBilham

New Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by AndrewBilham

  1. ok thank you Rules out a few of the options, so to clarify and again I do apologise as I am new and no amount off online/book/courses training can prep you for these 'real world' issues. can you clarify what you mean by create a script for each page, my plan now was create the pages and store them in a folder and then run an <a> which puts the id at the end of the address when they click the menu item something like the below to then select the page: <?php include $id = $_GET['id']; if (!isset($id)) { include "home.html"; } else if ($id === 1) { include "profile.php"; } else if ($id === 2) { include "something else.php"; } ?>
  2. Good morning, I firstly would like to apologise as I know this is a common question and I am new to coding so would like to clarify a couple of points. I am building a 'console' which will allow users to change, update or do certain things. At present I have a registration form, login, MySQL that all work together as well as a few static pages. I have the 'console' page with a second menu bar which lets the user select which action/area they want to change or action. Rather than creating a bunch of static pages and just using <a href=""> I wanted to load the content of these pages into the content <div> No problem with using the include but from my research I cannot reload the php to pass the relevant variable without re loading the page which then I might as well reload another static page? (when I say static I am still using SQL to pull user information for certain sections of the content) Next option was storing the content in a database and using a query to pull the data, but wasn't sure how this would effect SEO not having the actual pages. Third option was some sort of function to call content from each of the PHP files and insert into the <div> Opinions please
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.