I need help making a web page

Basically, what I’m trying to do is make a home page, with other pages, but all these pages having the same template.

Home Page: Navigation bar, Blog feed, Facebook & twitter feeds.

About Us Page: Navigation bar, about us body

I’m a complete beginner, I don’t know almost anything about PHP.

Here’s a ‘sketch’ of what I want the home page/template for all the pages to be. All pages will have the same template except for the forums: http://sapphire.t15.org/files/sketch.png

not really all that hard really. Makes things really easy to maintain. the code below is for a small admin area for a site i maintain (feel free to join though if you’re a music artist or need an app)
[php]

<?php session_start(); require_once 'config.php'; require_once 'functions.php'; switch($_GET['do']) { case 'logout': include 'logout.php'; break; } if($_COOKIE['adminuser']) { $result = mysql_query("SELECT * FROM venzo_xxxx WHERE username = '".($_COOKIE['adminuser'])."' LIMIT 1") or die(mysql_error()); if(mysql_num_rows($result) == 1) { $row = mysql_fetch_assoc($result); $_SESSION['adminname'] = $row['name']; } } if(isset($_POST['clientlogin'])) { $result = mysql_query("SELECT * FROM venzo_xxxx WHERE username = '".escape($_POST['clientname'])."' AND password = '".md5($_POST['clientpass'])."' LIMIT 1") or die(mysql_error()); if(mysql_num_rows($result) == 1) { $row = mysql_fetch_assoc($result); $_SESSION['adminname'] = $row['name']; setcookie('adminuser', $row['username'], time()+60*60*24*30, '/', '.venzodigital.com'); setcookie('adminpass', $row['password'], time()+60*60*24*30, '/', '.venzodigital.com'); setcookie('adminid', $row['id'], time()+60*60*24*30, '/', '.venzodigital.com'); //echo mysql_num_rows($result); header("Location: index.php"); } else { $error = 'Login Attempt Failed'; } } ?> VMG Administration
<?php if($_COOKIE['adminuser']) { ?>
  • Home
  • Accounts
  • Analytics
  • View
    • Sales
    • Apps
      					</ul>
      				</li>
      			</ul>
      		</li>
      		<li><a class="MenuBarItemSubmenu" href="#">Ads</a>
      			<ul>
      				<li><a href="index.php?do=ads_upload">Upload</a></li>
      				<li><a href="index.php?do=ads_view">View</a></li>
      			</ul>
      		</li>
      		<li><a href="index.php?do=inquiries">Inquiries</a></li>
      		<li><a href="index.php?do=logout">Logout</a></li>
      		<li><div style="padding-top: .5em;"># Clients: <?php echo mysql_num_rows(mysql_query("SELECT id FROM venzo_xxxxx"));?></div></li>
      	</ul>
      	<?php } ?>
      	<div style="clear: both;"></div>
      </div>
      <br />
      <div id="mainContent">
      	<?php
      	if($_COOKIE['adminuser']) {
      		switch($_GET['do']) {
      			case 'admin_pay':
      				include 'admin_pay.php';
      				break;
      			case 'ind_admin_pay':
      				include 'ind_monthlysales.php';
      				break;
      			case 'admin_edit':
      				include 'adminaccounts.php';
      				break;
      			case 'admin_create':
      				include 'createaccount.php';
      				break;
      			case 'client_create':
      				include 'createaccount.php';
      				break;
      			case 'client_edit':
      				include 'client_accounts.php';
      				break;
      			case 'client_stats':
      				include 'stats.php';
      				break;
      			case 'client_pay_music':
      				include 'client_pay.php';
      				break;
      			case 'client_pay_mobile':
      				include 'client_pay_mobile.php';
      				break;
      			case 'import_main':
      				include 'import_files.php';
      				break;
      			case 'merge_label':
      				include 'merge_label.php';
      				break;
      			case 'view_sales_music':
      				include 'view_itunes_sales.php';
      				break;
      			case 'view_sales_mobile':
      				include 'view_app_sales.php';
      				break;
      			case 'app_sub':
      				include 'view_app_submissions.php';
      				break;
      			case 'app_create':
      				include 'create_apps.php';
      				break;
      			case 'app_switch':
      				include 'switch_apps.php';
      				break;	
      			case 'ads_upload':
      				include 'ad_upload.php';
      				break;
      			case 'ads_view':
      				include 'view_ads.php';
      				break;
      			case 'inquiries':
      				include 'view_inquiries.php';
      				break;
      			case 'create_answers':
      				include 'contactus_answers.php';
      				break;
      			default:
      			echo "Session Info: <br /><pre>";
      			print_r($_SESSION);
      			echo "</pre><br />";
      			if(!empty($_COOKIE)) {
      				echo "Cookie Info: <br /><pre>";
      				print_r($_COOKIE);
      				echo "</pre><br />";
      			} else {
      				echo "No Cookies have been set";
      			}
      		}
      	} else {
      	?>
      		<div align="center" style="width: 450px; margin: 0 auto;">
      			<form method="post" action="index.php">
      				<table width="100%" cellpadding="1" cellspacing="1" border="0">
      					<tr>
      						<td height="30" style="padding-left: 3px;">Username:</td>
      						<td><input type="text" name="clientname" style="width: 300px;" /></td>
      					</tr>
      					<tr>
      						<td height="30" style="padding-left: 3px;">Password:</td>
      						<td><input type="password" name="clientpass" style="width: 300px;" /></td>
      					</tr>
      					<tr>
      						<td colspan="2"><div align="center"><input type="submit" value="Login" name="clientlogin" /></div></td>
      					</tr>
      				</table>
      			</form>
      			<?=$error?>
      			<?=$yes?>
      		</div>
      	<?php } ?>
      </div>
      
Copyright <?=date("Y") ?> Venzo Digital. All Rights Reserved.
[/php] Every page is loaded into the content area via php and a url link. the switch and cases capture the pages that need to be loaded. forums you'd load up in seperate window or tab though. the mysql table names i had to x out for security reasons.
Sponsor our Newsletter | Privacy Policy | Terms of Service