首 页   · 站长博客 · 用户注册 · 会员登陆  · 会员排行  ·最新主题  ·最近回复  精华区  版权声明  ·论坛管理
  当前登录身份:游客,请先登录。  笔名: 口令: 验证码:   
楼 主  index »  PHP+MYSQL编程 » 请高手帮看看这代码出什么问题  


  作者:xue5691
  注册时间:2008-06-24
  主题/回复:1/0
  积分:30
  等级:★(二级)
  称号:初出茅庐

  xueying5691@126...
  305609354
  www.glton.com

 

 发表:2008-06-24 09:57:39 阅读 2733 次 回复 1 次 得分1  |   字号 字色
请高手帮看看这代码出什么问题
<?include("./title.php")?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>千万家在线经纪人</title>
<link href="../css.css" rel="stylesheet" type="text/css">
</head>
 <script language="JavaScript">
function getvl(vl){
var frm=document.frm;
document.getElementById('spro_id').value=vl;
frm.submit();
}
</script>
<body>
<table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/tr_s2_01_01.gif" width="481" height="235" /></td>
    <td><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="519" height="235">
      <param name="movie" value="jjr_1.swf" />
      <param name="quality" value="high" />
      <embed src="jjr_1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="519" height="235"></embed>
    </object></td>
  </tr>
</table>
<table width="1000" height="40" border="0" cellpadding="0" cellspacing="0" background="images/daoh.jpg">
  <tr>
  <td width="150" align="center" background="images/daoh.jpg">&nbsp;</td>
  <td align="left" background="images/daoh.jpg"><table height="40" border="0" cellpadding="0" cellspacing="10">
    <tr>
      <td width="80" align="center" valign="middle"><a href="../index.php" class="jjdaoh">首 页</a></td>
      <td width="80" align="center" valign="middle" ><a href="../index.php" class="jjdaoh">房源库</a></td>
      <td width="80" align="center" valign="middle"><a href="wlmd.php" class="jjdaoh">网络门店</a></td>
      <td width="80" align="center" valign="middle"><a href="jjren.php" class="jjdaoh">在线经纪人</a></td>
      <td width="80" align="center" valign="middle">&nbsp;</td>
      <td align="center" valign="middle">&nbsp;</td>
    </tr>
  </table></td>
</tr></table>
  <table width="1000" height="406" border="0" cellpadding="0" cellspacing="4">
    <tr>
      <td width="693" height="402" valign="top"><table width="100%" height="105" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="15" valign="top"><img src="images/hotl.jpg" width="15" height="110"></td>
          <td align="center" valign="middle" background="images/hotm.jpg">

            <table width="654"  border="0" cellpadding="0" cellspacing="3" class="zhd">
            <form name=frm method="post" action="<?= __SYSTEM_ROOT?>search_go.php" target="_blank"><input type=hidden name=spro_id>
<tr>
 <?
unset($tmpqu);
$Data->SetTable($_global->table->import_area);
$tmpqu[]="site_id={$_global->site_id}";
$Where=SearchSql($tmpqu)." order by 'create_time'";
$rs=$Data->WhileQuery($_global->fields->vl,$Where);
$i=0;
while($show=$Data->FetchWhile($rs,null)){
if($i%10==0) echo "</tr><tr>";
?><td width="60" height="30" align="center" valign="middle" background="images/cenb.jpg" ><a href="#" class="zhd" onClick="javascript:getvl('<?= $show['content_name']?>')"> 
        <?= $show['content_name']?>
     </a></td>     
<?
$i++;
}?> 
</tr></form>
          </table>
  </td>
          <td width="14" valign="top"><img src="images/hotr.jpg" width="14" height="110"></td>
        </tr>
      </table>
  <table width="100" border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td height="8"><img src="images/space.gif" width="1" height="1"></td>
        </tr>
      </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="7"><img src="images/munl.jpg" width="7" height="31"></td>
            <td width="110" align="center" background="images/munm.jpg" class="munzi">推 荐 网 店</td>
            <td width="17"><img src="images/munr.jpg" width="17" height="31"></td>
            <td bgcolor="#E8E4E5">&nbsp;</td>
          </tr>
        </table>
