21,886
社区成员
发帖
与我相关
我的任务
分享
<?php
$sql=mysql_query("SELECT * from zlove_user where cityid='涧西区' or cityid='西工区' or cityid='老城区'and flag=0 order by userid asc limit 0,6",$conn);
while ($row=mysql_fetch_array($sql))
{
$userid=$row[userid];
$username=$row[username];
$userimg=$row[userimg];
$sex=$row[sex];
$age=$row[age];
$height=$row[height];
$provinceid=$row[provinceid];
$cityid=$row[cityid];
$monolog=$row[monolog];
$i=1;$i<6;$i++;
echo "
<DIV id=$i>
<DL><A href=home.php?usid=$userid target=_blank>
<DT><IMG src=css/123.jpg width=112 height=135></DT>
<DD>
<H1><FONT class=floatl>$username</FONT>";
if($sex == "2"){echo " <B></B></H1>";} else echo " <SPAN></SPAN></H1>";
echo "
<H2>$age 岁 $height 厘米 $xl </br>所在地:$provinceid $cityid </H2>
<P>$monolog</P>
<H3>查看更多交友资料>></H3>
</DD></A></DL></DIV>";
}
?>
<!-- 涧西区 -->
<DIV id=con_one_1>
<?php
$res=mysql_query("SELECT * from zlove_user where cityid='涧西区'and flag=0 order by userid desc limit 0,6");
while($row=mysql_fetch_array($res))
{
$userid=$row[userid];
echo "
<DL><A href=home.php?usid=$userid target=_blank>
<DT><IMG src=css/123.jpg width=112 height=135></DT>
<DD>
<H1><FONT class=floatl>$row[username]</FONT>";
if($row[sex] == "2"){echo " <B></B></H1>";} else echo " <SPAN></SPAN></H1>";
echo "
<H2>$row[age] 岁 $row[height] 厘米 $xl </br>所在地:$row[provinceid] $row[cityid] </H2>
<P>$row[monolog]</P>
<H3>查看更多交友资料>></H3>
</DD></A></DL>";
} ?>
</DIV>
<!-- 西工区 -->
<DIV style="DISPLAY: none" id=con_one_2>
<?php
$res=mysql_query("SELECT * from zlove_user where cityid='西工区'and flag=0 order by userid desc limit 0,6");
while($row=mysql_fetch_array($res))
{
$userid=$row[userid];
if($row[userimgflag] == "1"){$userimg = "user/$row[userimg]";}
elseif($row[sex] == "2"){$userimg = "css/female.gif";}
else{$userimg = "css/male.gif";}
echo "
<DL><A href=home.php?usid=$userid target=_blank>
<DT><IMG src=$userimg width=112 height=135></DT>
<DD>
<H1><FONT class=floatl>$row[username]</FONT>";
if($row[sex] == "2"){echo " <B></B></H1>";} else echo " <SPAN></SPAN></H1>";
echo "
<H2>$row[age] 岁 $row[height] 厘米 $xl </br>所在地:$row[provinceid] $row[cityid] </H2>
<P>$row[monolog]</P>
<H3>查看更多交友资料>></H3>
</DD></A></DL>";
} ?>
</DIV>
<!-- 老城区 -->
<DIV style="DISPLAY: none" id=con_one_3>
<?php
$res=mysql_query("SELECT * from zlove_user where cityid='老城区'and flag=0 order by userid desc limit 0,6");
while($row=mysql_fetch_array($res))
{
$userid=$row[userid];
echo "
<DL><A href=home.php?usid=$userid target=_blank>
<DT><IMG src=css/123.jpg width=112 height=135></DT>
<DD>
<H1><FONT class=floatl>$row[username]</FONT>";
if($row[sex] == "2"){echo " <B></B></H1>";} else echo " <SPAN></SPAN></H1>";
echo "
<H2>$row[age] 岁 $row[height] 厘米 $xl </br>所在地:$row[provinceid] $row[cityid] </H2>
<P>$row[monolog]</P>
<H3>查看更多交友资料>></H3>
</DD></A></DL>";
} ?>
</DIV>
<?php foreach($infor as $i =>$info){ ?>
<DIV id=<?=$i?> >
<DL><A href=home.php?usid=<?=$info['userid']?> target=_blank>
<DT><IMG src=css/123.jpg width=112 height=135></DT>
<DD>
<H1><FONT class=floatl><?=$info['username']?></FONT>";
<?=($info['sex'] == 2)?" <B></B></H1>":" <SPAN></SPAN></H1>"?>
<H2><?=$info['age']?>岁 <?=$info['height']?>厘米 <?=$info['xl']?></br>
所在地:<?=$info['privinceid']?> <?=$info['cityid']?></H2>
<P><?=$info['monolog']?></P>
<H3>查看更多交友资料>></H3>
</DD></A></DL></DIV>";
<?php } ?>
<?php foreach($infor as $i =>$info){ ?>
<DIV id=<?=$i?> >
<DL><A href=home.php?usid=<?=info['userid']?> target=_blank>
<DT><IMG src=css/123.jpg width=112 height=135></DT>
<DD>
<H1><FONT class=floatl>$info['username']</FONT>";
<?=(info['sex'] == 2)?" <B></B></H1>":" <SPAN></SPAN></H1>"?>
<H2><?=$info['age']?>岁 <?=$info['height']?>厘米 <?=$info['xl']?></br>所在地:<?=$info['privinceid']?> <?=$info['cityid']?></H2>
<P><?=$info['monolog']?></P>
<H3>查看更多交友资料>></H3>
</DD></A></DL></DIV>";
<?php } ?>
$sql=mysql_query("SELECT * from zlove_user where cityid='涧西区' or cityid='西工区' or cityid='老城区'and flag=0 order by userid asc limit 0,6",$conn);
$infor = array();
while ($row=mysql_fetch_array($sql))
{
array_push($infor,$row);
}
<?php foreach($infor as $i =>$info){ ?>
<DIV id=<?=$i?> >
<DL><A href=home.php?usid=<?=info['userid']?> target=_blank>
<DT><IMG src=css/123.jpg width=112 height=135></DT>
<DD>
<H1><FONT class=floatl>$info['username']</FONT>";
<?=(info['sex'] == 2)?" <B></B></H1>":" <SPAN></SPAN></H1>"?>
<H2>$info['age']岁 $info['height']厘米 $info['xl']</br>所在地:$info['privinceid'] $info['cityid']</H2>
<P>$info['monolog']</P>
<H3>查看更多交友资料>></H3>
</DD></A></DL></DIV>";
<?php } ?>