Jump to content
New Reality: Ads For Members ×

php newby! Table problem. Please help.


iciman

Recommended Posts

Hello everybody. This is my first of what will probably be many questions, so thank you for your help in advance.

 

I am working on a site for company I work for and I have tidied up the home page (I think ok, but I accept criticism!) : http://newstarconstructionltd.com/

 

I am know working on the contact us page http://newstarconstructionltd.com/contact_us.php

and I am having serious problems with the lay out and I have not got a clue why I can't get the table to format like the home page. The code is as follows:

 

 

<?php $sgun=date(d);
$sAy=date(F);?><?php

include ("diller.php");

if (!isset($_COOKIE['SiteDil'])){
$lang = "en";
}else{
$lang = $_COOKIE['SiteDil'];
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META name="keywords"
content="contact us, information, details, Altinkum, Turkey" 
>
<META 
content="Please contact NewStarHomesLtd, estate agents in Altinkum, Turkey.
" name="description">
<META http-equiv=content-language content=TR>
<META http-equiv=content-language content=ENG>
<META http-equiv=cache-control content=no-cache>
<META content=Sel name=Author>
<META [email protected] name=email>
<META content=all,index,follow name=robots>
<META content=T+O7ESqJOzxHiBxIhfGBZ6Hq/6qG4xsCo5H50axSHt8= name=verify-v1>
<title><? dilgoster($lang,0);?></title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
background-color: #F2E8C5;
}
.style2 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #FC632A; font-weight: bold; }
.style6 {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: xx-small;
}
.style8 {
font-size: 12px;
color: #FC632A;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
}
.style13 {
color: #FFFFFF;
font-weight: bold;
font-size: 14px;
font-family: Verdana;
}
.style35 {
font-family: Verdana;
font-size: 11px;
}
.style37 {
color: #666666;
font-size: 11px;
font-weight: bold;
font-family: Verdana;
}
a:link {
color: #666666;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #333333;
}
a:hover {
text-decoration: underline;
color: #FFFFFF;
}
a:active {
text-decoration: none;
}
a {
font-family: Verdana;
font-size: 12px;
font-weight: bold;
}
.style44 {
color: #FF6735;
font-size: 16px;
font-weight: bold;
}
.style45 {color: #666666; font-size: 10px; }
.style47 {
color: #FE6833;
font-size: 16;
font-weight: bold;
}
.style50 {color: #FFFFFF}
.style51 {color: #000000;
          font-size: 16;
          font-weight: bold;
}
.style52 {color: #FFFFFF; font-weight: bold; font-size: 16px; font-family: Verdana; }
.style56 {
font-size: 12px;
color: #666666;
}
.style57 {font-size: 14px}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript" language="JavaScript1.2" src="stmenu.js"></script>
</head>

<body>

<table width="630" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#F2E8C5">
  <tr>
    <td colspan="2" class="style89"> </td>
  </tr>
  <tr>
    <td width="255" align="right" valign="top"><?php include("search_engine.php");?></td>
    <td width="500" align="left" valign="top"><table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
        <td width="500" height="14" colspan="1" bgcolor="#F2E8C5"><span class="style6"> </span></td>
      </tr>
      <tr>
        <td width="676" rowspan="5" align="left" valign="top" bgcolor="#F2E8C5"><noscript>
        </noscript>
          <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','676','height','262','src','index_jpg/swf/sel','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','index_jpg/swf/sel' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="676" height="262">
            <param name="movie" value="index_jpg/swf/sel.swf" />
            <param name="quality" value="high" />
            <embed src="index_jpg/swf/sel.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="676" height="262"></embed>
          </object></noscript></td>
        <td width="50" height="18" align="left" valign="top" bgcolor="#F2E8C5"> </td>
      </tr>
      
<tr>
<td align="left" valign="top" bgcolor="#F2E8C5"><a href="dil.php?dil=en"><img src="index_jpg/3dflagsdotcom_uk_2fawm.gif" alt="estate agent" width="55" height="33" border="0" /></a></td>
</tr>
<tr>
<td align="left" valign="top" bgcolor="#F2E8C5"><a href="dil.php?dil=en">English</a></td>
</tr>
<tr>
<td align="left" valign="top" bgcolor="#F2E8C5"><a href="dil.php?dil=tr"><img src="3dflags_tur.gif" alt="estate agent" width="55" height="33" border="0" /></a></td>
</tr>
<tr>
<td height="141" align="left" valign="top" bgcolor="#F2E8C5"><a href="dil.php?dil=tr">Turkey</a></td>
</tr>
      <tr>
        <td height="26" align="center" background="property_sale_jpg/orta.JPG" bgcolor="#F2E8C5"><div align="left" class="style52 style57" style="margin-left:5px;">
         <? dilgoster($lang,117);?>
        </div></td>
        <td height="26" align="center" bgcolor="#F2E8C5"> </td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="655" align="center" valign="top"><div style="margin-left:45px; margin-top:0px;">
     <script id="Sothink Widgets:index2.pgt" type="text/javascript" language="JavaScript1.2">
<!--
stm_bm(["menu6480",700,"","blank.gif",0,"","",0,0,250,0,1000,1,0,0,"","",0,0,1,2,"default","hand",""],this);
stm_bp("p0",[1,4,0,0,0,3,14,7,100,"",-2,"",-2,50,0,0,"#999999","#FFFFF7","",3,0,0,"#000000"]);
stm_ai("p0i0",[0,"<?php dilgoster($lang,12); ?> ","","",-1,-1,0,"index.php","_self","","","060418icon.gif","060418icon1.gif",14,12,0,"","",0,0,0,0,1,"",0,"",0,"panssR8C2.JPG","pans111R8C2.JPG",3,3,0,0,"#FFFFF7","#000000","#000000","#FFFFFF","bold 13px Verdana","bold 13px Verdana",0,0],209,30);
stm_aix("p0i1","p0i0",[0,"<?php dilgoster($lang,13); ?>","","",-1,-1,0,"search_result.php?op=search&PROPERTYTYPE=&PROPERTYBEDROOMS=0&PROPERTYLOCATION=&PROPERTYPRICE1=1&PROPERTYPRICE=1000000&currency=GBP&image.x=106&image.y=4","_self","","","060418icon.gif","060418icon1.gif",14,12,0,"","",0,0,0,0,1,"",0,"",0,"panssR8C2.JPG","pans111R8C2.JPG",3,3,0,0,"#FFFFF7","#000000","#000000","#FFFFFF","bold 12px Verdana","bold 12px Verdana"],209,30);
stm_aix("p0i2","p0i1",[0,"<?php dilgoster($lang,14); ?>","","",-1,-1,0,"investment.php"],209,30);
stm_aix("p0i3","p0i0",[0,"<?php dilgoster($lang,15); ?>","","",-1,-1,0,"","_self","","","060418icon.gif","060418icon1.gif",14,12,0,"arrow_r.gif","arrow_r.gif",7,7],209,30);
stm_bpx("p1","p0",[1,2,0,0,0,4,14,0]);
stm_aix("p1i0","p0i0",[0,"<?php dilgoster($lang,16); ?>","","",-1,-1,0,"property_management.php","_self","","","060418icon.gif","060418icon1.gif",14,12,0,"","",0,0,0,0,1,"",0,"",0,"panssR8C2.JPG","pans111R8C2.JPG",3,3,0,0,"#FFFFF7","#000000","#000000","#FFFFFF","bold 11px Verdana","bold 11px Verdana"],180,30);
stm_aix("p1i3","p1i0",[0,"<?php dilgoster($lang,17); ?>","","",-1,-1,0,"how_to_buy.php"],180,30);
stm_aix("p1i4","p1i0",[0,"<?php dilgoster($lang,18); ?>","","",-1,-1,0,"airport_transfers.php"],180,30);
stm_ep();
stm_aix("p0i4","p0i3",[0,"<?php dilgoster($lang,19); ?>"],209,30);
stm_bpx("p2","p1",[]);
stm_aix("p2i1","p1i0",[0,"<?php dilgoster($lang,20); ?>","","",-1,-1,0,"about_Turkey.php"],180,30);
stm_aix("p2i2","p1i0",[0,"<?php dilgoster($lang,21); ?>","","",-1,-1,0,"about_Altinkum.php"],180,30);
stm_aix("p2i3","p1i0",[0,"<?php dilgoster($lang,22); ?>","","",-1,-1,0,"about_Akbuk.php"],180,30);
stm_ep();
stm_aix("p0i5","p0i0",[0,"<?php dilgoster($lang,23); ?>","","",-1,-1,0,"special_inquiries.php"],209,30);
stm_aix("p0i7","p0i5",[0,"<?php dilgoster($lang,24); ?>","","",-1,-1,0,"contact_us.php"],209,30);
stm_ep();
stm_em();
//-->
      </script>
</div>
  <?php include("news.php"); ?>
<div style="margin-top:10px; margin-left:0px;"></div></td>
<td align="left" valign="top"><table width="674" border="0" cellspacing="0" cellpadding="0">
<tr>

    

<td width="674" align="left" valign="top" style="background-image:url(about_us/ortabeyaz.jpg)"><table cellspacing="1" cellpadding="8" border="0"></td>
    <p><span class="style51">NewStarHomesLtd Estate Agent Office</p>
<p>Office Telephone: 0090 256 813 22 61</p>
<table width="250" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td bgcolor="#FFD076">Email : <a href="mailto:[email protected]">[email protected]</a></td>
          </tr>
        </table>

    <p><span class="style51">Saz&#305;l YILDIZ Mob: 05324627252  
      <? dilgoster($lang,116); ?>
        05433545905</p>
    <p>  Sabri YILDIZ Mob: 05323241161 
      <? dilgoster($lang,116); ?>
      05469135001</p>
<p><span class="style47">ENGLISH SPEAKING MEMBER OF STAFF:</p>
<p><span class="style51"> Charles Mob: 0090 543 846 06 10</p>
<p>  Alex Mob: 0090 538 878 38</p>
    <p>Address: Altinkum Mah.Gocler Mevkii.Guclu apart alti. Didim / Aydin /TURKEY.</p>
<p>Post Code: 09270 </p><br /><br />
<img src="index_jpg/googlemap11.jpg">
      <br />
      
      <br />       
    <p> </p>
    <p> </p>
    <p>
    
        </p>
    <p><br />
  </div></td>
    <td width="53" align="left" valign="top" class="style35 style56"> </td>
  </tr>
  <tr>
    <td colspan="3"><div style="margin-top:0px;">
<table width="928" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="49"> </td>
        <td width="879"  style="height:44px; background-image:url(index_jpg/sayfa_alti.JPG);"><table width="877" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="151"> </td>
            <td width="726"> </td>
          </tr>
          <tr>
            <td colspan="2" class="style37">           <div align="center"><a href="index.php"><?php dilgoster($lang,12)?></a>    <a href="search_result.php?op=search&PROPERTYTYPE=&PROPERTYBEDROOMS=0&PROPERTYLOCATION=&PROPERTYPRICE1=1&PROPERTYPRICE=1000000&currency=GBP&image.x=106&image.y=4"><?php dilgoster($lang,13)?></a>    <a href="investment.php"><?php dilgoster($lang,14)?></a>    <a href="special_inquiries.php"><?php dilgoster($lang,23)?></a>    <a href="contact_us.php"><?php dilgoster($lang,24)?></a></div></td>
            </tr>
        </table></td>
      </tr>
    </table>


</div></td>
  </tr>
  <tr>
    <td colspan="3"><div align="center" class="style35">
      <? dilgoster($lang,33);?>
    </div></td>
  </tr>
</table>
</body>
</html>

 

Please Help.

Link to comment
https://forums.phpfreaks.com/topic/127504-php-newby-table-problem-please-help/
Share on other sites

Hi, first of all I think you have posted in the wrong section (this is really for object orientated PHP), however I will suggest for page layouts it is accepted div tags should be used instead of tables.

 

BTW I believe the home page isn't displaying properly in Google Chrome.

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.