PHP - Moved: The Content On My Homepage (design Suggestions)
This topic has been moved to Website Critique.
http://www.phpfreaks.com/forums/index.php?topic=346717.0 Similar TutorialsThis topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=308872.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=357107.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=330946.0 This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=357188.0 Amazingly, threads about application design belong in the Application Design sub-forum. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=358384.0 This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=318519.0 This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=327717.0 This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=346818.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=319085.0 Stop posting non-PHP questions in the PHP Coding Help section. We have many sub-forums, including both a JavaScript forum and one dedicated entirely to Ajax. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=327454.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=357949.0 This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=319610.0 This topic has been moved to CSS Help. http://www.phpfreaks.com/forums/index.php?topic=315351.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=319719.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=314750.0 This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=318539.0 Hi, I have these variables for pages I navigate to because I pass them in the query string. However, I need a variable for the homepage (index.php), before any query string is created. I cant declare a vari $_GET['intro'] ; $_GET['about'] ; $_GET['contact'] ; However, I need a variable for the homepage (index.php), before any query string is created. I cant declare a variable in index.php because it will be used throughout the entire website. I also cant declare the variable in home.php (the bulk content of the homepage) because I need to use the variable before home.php is included. Is their a trick for this? Thanks! Hello everyone, i have this page in my website called "index.php": <?php include("include/open_conn.php");?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>name site</title> </head> <body> <div id="container"> <?php include("include/header.php");?> <?php include("include/content.php");?> <?php include("include/footer.php");?> </div> </body> </html> <?php include("include/close_conn.php");?> The content change dinamically with this code "content.php": $pages_dir = 'pages'; if (!empty($_GET['menu'])) { $pages = scandir($pages_dir, 0); unset($pages[0], $pages[1]); $menu = $_GET['menu']; if (in_array($menu.'.php', $pages)) { include($pages_dir.'/'.$menu.'.php'); } So, when i change the page the url will be " index.php?menu=nameofmypage ". But now i want to put an image only in my index.php page, a sort of welcome to the users, but with this codes the image will appear in all the other page because i change only the content. I know that i could create a page named "home.php" and do all i want, but i want to change the first page that the user see when he types the address of my website. thank you! Hello, I never really gave a serious thought to the above question until now that I'm trying to actually launch a live site. Well I'm sure most of you are familiar with this situation, where a user my enter a wrong, non existent url, whose root happens to be your domain name. For example, instead of entering domain.com/greetings, the user may wrongly type domain.com/grewtings . How can I make my site to redirect such erroneous urls to my homepage, instead of to my webhost's homepage with an error message? Appreciate all answers. I Have a protected members section on my site for staff. I would like it so that information specific to that member of staff would appear on their homepage straight after login. Just basic information that is stored on a MySQL database so they can login and check appointments and clients etc for the week etc. is this something that is possible to do in PHP and MySQL? or am I going mad? At the moment I have the entire table on the members homepage and the only way I've figured out to specify a member to only show one users information is to use - (SELECT * FROM Tutors WHERE name = 'XXX'. I don't like this method as it would mean i would have to have a separate files for each member. I was hoping I could do something along the lines of - WHERE name = ' relative to the login name used'. but I am sure I am flogging a dead horse here. So many websites do this kind of thing and I'm surprised after scouring the net for hours and hours that I haven't found any useful information or tutorials on the subject. I am fairly new to programming in PHP and MySQL and am only just getting to grips with the lingo. Maybe I've just been seacrhing the wrong thing, I don't Know. Any help at all would be amazing and much appreciated, a nudge in the right direction would be a start as I'm getting nowhere on my own THANKS |