![]() |
| HTML | PHP Scripts | Webmaster Tools | Webmaster Forums | Web Hosting | Domain Names | Webmaster Books |
|
|
#1 |
|
New Member
Join Date: Oct 2009
Webmaster Discussions: 5
Rep Power: 6 ![]() |
php noob needs help
ok when yall finish laughing at me can you help with what may be a simple solution
i have made a lil website for my gaming clan (its weak and in so many ways probably coded wrong) but anyway here goes link >> http://bf.gravediggaz.org my question >> i have index.php home.php links.php etc... how do i get home.php to load in index.php by default as it stands now to view the home page you need to go to http://bf.gravediggaz.org/index.php?site=home Code:
<?php
ob_start();
if($_GET['site'] == 'home')
{
include ("home.php");
}
?> <?php
ob_start();
if($_GET['site'] == 'videos')
{
include ("videos.php");
}
?> <?php
ob_start();
if($_GET['site'] == 'images')
{
include ("images.php");
}
?> <?php
ob_start();
if($_GET['site'] == 'links')
{
include ("links.php");
}
?>
![]() ty in advance rebz |
|
|
|
|
|
#2 |
|
New Member
Join Date: Oct 2009
Webmaster Discussions: 5
Rep Power: 6 ![]() |
Re: php noob needs help
oh and a quick addition i did some googling before posting and found
MY CODE Code:
<?php
ob_start();
if($_GET['site'] == 'home')
{
include ("home.php");
}
?>
Code:
<?php include("home.php"); ?>
so this is my dilemma how do i get rid of home.php when i click a different page or how do i edit my original code so it loads untill i want to click a link to fgo to a diff page the site is functional i just want to get rid of the ?site=home so i can dirext ppl to bf.gravediggaz.org and the page is all there in index.php |
|
|
|
|
|
#3 |
|
Join Date: Aug 2008
Location: Texas
Webmaster Discussions: 501
Rep Power: 21 ![]() ![]() ![]() ![]() |
Re: php noob needs help
My recommendation:
PHP Code:
__________________
Be sure to click the reputation icon to give rep to the person who helped you. For web design/development services, check Silentium Designs. |
|
|
|
|
|
#4 |
|
New Member
Join Date: Oct 2009
Webmaster Discussions: 5
Rep Power: 6 ![]() |
Re: php noob needs help
okay that works a treat thanx
![]() 1 last newbie question my front page is all but done Code:
<HTML>
<HEAD>
<TITLE>[TGDZ] The GraveDiggaZ</TITLE>
<style type="text/css">
body {
background-image: url(images/bg.jpg);
background-repeat: no-repeat;
}
</style>
</HEAD>
<body>
<TABLE WIDTH=764 BORDER=0 ALIGN="CENTER" CELLPADDING=0 CELLSPACING=0>
============================================
==============MY TABLE CONTENTS=============
============================================
</TABLE>
</BODY>
</HTML>
http://bf.gravediggaz.org its centered but only horizontally thanx so much for your help so far |
|
|
|
|
|
#5 |
|
Join Date: Aug 2008
Location: Texas
Webmaster Discussions: 501
Rep Power: 21 ![]() ![]() ![]() ![]() |
Re: php noob needs help
Do valign='middle'. It will only center the content, so you may need to set the height to 100% as well.
__________________
Be sure to click the reputation icon to give rep to the person who helped you. For web design/development services, check Silentium Designs. |
|
|
|
|
|
#6 |
|
New Member
Join Date: Oct 2009
Webmaster Discussions: 5
Rep Power: 6 ![]() |
Re: php noob needs help
yer but where would i put the height at 100% im too much like a nub ere
this is the first php site i made html for that matter too |
|
|
|
|
|
#7 |
|
Join Date: Aug 2008
Location: Texas
Webmaster Discussions: 501
Rep Power: 21 ![]() ![]() ![]() ![]() |
Re: php noob needs help
Place it in the following line:
<TABLE WIDTH=764 BORDER=0 ALIGN="CENTER" CELLPADDING=0 CELLSPACING=0>
__________________
Be sure to click the reputation icon to give rep to the person who helped you. For web design/development services, check Silentium Designs. |
|
|
|
![]() |
| Bookmarks |
| Tags |
| php |
| Thread Tools | |
| Rate This Thread | |
|
|
Similar Webmaster Discussions
|
||||
| Thread | Webmaster Discussion Starter | Forum | Replies | Last Post |
| want to echange links noob here need help | zrohder | Link Exchange | 0 | 08-13-2007 06:28 AM |
| guestbook help (noob) | Trinthakis | CGI Perl Forum | 1 | 12-05-2005 05:04 PM |
| Noob coder | deadfinger04 | HTML Forum | 2 | 08-10-2004 02:29 PM |
| What do you think of my site... (noob) | interpim | Show it off! | 1 | 06-11-2004 04:06 PM |
| I'm starting a webpage( and i'm a noob) | bombsledder | HTML Forum | 6 | 12-30-2003 11:49 PM |