<?
          unset($tmpqu);
$Data->SetTable($_global->table->jjr);
$tmpqu[]="site_id={$_global->site_id}";
$Where=SearchSql($tmpqu)." order by 'create_time' asc";
$page = new Page($Data->FetchNumRows($Where));
$_beg = $page->GetBeg();
$_end = $page->GetActualRecord();
$Where .= " LIMIT {$_beg},{$_end}";
        ?>   
  <table width="693" height="28" border="0" cellpadding="0" cellspacing="0">
    <tr>
              <td height="25" align="right" bgcolor="#BFD7F9">
                <?= $page->GetGetBar()?> </td>
            </tr>
<tr>
              <td>   
  <?              
    $rs=$Data->WhileQuery(null,$Where);
while($StoreS=$Data->FetchWhile($rs,null)){
 unset($tmpqu);
$Data->SetTable($_global->table->user);
$tmpqu1[]="store_id={$StoreS['auto_id']}";
$Where1=SearchSql($tmpqu1);
$res=$Data->WhileQuery(null,$Where1);

$Show1=$Data->FetchWhile($res,null);

if(!empty($Show1['store_id'])){
$linkshop="../unshop_list.php?store_id={$Show1['store_id']}";
}else{
$linkshop="#";
}

$StoreS['store_img']=isset($StoreS['store_img'])?SYSTEM_UPLOADS_DIR.$StoreS['store_img']:_NOIMG;

    unset($tmpqu);
$Data->SetTable($_global->table->house_rent);
$tmpqu[]="site_id={$_global->site_id}";
$rows=5;
if(isset($_GET['auto_id'])){
$tmpqu[]="store_id={$_GET['auto_id']}";
$storeIDS=$_GET['auto_id'];
}else{
$tmpqu[]="store_id={$StoreS['auto_id']}";
$storeIDS=$StoreS['auto_id'];
}

$tmpqu[]="DistrictName!=''";


$Where=SearchSql($tmpqu)." order by 'HotPos' limit 0,{$rows}";

$rss=$Data->WhileQuery(null,$Where);

$Show=$Data->FetchWhile($rss,null);
$page1 = new Page($Data->FetchNumRows($Where));
?>
<table width="100%" height="28" border="0" cellpadding="0" cellspacing="0" bgcolor="#EAEAEA">
  <tr>
    <td width="130" align="center"><?= $StoreS['store_title']?></td>
    <td align="center">有<FONT color=red>
      <?= $page1->TotalRecords?>
    </FONT>套房源</td>
    <td width="135" align="center">查看卖买房源 </td>
    <td width="135" align="center">查看租赁房源</td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="3">
  <tr>
    <td width="160" height="120" align="center"><a href="<?= $linkshop?>"><img src="<?= $StoreS['store_img']?>" width="130" height="110" border="0"></a></td>
    <td width="20" valign="bottom"><a href="msnim:chat?contact=70000jdd@live.cn" target="_blank"><img src="/images/msnf.jpg" width="20" height="20" border="1"><br>
          <br>
    </a><a href="skype:yuzhiguo?call" target="_blank" on-click="return skypeCheck();"><img src=/images/skap.jpg alt="Call me!" width="20" height="20" border="1"></a></td>
    <td rowspan="2" valign="top"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr align="center" bgcolor="#F5F5F5">
                              <td width="40" height="20">&nbsp;</td>
                              <td width="113" height="20">区域</td>
                              <td width="51" height="20">面积</td>
                              <td width="128" height="20">户型</td>
                              <td width="50" height="20">租金</td>
                              <td width="39" height="20">楼层</td>
                              <td width="58" height="20">&nbsp;</td>
                            </tr>
             <?
    while($show=$Data->FetchWhile($rss,$plugins)){
  ?>
                            <tr align="center">
                              <td height="25" align="center"><div align="left"><img src="../images/070226.gif" width="20" height="10" /></div></td>
                              <td height="25"><?= $show['DistrictName']?></td>
                              <td><?= $show['TotalArea']?>㎡ </td>
                              <td><?= $show['RoomNumber']?>室<?= $show['LobbyNumber']?>厅<?= $show['ToiletNumber']?>                                卫</td>
                              <td><?= $show['Price']?>元</td>
                              <td><?= $show['Floor']?></td>
                              <td><a href="../b/b_zulinfy_1_info.php?auto_id=<?= $show['auto_id']?>&store_id=<?= $storeIDS?>" target="_blank">网上看房</a></td>
                            </tr>
                            <?
}
?>
                        </table>
</td>
  </tr>
  <tr>
    <td  width="180" colspan="2" align="center">
      <?= $StoreS['store_title']?>
      <br>
      <?= $StoreS['store_tel']?>
    </td>
  </tr>
</table>
<table width="100" border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td height="5"><img src="images/space.gif" width="1" height="1"></td>
        </tr>
 </table>
<?
}
?>
  </td>
