know your problerm![]()
If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!hi,
seems that i cant place a .php where i want it.
if you look at
www.cheap-florida-holiday.com
then
www.cheap-florida-holiday.com/index.php
you know what i mean.
does anyone know how i can combat this problem and pass their wisdom on?
cheers
hi
this page is index.php.
it is made up of three .php pages.
headertemplate.php
indextemplate.php
footertemplate.php
hi
this page is index.php.
it is made up of three .php pages.
headertemplate.php
indextemplate.php
footertemplate.php
does this help, this is the index.php source code
<?
require_once("conn.php");
require_once("includes.php");
require_once("mainsearch.php");
require_once("templates/HeaderTemplate.php");
// ADVANCED SEARCH
//require_once("advanced.php");
//require_once("templates/AdvancedSearchTemplate.php");
echo "<br>";
// newest properties
$q1 = "select * from re2_listings, re2_agents, re2_priority where re2_listings.AgentID = re2_agents.AgentID and re2_agents.PriorityLevel = re2_priority.PriorityLevel and re2_agents.AccountStatus = 'active' order by DateAdded desc limit 0,9 ";
$r1 = mysql_query($q1) or die(mysql_error());
$lrows = mysql_num_rows($r1);
if($lrows > '0')
{
$ListingTable .= "<table align=center width=510 border=1 bordercolor=black frame=hsides rules=rows cellspacing=0>\n";
while($a1 = mysql_fetch_array($r1))
{
$ListingTable .= "<tr onMouseOver=\"this.style.background='#E2E2E2'; this.style.cursor='hand'\" onMouseOut=\"this.style.background='white'\" onClick=\"window.open('info.php?id=$a1[ListingID]', '_top')\">\n\t";
if($a1[PriorityLevel] > '1')
{
$sub = "<span class=RedLink><sup>$a1[PriorityLevel]</sup></span>";
}
else
{
$sub = "";
}
$ListingTable .= "\n\t<td width=15>";
if(!empty($a1[image]))
{
$ListingTable .= "<img src=\"myimages/camera.jpg\" width=15 height=15>";
}
$ListingTable .= "</td>\n\t";
$ListingTable .= "<td width=305>$a1[city], $a1[state], $a1[address] $sub</td>\n\t";
$ListingTable .= "<td width=80>$a1[rooms] br, $a1[bathrooms] ba";
$MyPrice = number_format($a1[Price], 2, ".", ",");
$ListingTable .= "</td>\n\t<td align=center width=100><b>$$MyPrice</td>\n";
$ListingTable .= "</tr>\n";
}
$ListingTable .= "</table>";
}
///////////////////////////////////////////////////////////
///////////// top 10
///////////////////////////////////////////////////////////
$q1 = "select * from re2_listings, re2_agents, re2_priority where re2_listings.AgentID = re2_agents.AgentID and re2_agents.PriorityLevel = re2_priority.PriorityLevel and re2_agents.AccountStatus = 'active' order by visits desc limit 0,9 ";
$r1 = mysql_query($q1) or die(mysql_error());
$lrows = mysql_num_rows($r1);
if($lrows > '0')
{
$TopTable .= "<table align=center width=510 border=1 bordercolor=black frame=hsides rules=rows cellspacing=0>\n";
while($a1 = mysql_fetch_array($r1))
{
$TopTable .= "<tr onMouseOver=\"this.style.background='#E2E2E2'; this.style.cursor='hand'\" onMouseOut=\"this.style.background='white'\" onClick=\"window.open('info.php?id=$a1[ListingID]', '_top')\">\n\t";
if($a1[PriorityLevel] > '1')
{
$sub = "<span class=RedLink><sup>$a1[PriorityName]</sup></span>";
}
else
{
$sub = "";
}
$TopTable .= "\n\t<td width=15>";
if(!empty($a1[image]))
{
$TopTable .= "<img src=\"myimages/camera.jpg\" width=15 height=15>";
}
$TopTable .= "</td>\n\t";
$TopTable .= "<td width=305>$a1[city], $a1[state], $a1[address] $sub</td>\n\t";
$TopTable .= "<td width=80>$a1[rooms] br, $a1[bathrooms] ba";
$MyPrice = number_format($a1[Price], 2, ".", ",");
$TopTable .= "</td>\n\t<td align=center width=100><b>$$MyPrice</td>\n";
$TopTable .= "</tr>\n";
}
$TopTable .= "</table>";
}
require_once("templates/IndexTemplate.php");
echo "<br>";
require_once("templates/FooterTemplate.php");
?>
Last edited by slight of hand; 05-11-2006 at 02:28 PM. Reason: Automerged Doublepost
know your problerm![]()
if you know go to this thread post your answer and win the F$200
http://www.dnforum.com/f27/reward-an...ad-151766.html
you made not clearly template split .
in you script I know there were 3 templates
http://www.cheap-florida-holiday.com...ertemplate.php
http://www.cheap-florida-holiday.com...extemplate.php
http://www.cheap-florida-holiday.com...ertemplate.php
but you combinated MIDDLE LEFT (your left catalog and adesne) with header template. just check http://www.cheap-florida-holiday.com...ertemplate.php .
My suggestion is : cut any code at middle area to a new template , so you can easy arrange them. and close your headertemplate <TABLE> , keep it clean just like your footertemplate.
Last edited by goodyork; 05-12-2006 at 06:19 AM.
Bookmarks