php

<td height="25" bgcolor="#E5E5E5">
  <?php 
session_start();
    include("conn/conn.php");
    $result=mysql_query("select * from tb_admin",$conn);
if($result!==0){//用上一步取得的行数
   echo '<marquee direction="right" behavior=scroll scrollamount=1 scrolldelay=10 align=top bgcolor="#E5E5E5" height=20 width=90% hspace=20 vspace=10 onmouseover=this.stop() onmouseout=this.start()> 欢迎'.$admin_user.'登录</marquee>';
  }?><marquee direction="right" behavior=scroll scrollamount=1 scrolldelay=10 align=top bgcolor="#E5E5E5" height=20 width=90% hspace=20 vspace=10 onmouseover=this.stop() onmouseout=this.start()> 
   当前日期:<span class="dates"><?php echo date("Y年m月d日");?></span></marquee></td>
这个分两行滚动了,怎么改成日期跟着用户名后面作为一行滚动啊??????????

解决方案 »

  1.   

       echo '<marquee direction="right" behavior=scroll scrollamount=1 scrolldelay=10 align=top bgcolor="#E5E5E5" height=20 width=90% hspace=20 vspace=10 onmouseover=this.stop() onmouseout=this.start()>";
      if($result!==0){//用上一步取得的行数
        echo "欢迎'.$admin_user.'登录</marquee>';
      }?>
       当前日期:<span class="dates"><?php echo date("Y年m月d日");?></span></marquee></td>
      

  2.   

    不行,好输出了   "; if($result!==0){//用上一步取得的行数 echo "欢迎admin登录
      

  3.   

    echo '<marquee direction=up behavior=scroll loop=3 scrollamount=1 scrolldelay=10 align=top bgcolor=#ffffff height=300 width=30% hspace=20 vspace=10 onmouseover=this.stop() onmouseout=this.start()> 欢迎'.$admin_user.'登录 </marquee>';
      

  4.   


    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <td height="25" bgcolor="#E5E5E5">
        <?php
        session_start();
        include("conn/conn.php");
        $result=mysql_query("select * from tb_admin",$conn);
        if($result!==0){//用上一步取得的行数
            echo '<marquee direction="right" behavior=scroll scrollamount=5 scrolldelay=10 align=top bgcolor="#E5E5E5" height=20 width=90% hspace=20 vspace=10
    onmouseover=this.stop() onmouseout=this.start()> 欢迎'.$admin_user.'登录';
        }?>
            当前日期:<span class="dates"><?php echo date("Y年m月d日");?></span></marquee></td>
      

  5.   

    数据库取出该用户的ID,修改的时候或者点击的时候用该ID来做判断是否显示或者是否可修改
      

  6.   

    该怎么过去呢????用POST吗?