</tr>
        </table>
  </td>
      <td width="306" align="right" valign="top"><table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="7"><img src="images/munl.jpg" width="7" height="31"></td>
          <td width="155" align="center" background="images/munm.jpg" class="munzi">推 荐 租 赁 房 源 </td>
          <td width="17"><img src="images/munr.jpg" width="17" height="31"></td>
          <td bgcolor="#E8E4E5">&nbsp;</td>
        </tr>
      </table>
    <table width="102" border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td width="100" height="8"><img src="images/space.gif" width="1" height="1"></td>
        </tr>
      </table>
   <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="zhd">
         <tr align="center" bgcolor="#F5F5F5">
           <td width="113" height="25">区域</td>
           <td width="128">户型</td>
           <td width="50">租金</td>
         </tr>
         <?
     unset($tmpqu);
  $rows=10;
   $Data->SetTable($_global->table->store);
$tmpqu[]="site_id={$_global->site_id}";

//$tmpqu[]="recommend='1'";

$Where=SearchSql($tmpqu)." ORDER BY RAND() limit 7";
$rsstore=$Data->WhileQuery(null,$Where);
$StoreS=$Data->FetchWhile($rsstore,null);
$StoreS['store_img']=isset($StoreS['store_img'])?SYSTEM_UPLOADS_DIR.$StoreS['store_img']:_NOIMG;
/*
$Data->SetTable($_global->table->user);
unset($tmpqu);
$tmpqu[]="store_id={$StoreS['auto_id']}";
$Where=SearchSql($tmpqu);
$res=$Data->WhileQuery(null,$Where);
$Lwm=$Data->FetchWhile($res,null);
*/
$side=empty($_GET['side'])?urlencode($StoreS['store_title']):$_GET['side'];

    
$Data->SetTable($_global->table->house_rent);
$tmpqu[]="site_id={$_global->site_id}";

if(isset($_GET['auto_id'])){
$tmpqu[]="store_id={$_GET['auto_id']}";
$storeIDS=$_GET['auto_id'];
}else{
$tmpqu[]="store_id={$StoreS['auto_id']}";
$storeIDS=$StoreS['auto_id'];
}
$tmpqu[]="isHot='1'";

$tmpqu[]="DistrictName!=''";

// $plugins[]['dbvars_vl']=array('location2',array('tbl'=>$_global->table->localvar,'key'=>'C_Title','values'=>'No','env'=>" where site_id={$_global->site_id}"));

$Where=SearchSql($tmpqu)." order by 'HotPos' limit 0,{$rows}";

$rs=$Data->WhileQuery(null,$Where);
while($show=$Data->FetchWhile($rs,$plugins)){
/*
$newsql="select * from {$_global->table->localvar} where No={$show['location2']}";
$rs = $db->sql_query($newsql);
$list=$db->sql_fetchrow($rs);
*/
  ?>
         <tr align="center">
           <td height="25"><a href="../b/b_zulinfy_1_info.php?auto_id=<?= $show['auto_id']?>&store_id=<?= $storeIDS?>" target="_blank"><?= $show['DistrictName']?></a></td>
           <td><?= $show['RoomNumber']?>
             室
             <?= $show['LobbyNumber']?>
             厅
             <?= $show['ToiletNumber']?>
             卫</td>
           <td><?= $show['Price']?>
             元</td>
         </tr>
         <?
 }
 ?>
       </table><table width="100" border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td height="8"><img src="images/space.gif" width="1" height="1"></td>
        </tr>
      </table>
   <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="7"><img src="images/munl.jpg" width="7" height="31"></td>
          <td width="155" align="center" background="images/munm.jpg" class="munzi">推 荐 卖 买 房 源 </td>
          <td width="17"><img src="images/munr.jpg" width="17" height="31"></td>
          <td bgcolor="#E8E4E5">&nbsp;</td>
        </tr>
      </table>
   <table width="100" border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td height="8"><img src="images/space.gif" width="1" height="1"></td>
        </tr>
      </table>
   <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
         <tr align="center" bgcolor="#F5F5F5">
           <td width="113" height="25">地址</td>
           <td width="100">面积</td>
           <td>价格</td>
         </tr>
         <?
     unset($tmpqu);
  $rows=10;
