Hi,
I've got a php site that I'm revamping, there is no database involved. The entire site is an index.php file, a styles.css and a script.php file that display info in the middle of the index.php file. I recently added a menu to the main index file, which include "news", "articles", "contact" etc. What I want to do is create separate pages for news, articles and contact and call those files within the main index.php page, and I'm pretty much clueless as to how go about this. I know plenty of css and html but php has always been a challenge.
If anyone can give some direction I'd appreciate it.
I've pasted the code for the main page below.
Thanks.
Charlie.
---------------------------------------------------------------------------------------------------------
Code: Select all
<?php
// Require the class file
require_once('MovieListings.php');
// Create object
$listings = new MovieListings('323632'); // Replace ('323632' with your zip code, and change images/ to the folder where you will keep the images
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Movie Listings on local theaters and cinemas</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="Find Movies, movie theaters, showtimes, movie times, and more." />
<meta name="keywords" content="movies, movie listings, movie theater, cinema, movie showtimes, movie theater schedule, movie search, movie trailers, celebrity photos, news, dvd, reviews" />
<link rel="stylesheet" type="text/css" href="MovieListing.css">
</head>
<body style="background:url(page9.jpg) repeat; leftmargin=0; topmargin=0; marginwidth=0; marginheight=0;">
<center>
<table width="81%" cellpadding="1" cellspacing="5" bgcolor="#FFFFFF">
<tr>
<td width="15%" bgcolor="#FFFFFF" valign="top" align="center"><div align="right">
<!-- ============ENTER THE AFFILIATE CODES YOU WANT FOR LEFT COLUM BELOW========================================= -->
#
#
#
#
<!-- =========================================END OF LEFT COLUMN AFFILIATE CODES================================== -->
</a> </div></td>
<td width="70%" bgcolor="#FFFFFF" valign="top"><table width="100%" border="0" cellpadding="1" cellspacing="5" bgcolor="#fafafa">
<tr>
<td width="100%" colspan="3" align="center"><img src="images/movie_wild_logo.gif" alt="Find Movie Show times" width="728" height="90" longdesc="http://www.somesite.com">
<!-- Top menu settings -->
<div id="nav">
<table border="1" cellpadding="0" cellspacing="0" style="border-width:0; border-collapse: collapse; " bordercolor="#111111" width="100%" id="AutoNumber10" height="22">
<tr>
<td bgcolor="#333333" bordercolor="#FFFFFF" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" align="center" height="17"><a href="http://www.moviewild.com" font size="1" color="#FFFFFF"><b>Home</b></a></td>
<td bgcolor="#333333" bordercolor="#FFFFFF" style="border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" align="center" height="17">
<a href="http://www.moviewild.com/news.php" font size="1" color="#FFFFFF"><b>News</b></a></td>
<td bgcolor="#333333" bordercolor="#FFFFFF" style="border-left-style: solid; border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" align="center" height="17">
<a href="http://www.moviewild.com" font size="1" color="#FFFFFF"><b>Articles</b></a></td>
<td bgcolor="#333333" bordercolor="#FFFFFF" style="border-left-style: solid; border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" align="center" height="17">
<a href="http://www.moviewild.com" font size="1" color="#FFFFFF"><b>Contact</b></a></td>
<td bgcolor="#333333" bordercolor="#FFFFFF" style="border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" align="center" height="17">
<a href="http://www.moviewild.com" font size="1" color="#FFFFFF"><b>About Us</b></a></td>
</tr>
</table>
</div>
<!-- End top menu settings -->
</td>
</tr>
<tr>
<td>
<?
// echo the listings
echo $listings->showListings();
?> </td>
</tr>
</table></td>
<td width="15%" bgcolor="#FFFFFF" valign="top" align="center"><div align="left">
<!-- ============ENTER THE AFFILIATE CODES YOU WANT FOR RIGHT COLUMN BELOW======================================== -->
#
#
#
#
<!-- ======================================END OF REIGHT COLUMN AFFILIATE CODES==================================== -->
</a> </div></td>
</tr>
</table>
</center>
</body>
</html>~pickle | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: