Centering my site

This is a discussion on "Centering my site" within the Web Page Design section. This forum, and the thread "Centering my site are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 19th, 2007, 13:00
Junior Member
Join Date: Sep 2007
Location: Uk
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Centering my site

Hi,

I am in need of help from you guys.

I would like to bring the site to the center of the page but constantly getting error like its getting mad displaying things wrong.

I wonder how to make it come in the middle of the page.

Can you guys tell me plzz..........

here is the site..

http://www.rockddl.com/


Please do not ignore it as its a adult site
TEAM ADVISOR EDIT! WARNING, SITE CONTAINS ADULT CONTENT!

Last edited by Lchad; Sep 19th, 2007 at 13:07. Reason: WARNING ADDED
Reply With Quote

  #2 (permalink)  
Old Sep 19th, 2007, 13:08
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Very urgent help needed

In your style sheet you need to have somethin glike this in the body
Code: Select all
body {	background-color: #FFFFFF;	text-align: center;	min-width: 780px; }
Reply With Quote
  #3 (permalink)  
Old Sep 19th, 2007, 13:11
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Very urgent help needed

I would place a #wrapper around all the content.
Code: Select all
<div id="wrapper">All website content, and div's go inside here.</div>
CSS
Code: Select all
#wrapper {
   width: whatever you needpx;
   margin: 0 auto;
   }
You will have to change all the absolute positioning of the other div's for this to work.
Reply With Quote
  #4 (permalink)  
Old Sep 19th, 2007, 13:11
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Very urgent help needed

Well ... it's not just the text-align: center that you need.

HTML: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-CA" xml:lang="EN-CA">

<head>
    <title>Some title</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    
    <style type="text/css">
    body {
        color: #fff;
    }
    
    #wrap {
        margin: 0 auto;
        width: 780px;
        background-color: #900;
    }
    </style>    
</head>

<body>

<div id="wrap">
    this box is centered
</div>

</body>
</html>
or

HTML: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-CA" xml:lang="EN-CA">

<head>
    <title>Some title</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    
    <style type="text/css">
    html {
        background-color: #fff;
    }
    
    body {
        color: #fff;
        margin: 0 auto;
        width: 780px;
        background-color: #900;
    }
    </style>    
</head>

<body>

this site is centered

</body>
</html>
The text-align: center; is need for support for IE5 and 5.5 browsers
Reply With Quote
  #5 (permalink)  
Old Sep 19th, 2007, 13:11
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Very urgent help needed

Oops adrock beat me.. or your could do what he suggested!
Reply With Quote
  #6 (permalink)  
Old Sep 19th, 2007, 13:19
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Very urgent help needed

The wrapper idea is a good one and that's what I use on my site but I just suggested the easiest way i know which i did for my college assignment years ago
Reply With Quote
  #7 (permalink)  
Old Sep 19th, 2007, 13:21
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Very urgent help needed

Easier way maybe ... but it doesn't work in Firefox
Reply With Quote
  #8 (permalink)  
Old Sep 19th, 2007, 13:31
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Very urgent help needed

I made this site http://www.projects-sw.co.uk/ for my assignment at college and it views fine in Firefox
Reply With Quote
  #9 (permalink)  
Old Sep 19th, 2007, 13:53
Junior Member
Join Date: Sep 2007
Location: Uk
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Very urgent help needed

Hi
I tried both Adrock and Karinne

I still do not get it.

Here is the code,

It would be great if you can tell me whats wrong in it?

HTML: Select all
<?php

require "config.class.php";

require "main.class.php";

require "link.class.php";

$q = stripslashes($q);

$q = eregi_replace("\"", " ", $q);

$q = eregi_replace("\'", " ", $q);

$q = trim($q);

$ddl = new ddl();

$le = new linker();

$ddl->open();

$ddl->get($q, $types);

if($q) {
    if(mysql_num_rows(mysql_query("SELECT * FROM search WHERE query = '$q'")) < 1) {
    mysql_query("INSERT INTO search VALUES ('','$q','0')");
    } else {
    mysql_query("UPDATE search SET searches = searches+1 WHERE query = '$q'");
    }
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<SCRIPT language=JavaScript type=text/javascript>

    function TG(a, changeTo) {

    a.style.backgroundColor = changeTo;

    }



</SCRIPT>
    <title>RockDDL.com...Unlimited Solid Downloads Of Full Version Appzs, Movies, Games, Musics, XXX, Cracks, Serials, Keygens</title>
    <link href="full.css" rel="stylesheet" type="text/css" title="Full-display Steel-n-Leather Template stylesheet">
    <link href="noright.css" rel="alternate stylesheet" type="text/css" title="Left sidebar and Main Steel-n-Leather Template stylesheet">
    <link href="noleft.css" rel="alternate stylesheet" type="text/css" title="Right sidebar and Main Steel-n-Leather Template stylesheet">
    <meta name="description" content="Warez Full Apps Games Albums Torrents Serials Cracks Ftps Roms XXX">
    <meta name="keywords" content="warez, games, appz,tvs, torrents, ftp, movies,xxx,viedos, downloads,cracks,serials,keygens,cd keys">
    <meta name="author" content="KingCupid">


</head>

<body> 

<div id="pagehead">
    <h1>RockDDL</h1>
    <h2>Unlimited Solid Download</h2>
    <div class="menubar">
        <div class="menu">
            <a href="index.php" class="menuitem">Home</a>
        </div>
        <div class="menu">
            <a href="http://www.rockddl.com/downloads/" class="menuitem">Downloads</a>
        </div>
        <div class="menu">
            <a href="submit.php" class="menuitem">Submit</a>
        </div>
        <div class="menu">
            <a href="index.php?page=contact" class="menuitem">Contact Us</a>
        </div>
        <div class="menu">
            <a href="index.php?page=webmaster" class="menuitem">Webmasters</a>
        </div>
    </div>
    <div class="adblock">
        #pagehead .adblock
        <img src="" alt="#pagehead .adblock img">
    </div>
</div>
<div id="main">
    <h1><span class="itemleader">:: </span>RockDDL<span class="itemleader"> ::</span><a name="general"></a></h1>
  <div class="text">
          <?
$val = $_GET['page']; 
$val .= ".php"; 
$dirty = array("..");
$clean = array("");
$val = str_replace($dirty, $clean, $val); 
if (isset($_GET['page'])) { 
if (file_exists($val)) { 
include "$val";
}
else {
include "download_ddl.php"; 
}
}
else {
include "download_ddl.php";
}
?>
    </div>

    <h1><span class="itemleader">:: </span>Recent Searches<span class="itemleader"> ::</span><a name="general"></a></h1>
  <div class="text">
    <?php
$jmz = mysql_query("SELECT * FROM search ORDER BY id DESC LIMIT 30");
while($row = mysql_fetch_array($jmz)) {
$jmzurl = str_replace(array("/"," ","&","$","#","'",'"',":","\\",">","<"),"-",$row[query]);
echo '<a href="/search-warez-crack-serial-'.$jmzurl.'.html" style="color:#2E3940; font-family:sans-serif; font-weight:bold; font-size:smaller;">'.strip_tags($row[query]).'</a>, ';
}
?></div>
    <div class="note" style="float:left;">&copy; 2007 RockDDL</div>
</div>

<div id="leftbar">
    <div class="menubar">
        <div class="menu">
            <a href="index.php" class="menuitem">Home</a>
            <a href="index.php?type=Movie" class="menuitem">Movies</a>
            <a href="index.php?type=Movie" class="menuitem">Appz</a>
            <a href="index.php?type=Movie" class="menuitem">Games</a>
            <a href="index.php?type=Movie" class="menuitem">XXX</a>
            <a href="index.php?type=Movie" class="menuitem">Music</a>
            <a href="index.php?type=Movie" class="menuitem">TV</a>
            <a href="index.php?type=Movie" class="menuitem">E-Books</a>
            <a href="index.php?type=Movie" class="menuitem">Other</a>
        </div>
     </div>
     <hr class="leather">
     <div class="menubar">
     <center><h1>Affiliates</h1></center>
        <div class="menu">
            <a href="http://www.flmsdown.net/" class="menuitem" target="_blank">Flmsdown.net</a>
            <a href="http://softex.meganet.lt/" class="menuitem" target="_blank">Softex.Meganet</a>
            <a href="http://www.softlinkers.org/" class="menuitem" target="_blank">Soft Linkers</a>
            <a href="http://www.wareznetwork.com/" class="menuitem" target="_blank">WarezNetwork</a>
            <a href="http://www.planetddl.com/" class="menuitem" target="_blank">Planet DDL</a>
            <a href="http://www.smartddl.com/in.php?id=rockddl" class="menuitem" target="_blank">Smart DDL</a>
            <a href="http://www.crazycupid.biz/" class="menuitem" target="_blank">CrazyCupid</a>
            <a href="http://www.piratelist.net/in.php?site=1173552747" class="menuitem" target="_blank">PirateList.net</a>
            <a href="http://www.oemtop.com/cgi-bin/in.cgi?id=221"class="menuitem" target="_blank">OemTopList</a>
            <a href="http://astalavista.ms/top/index.php?ID=154" class="menuitem" target="_blank">AstalaVista</a>
            <a href="http://www.breedsoft.com/" class="menuitem" target="_blank">BreedSoft</a>
            <a href="http://www.RequestCracks.com/" class="menuitem" target="_blank">Request Crack</a>
            <a href="http://purple-icing.com/" class="menuitem" target="_blank">Purple-icing</a>
            <a href="http://www.hackzone.us/top/in.php?id=1410/" class="menuitem" target="_blank">Cracks & Warez</a>
            <a href="http://www.spicywarez.com/" class="menuitem" target="_blank">SpicyWarez</a>
            <a href="http://www.ddl-paradise.com/" class="menuitem" target="_blank">DDL-Paradise</a>
            <a href="http://www.warezomen.com/in.php?id=rockddl/" class="menuitem" target="_blank">WarezOmen</a>
            <a href="http://www.free815.com/ " class="menuitem" target="_blank">Free815</a>
            <a href="http://www.warez411.com/" class="menuitem" target="_blank">Warez411</a>
            <a href="http://bx-net.net/" class="menuitem" target="_blank">bx-net</a>
            <a href="http://www.undernation.com/in.php?id=rockddl" class="menuitem" target="_blank">Undernation</a>
            <a href="http://www.humoron.com" class="menuitem" target="_blank">Full XXX </a>
            <a href="http://4filez.org/" class="menuitem" target="_blank">4 Filez.Org</a>
            <a href="http://promoddl.com/in.php?id=rockddl" class="menuitem" target="_blank">PromoDDL</a>
            <a href="http://www.warezlinkers.com/" class="menuitem" target="_blank">WarezLinkers</a>
            <a href="http://www.ddlbay.com/in.php?id=rockddl" class="menuitem" target="_blank">DDL Bay</a>
            <a href="http://www.pl1.com/in.php?id=rockddl" class="menuitem" target="_blank">PL1.Com</a>
            <a href="http://www.warezmasters.com/?r=DT5wiTynk9/" class="menuitem" target="_blank">WarezMasters</a>
            <a href="http://wzone.6x.to/" class="menuitem" target="_blank">WarezOne</a>
            <a href="http://ausfx.net/" class="menuitem" target="_blank">Ausfx.Net</a>
            <a href="http://www.ienask.com/" class="menuitem" target="_blank">Ienask DDL</a>
            <a href="http://www.dl4all.com/" class="menuitem" target="_blank">Full Download</a>
            <a href="http://www.fishddl.com/" class="menuitem" target="_blank">Fish DDL</a>
            <a href="http://euroseen.net/" class="menuitem" target="_blank">EuroseenDDL </a>
            <a href="http://www.rockddl.com/index.php?page=contact" class="menuitem" target="_blank"><font color="white" size="2"><b>Your Site Here PR4+</b></font></a>
        </div>
    </div>
    <center><a href=""><img src="http://i9.tinypic.com/53hy9fo.gif" alt="Ads" /></a></center>
</div>

<div id="rightbar">
<form action="index.php" method="get" name="search">
<center><h1>Search : </h1></center>
<input id="q" type="text" size="15" value="<?php echo $q; ?>" name="q" onFocus="if(this.value=='Search')this.value='';" onBlur="if(this.value=='')this.value='Search';" >&nbsp;
<select name="type" id="type">
<option value="index.php" selected>All</option>
<option value="Game">Games</option>
<option value="App">Apps</option>
<option value="Movie">Movies</option>
<option value="Music">Music</option>
<option value="XXX">XXX</option>
<option value="E-Books">E-Books</option>
<option value="Tv">Tv</option>
<option value="Other">Other</option>
</select>&nbsp;
<input name="Search" type="submit" class="input" value="Search" style="cursor:pointer">
</form>
    <center><h1>Top Links</h1></center>
    <?php
    $le->get(16, 16);
    ?>
    <hr color="#666666" size="1">
    <center><h1>Hot Sites</h1></center>
    <a href="#" target="_blank">Some hot site</a>
    <hr color="#666666" size="1">
    <center><a href=""><img src="http://i9.tinypic.com/53hy9fo.gif" alt="Ads" /></a></center>
</div>


</body>
</html>
As said by adrock

HTML: Select all

<?php

require "config.class.php";

require "main.class.php";

require "link.class.php";

$q = stripslashes($q);

$q = eregi_replace("\"", " ", $q);

$q = eregi_replace("\'", " ", $q);

$q = trim($q);

$ddl = new ddl();

$le = new linker();

$ddl->open();

$ddl->get($q, $types);

if($q) {
    if(mysql_num_rows(mysql_query("SELECT * FROM search WHERE query = '$q'")) < 1) {
    mysql_query("INSERT INTO search VALUES ('','$q','0')");
    } else {
    mysql_query("UPDATE search SET searches = searches+1 WHERE query = '$q'");
    }
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<SCRIPT language=JavaScript type=text/javascript>

    function TG(a, changeTo) {

    a.style.backgroundColor = changeTo;

    }



</SCRIPT>
 <title>RockDDL.com...Unlimited Solid Downloads Of Full Version Appzs, Movies, Games, Musics, XXX, Cracks, Serials, Keygens</title>
    <link href="full.css" rel="stylesheet" type="text/css" title="Full-display Steel-n-Leather Template stylesheet">
<link href="noright.css" rel="alternate stylesheet" type="text/css" title="Left sidebar and Main Steel-n-Leather Template stylesheet">
<link href="noleft.css" rel="alternate stylesheet" type="text/css" title="Right sidebar and Main Steel-n-Leather Template stylesheet">
    <meta name="description" content="Warez Full Apps Games Albums Torrents Serials Cracks Ftps Roms XXX">
<meta name="keywords" content="warez, games, appz,tvs, torrents, ftp, movies,xxx,viedos, downloads,cracks,serials,keygens,cd keys">
    <meta name="author" content="KingCupid">


</head>

<body> 

body {    background-color: #FFFFFF;    text-align: center;    min-width: 780px; }  //adrock idea

<div id="pagehead">
    <h1>RockDDL</h1>
    <h2>Unlimited Solid Download</h2>
    <div class="menubar">
        <div class="menu">
            <a href="index.php" class="menuitem">Home</a>
        </div>
        <div class="menu">
            <a href="http://www.rockddl.com/downloads/" class="menuitem">Downloads</a>
        </div>
        <div class="menu">
            <a href="submit.php" class="menuitem">Submit</a>
        </div>
        <div class="menu">
            <a href="index.php?page=contact" class="menuitem">Contact Us</a>
        </div>
        <div class="menu">
            <a href="index.php?page=webmaster" class="menuitem">Webmasters</a>
        </div>
    </div>
    <div class="adblock">
        #pagehead .adblock
        <img src="" alt="#pagehead .adblock img">
    </div>
</div>
<div id="main">
<h1><span class="itemleader">:: </span>RockDDL<span class="itemleader"> ::</span><a name="general"></a></h1>
  <div class="text">
          <?
$val = $_GET['page']; 
$val .= ".php"; 
$dirty = array("..");
$clean = array("");
$val = str_replace($dirty, $clean, $val); 
if (isset($_GET['page'])) { 
if (file_exists($val)) { 
include "$val";
}
else {
include "download_ddl.php"; 
}
}
else {
include "download_ddl.php";
}
?>
    </div>

 <h1><span class="itemleader">:: </span>Recent Searches<span class="itemleader"> ::</span><a name="general"></a></h1>
  <div class="text">
    <?php
$jmz = mysql_query("SELECT * FROM search ORDER BY id DESC LIMIT 30");
while($row = mysql_fetch_array($jmz)) {
$jmzurl = str_replace(array("/"," ","&","$","#","'",'"',":","\\",">","<"),"-",$row[query]);
echo '<a href="/search-warez-crack-serial-'.$jmzurl.'.html" style="color:#2E3940; font-family:sans-serif; font-weight:bold; font-size:smaller;">'.strip_tags($row[query]).'</a>, ';
}
?></div>
    <div class="note" style="float:left;">&copy; 2007 RockDDL</div>
</div>

<div id="leftbar">
    <div class="menubar">
        <div class="menu">
            <a href="index.php" class="menuitem">Home</a>
            <a href="index.php?type=Movie" class="menuitem">Movies</a>
            <a href="index.php?type=Movie" class="menuitem">Appz</a>
            <a href="index.php?type=Movie" class="menuitem">Games</a>
            <a href="index.php?type=Movie" class="menuitem">XXX</a>
            <a href="index.php?type=Movie" class="menuitem">Music</a>
            <a href="index.php?type=Movie" class="menuitem">TV</a>
            <a href="index.php?type=Movie" class="menuitem">E-Books</a>
            <a href="index.php?type=Movie" class="menuitem">Other</a>
        </div>
     </div>
     <hr class="leather">
     <div class="menubar">
     <center><h1>Affiliates</h1></center>
        <div class="menu">
            <a href="http://www.flmsdown.net/" class="menuitem" target="_blank">Flmsdown.net</a>
            <a href="http://softex.meganet.lt/" class="menuitem" target="_blank">Softex.Meganet</a>
            <a href="http://www.softlinkers.org/" class="menuitem" target="_blank">Soft Linkers</a>
            <a href="http://www.wareznetwork.com/" class="menuitem" target="_blank">WarezNetwork</a>
            <a href="http://www.planetddl.com/" class="menuitem" target="_blank">Planet DDL</a>
            <a href="http://www.smartddl.com/in.php?id=rockddl" class="menuitem" target="_blank">Smart DDL</a>
            <a href="http://www.crazycupid.biz/" class="menuitem" target="_blank">CrazyCupid</a>
<a href="http://www.piratelist.net/in.php?site=1173552747" class="menuitem" target="_blank">PirateList.net</a>
            <a href="http://www.oemtop.com/cgi-bin/in.cgi?id=221"class="menuitem" target="_blank">OemTopList</a>
            <a href="http://astalavista.ms/top/index.php?ID=154" class="menuitem" target="_blank">AstalaVista</a>
            <a href="http://www.breedsoft.com/" class="menuitem" target="_blank">BreedSoft</a>
            <a href="http://www.RequestCracks.com/" class="menuitem" target="_blank">Request Crack</a>
            <a href="http://purple-icing.com/" class="menuitem" target="_blank">Purple-icing</a>
<a href="http://www.hackzone.us/top/in.php?id=1410/" class="menuitem" target="_blank">Cracks & Warez</a>
            <a href="http://www.spicywarez.com/" class="menuitem" target="_blank">SpicyWarez</a>
            <a href="http://www.ddl-paradise.com/" class="menuitem" target="_blank">DDL-Paradise</a>
            <a href="http://www.warezomen.com/in.php?id=rockddl/" class="menuitem" target="_blank">WarezOmen</a>
            <a href="http://www.free815.com/ " class="menuitem" target="_blank">Free815</a>
            <a href="http://www.warez411.com/" class="menuitem" target="_blank">Warez411</a>
            <a href="http://bx-net.net/" class="menuitem" target="_blank">bx-net</a>
            <a href="http://www.undernation.com/in.php?id=rockddl" class="menuitem" target="_blank">Undernation</a>
            <a href="http://www.humoron.com" class="menuitem" target="_blank">Full XXX </a>
            <a href="http://4filez.org/" class="menuitem" target="_blank">4 Filez.Org</a>
            <a href="http://promoddl.com/in.php?id=rockddl" class="menuitem" target="_blank">PromoDDL</a>
            <a href="http://www.warezlinkers.com/" class="menuitem" target="_blank">WarezLinkers</a>
            <a href="http://www.ddlbay.com/in.php?id=rockddl" class="menuitem" target="_blank">DDL Bay</a>
            <a href="http://www.pl1.com/in.php?id=rockddl" class="menuitem" target="_blank">PL1.Com</a>
            <a href="http://www.warezmasters.com/?r=DT5wiTynk9/" class="menuitem" target="_blank">WarezMasters</a>
            <a href="http://wzone.6x.to/" class="menuitem" target="_blank">WarezOne</a>
            <a href="http://ausfx.net/" class="menuitem" target="_blank">Ausfx.Net</a>
            <a href="http://www.ienask.com/" class="menuitem" target="_blank">Ienask DDL</a>
            <a href="http://www.dl4all.com/" class="menuitem" target="_blank">Full Download</a>
            <a href="http://www.fishddl.com/" class="menuitem" target="_blank">Fish DDL</a>
            <a href="http://euroseen.net/" class="menuitem" target="_blank">EuroseenDDL </a>
<a href="http://www.rockddl.com/index.php?page=contact" class="menuitem" target="_blank"><font color="white" size="2"><b>Your Site Here PR4+</b></font></a>
        </div>
    </div>
    <center><a href=""><img src="http://i9.tinypic.com/53hy9fo.gif" alt="Ads" /></a></center>
</div>

<div id="rightbar">
<form action="index.php" method="get" name="search">
<center><h1>Search : </h1></center>
<input id="q" type="text" size="15" value="<?php echo $q; ?>" name="q" onFocus="if(this.value=='Search')this.value='';" onBlur="if(this.value=='')this.value='Search';" >&nbsp;
<select name="type" id="type">
<option value="index.php" selected>All</option>
<option value="Game">Games</option>
<option value="App">Apps</option>
<option value="Movie">Movies</option>
<option value="Music">Music</option>
<option value="XXX">XXX</option>
<option value="E-Books">E-Books</option>
<option value="Tv">Tv</option>
<option value="Other">Other</option>
</select>&nbsp;
<input name="Search" type="submit" class="input" value="Search" style="cursor:pointer">
</form>
    <center><h1>Top Links</h1></center>
    <?php
    $le->get(16, 16);
    ?>
    <hr color="#666666" size="1">
    <center><h1>Hot Sites</h1></center>
    <a href="#" target="_blank">Some hot site</a>
    <hr color="#666666" size="1">
    <center><a href=""><img src="http://i9.tinypic.com/53hy9fo.gif" alt="Ads" /></a></center>
</div>


</body>
</html>
As said by karinne

HTML: Select all

<?php

require "config.class.php";

require "main.class.php";

require "link.class.php";

$q = stripslashes($q);

$q = eregi_replace("\"", " ", $q);

$q = eregi_replace("\'", " ", $q);

$q = trim($q);

$ddl = new ddl();

$le = new linker();

$ddl->open();

$ddl->get($q, $types);

if($q) {
    if(mysql_num_rows(mysql_query("SELECT * FROM search WHERE query = '$q'")) < 1) {
    mysql_query("INSERT INTO search VALUES ('','$q','0')");
    } else {
    mysql_query("UPDATE search SET searches = searches+1 WHERE query = '$q'");
    }
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<SCRIPT language=JavaScript type=text/javascript>

    function TG(a, changeTo) {

    a.style.backgroundColor = changeTo;

    }



</SCRIPT>
 <title>RockDDL.com...Unlimited Solid Downloads Of Full Version Appzs, Movies, Games, Musics, XXX, Cracks, Serials, Keygens</title>
    <link href="full.css" rel="stylesheet" type="text/css" title="Full-display Steel-n-Leather Template stylesheet">
<link href="noright.css" rel="alternate stylesheet" type="text/css" title="Left sidebar and Main Steel-n-Leather Template stylesheet">
<link href="noleft.css" rel="alternate stylesheet" type="text/css" title="Right sidebar and Main Steel-n-Leather Template stylesheet">
    <meta name="description" content="Warez Full Apps Games Albums Torrents Serials Cracks Ftps Roms XXX">
<meta name="keywords" content="warez, games, appz,tvs, torrents, ftp, movies,xxx,viedos, downloads,cracks,serials,keygens,cd keys">
    <meta name="author" content="KingCupid">


<style type="text/css">
    body {
        color: #fff;
    }
    
    #wrap {
        margin: 0 auto;
        width: 780px;
        background-color: #900;
    }
    </style>   // as said by karinne



</head>

<body> 


<div id="pagehead">
    <h1>RockDDL</h1>
    <h2>Unlimited Solid Download</h2>
    <div class="menubar">
        <div class="menu">
            <a href="index.php" class="menuitem">Home</a>
        </div>
        <div class="menu">
            <a href="http://www.rockddl.com/downloads/" class="menuitem">Downloads</a>
        </div>
        <div class="menu">
            <a href="submit.php" class="menuitem">Submit</a>
        </div>
        <div class="menu">
            <a href="index.php?page=contact" class="menuitem">Contact Us</a>
        </div>
        <div class="menu">
            <a href="index.php?page=webmaster" class="menuitem">Webmasters</a>
        </div>
    </div>
    <div class="adblock">
        #pagehead .adblock
        <img src="" alt="#pagehead .adblock img">
    </div>
</div>
<div id="main">
<h1><span class="itemleader">:: </span>RockDDL<span class="itemleader"> ::</span><a name="general"></a></h1>
  <div class="text">
          <?
$val = $_GET['page']; 
$val .= ".php"; 
$dirty = array("..");
$clean = array("");
$val = str_replace($dirty, $clean, $val); 
if (isset($_GET['page'])) { 
if (file_exists($val)) { 
include "$val";
}
else {
include "download_ddl.php"; 
}
}
else {
include "download_ddl.php";
}
?>
    </div>

 <h1><span class="itemleader">:: </span>Recent Searches<span class="itemleader"> ::</span><a name="general"></a></h1>
  <div class="text">
    <?php
$jmz = mysql_query("SELECT * FROM search ORDER BY id DESC LIMIT 30");
while($row = mysql_fetch_array($jmz)) {
$jmzurl = str_replace(array("/"," ","&","$","#","'",'"',":","\\",">","<"),"-",$row[query]);
echo '<a href="/search-warez-crack-serial-'.$jmzurl.'.html" style="color:#2E3940; font-family:sans-serif; font-weight:bold; font-size:smaller;">'.strip_tags($row[query]).'</a>, ';
}
?></div>
    <div class="note" style="float:left;">&copy; 2007 RockDDL</div>
</div>

<div id="leftbar">
    <div class="menubar">
        <div class="menu">
            <a href="index.php