[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 05-11-2006, 06:12 AM   #1 (permalink)
NamePros Regular
 
fried-chicken's Avatar
 
Join Date: Mar 2006
Location: Wigan, UK
Posts: 438
64.80 NP$ (Donate)

fried-chicken is an unknown quantity at this point


positioning help

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
__________________
I know how to get FREE domains. Visit EARNMORE.BIZ and download my FREE ebook to learn more
fried-chicken is offline  
Old 05-11-2006, 06:27 AM   #2 (permalink)
NamePros Regular
 
Noobie's Avatar
 
Join Date: Feb 2006
Location: Montreal, Quebec, Canada
Posts: 324
66.75 NP$ (Donate)

Noobie is on a distinguished road


hi,

your html is a real mess hehe ...

my best guess is REPLACE:

HTML Code:
<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><img  src="http://c14.statcounter.com/counter.php?sc_project=1458176&amp;java=0&amp;security=624cfb23&amp;invisible=1" alt="free invisible hit counter" border="0"> </noscript>
<!-- End of StatCounter Code -->
</BODY>
<!-- APPLY THE STYLE TO THE HTML TAG - WILL ENSURE THAT THE PAGE VALIDATES-->
<!--[if IE]> 
<style type="text/css">
html { 
scrollbar-3dlight-color:#FFCC00;
                scrollbar-arrow-color:#CEA500;
                scrollbar-track-color:#FFF8D9;
                scrollbar-darkshadow-color:#000000;
                scrollbar-face-color:#FFCC00;
                scrollbar-highlight-color:#ffcc01;
                scrollbar-shadow-color:#000000}
</style>
</HTML><br><table width=500 align=center cellpadding="0" cellspacing="0"> 
WITH

HTML Code:
<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><img  src="http://c14.statcounter.com/counter.php?sc_project=1458176&amp;java=0&amp;security=624cfb23&amp;invisible=1" alt="free invisible hit counter" border="0"> </noscript>
<!-- End of StatCounter Code -->
</BODY>
<!-- APPLY THE STYLE TO THE HTML TAG - WILL ENSURE THAT THE PAGE VALIDATES-->
<!--[if IE]> 
<style type="text/css">
html { 
scrollbar-3dlight-color:#FFCC00;
                scrollbar-arrow-color:#CEA500;
                scrollbar-track-color:#FFF8D9;
                scrollbar-darkshadow-color:#000000;
                scrollbar-face-color:#FFCC00;
                scrollbar-highlight-color:#ffcc01;
                scrollbar-shadow-color:#000000}
</style>
</td><td><table width=500 align=center cellpadding="0" cellspacing="0"> 
__________________
Goldkey.com is a scam
What's your BMI? | Timestamp Generator
Noobie is offline  
Old 05-11-2006, 06:57 AM   #3 (permalink)
 
BillyConnite's Avatar
 
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,107
47.00 NP$ (Donate)

BillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant future

Wildlife Parkinson's Disease Parkinson's Disease
Well this is really strange lol. I cant seem to firgure out why the index.php added would make any difference :S.

Do you have any code added into your htaccess file?
Are there two of those files on the server, one index.php and the other html or something else?
__________________
<?php if(1===1){ $computer="fine."; }else{ $computer="broken."; } echo "Your computer is ".$computer; ?>
BillyConnite is offline  
Old 05-11-2006, 11:04 AM   #4 (permalink)
NamePros Regular
 
fried-chicken's Avatar
 
Join Date: Mar 2006
Location: Wigan, UK
Posts: 438
64.80 NP$ (Donate)

fried-chicken is an unknown quantity at this point


hi

this page is index.php.

it is made up of three .php pages.

headertemplate.php
indextemplate.php
footertemplate.php
__________________
I know how to get FREE domains. Visit EARNMORE.BIZ and download my FREE ebook to learn more
fried-chicken is offline  
Old 05-11-2006, 12:04 PM   #5 (permalink)
JFS
NamePros Regular
 
JFS's Avatar
 
Join Date: Oct 2005
Location: Portugal
Posts: 760
56.85 NP$ (Donate)

JFS is just really niceJFS is just really niceJFS is just really niceJFS is just really niceJFS is just really niceJFS is just really nice


how did you call the other pages to your index.php ?
__________________
Joćo Fernandes Silva
Selling :
19P.ORG - ARCADEHITS.ORG - AZIAN.NET - COREFANS.COM - CTUTORIALS.NET - DEDISEEK.COM - HITCHECK.COM - HOST15.COM - HOSTCUSTOMER.COM - LARGETIPS.COM - SCRIPTCANDY.COM - VISUALBOOK.NET - VOXVPS.COM / .NET - WALLPAPERSARENA.COM
JFS is offline  
Old 05-11-2006, 12:17 PM   #6 (permalink)
NamePros Regular
 
fried-chicken's Avatar
 
Join Date: Mar 2006
Location: Wigan, UK
Posts: 438
64.80 NP$ (Donate)

fried-chicken is an unknown quantity at this point


edit
__________________
I know how to get FREE domains. Visit EARNMORE.BIZ and download my FREE ebook to learn more

Last edited by fried-chicken; 05-13-2006 at 09:25 AM.
fried-chicken is offline  
Old 05-11-2006, 01:17 PM   #7 (permalink)
NamePros Regular
 
Noobie's Avatar
 
Join Date: Feb 2006
Location: Montreal, Quebec, Canada
Posts: 324
66.75 NP$ (Donate)

Noobie is on a distinguished road


<?
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>";
}
//TRY ADDING THIS
echo "</td>\n<td>\n\t";
//END

require_once("templates/IndexTemplate.php");

echo "<br>";

require_once("templates/FooterTemplate.php");

?>
__________________
Goldkey.com is a scam
What's your BMI? | Timestamp Generator
Noobie is offline  
Old 05-11-2006, 01:29 PM   #8 (permalink)
NamePros Regular
 
fried-chicken's Avatar
 
Join Date: Mar 2006
Location: Wigan, UK
Posts: 438
64.80 NP$ (Donate)

fried-chicken is an unknown quantity at this point


tried it, but no joy.

cheers
__________________
I know how to get FREE domains. Visit EARNMORE.BIZ and download my FREE ebook to learn more
fried-chicken is offline  
Old 05-14-2006, 08:48 AM   #9 (permalink)
NamePros Member
 
crazyluv's Avatar
 
Join Date: Jan 2005
Posts: 98
213.00 NP$ (Donate)

crazyluv is an unknown quantity at this point


First why are you using two indexes? You have a .htm, which is what your domain is pointing to and an index php. Both of them point to the index.htm when you click home.

As for the positioning well when you look at the source code your php index has a <br> at the beggining and the .htm index doesn't so one has a space at the top and the other doesn't although they both differ quite a bit when you compare source codes.
__________________
AEInbetween
crazyluv is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 01:17 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85