$Data->SetTable($_global->table->house_buy);
$tmpqu[]="site_id={$_global->site_id}";
//if(!empty($show['content_value'])) $tmpqu[]="district_id={$show['content_value']}";
$tmpqu[]="DistrictName!=''";
//$tmpqu[]="cpublish='0'";

//if(isset($n_type)) $tmpqu[]="build_id={$n_type}";

//if(isset($build_id)) $tmpqu[]="build_id={$build_id}";

//$plugins[]['vars_vl']=array('Facing','waytype');

//$plugins[]['dbvars_vl']=array('district_id',array('tbl'=>$_global->table->district,'key'=>'content_name','values'=>'content_value','env'=>" where site_id={$_global->site_id}"));


$Where=SearchSql($tmpqu)." order by 'create_time' desc limit 0,{$rows} ";

//$page = new Page($Data->FetchNumRows($Where));
//if(isset($n_type)) $page->SetPerpage(30);
//$_beg = $page->GetBeg();
//$_end = $page->GetActualRecord();
//$Where .= " LIMIT {$_beg},{$_end}";

$res=$Data->WhileQuery($_global->fields->house,$Where);
while($list=$Data->FetchWhile($res,$plugins)){
  ?>
         <tr align="center">
           <td height="25"><a href="../a/a_buy_1_info.php?auto_id=<?= $list['auto_id']?>" target="_blank">
             <?= $list['DistrictName']?>
           </a></td>
           <td>
             <?= $list['TotalArea']?>
           ㎡</td>
           <td>
             <?= $list['Price']?>
           万元</td>
         </tr>
         <?
 }
 ?>
       </table>
     <table width="100" border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td height="8"><img src="images/space.gif" width="1" height="1"></td>
        </tr>
      </table>
      </td>
    </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td><IFRAME frameborder=0 marginheight=0 marginwidth=0 
      scrolling=no src="../button.htm" height="200" width=100%> </IFRAME></td>
  </tr>
</table>
<map name="Map2">
  <area shape="rect" coords="10,9,102,62" href="http://www.70000j.com/h/h_wt_2.php">
  <area shape="rect" coords="108,12,200,61" href="http://www.70000j.com/h/h_wt_1.php">
  <area shape="rect" coords="10,77,103,127" href="http://www.70000j.com/h/h_wt_4.php">
  <area shape="rect" coords="108,77,201,128" href="#">
</map>
</body>
</html>
 
 1#楼  
 
  回复人:kiril
  注册时间:2008-06-13
  主题/回复:12/38
  积分:113
  等级:★☆(三级)
  称号:牛刀小试

用户联系方式已设置为保密
 1#楼 发表于2008-07-18 11:16:23  评分:1 

回复给楼主(xue5691)
谁有那么多时间来解决你这个问题    还把整个文件弄贴上了  
一个字“愚”
两个字“愚[COLOR=#ff00]蠢”!
  页数1/1首页 « 1 » 末页
  发表回复:您还没有登陆,无法发表回复。请先[登陆]

一起PHP技术联盟 主办:一起PHP 联系方式:站长QQ:4304410 QQ群:8423742 20159565 站长博客 E-mail: nqp@nqp.me 执行时间:0.037sec
SimsmaBBS 2008 (v6.0) Developed by 17php.com,Copyright(C)2003-2010 All rights reserved. 副本授权:一起PHP官方专用版