Flash Error in PHP

Discussion in 'PHP' started by 1000knots, Apr 24, 2007.

  1. #1
    I have a html page which display a dynamic flash developed by our flash developer, and working fine.

    When I changeed this html into php file, somehow the flash is not showing up and displays "Undifined".

    I am working on it to try to figure it out, in the meanwhile, just see if anyone can enlighten me on this issue.

    Thanks.
     
    1000knots, Apr 24, 2007 IP
  2. pepsipunk

    pepsipunk Well-Known Member

    Messages:
    208
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #2
    you might want to post your code or your url or something to better understand what's wrong. but make sure the URL is embedded correctly so your flash movie loads
     
    pepsipunk, Apr 24, 2007 IP
  3. 1000knots

    1000knots Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    
    <?php
    
    error_reporting(E_ALL & ~E_NOTICE);
    
    include("conn.php");
    
    $sid = $_REQUEST['sid'];
    $id = $_REQUEST['id'] ;
    
    $isjc = 0;
    if($sid != 53 && $sid != 54 && $sid !=55){
    $isjc =1;
    }//判断是否为建设进程板块,"1"表示否
    
    if($isjc)include("head1.inc"); 
       
    $sclass_s=@mysql_db_query($db,"select * from $table3 where id=$sid",$link) or die ("数据库更新失败");
    $news_u=@mysql_db_query($db,"update $table4 set view=view+1 where id=$id",$link) or die ("数据库更新失败");
    $news_s=@mysql_db_query($db,"select * from $table4 where id=$id",$link) or die ("数据库更新失败");
    
    $news_num=@mysql_num_rows($news_s);
    if($news_num<=0) {
       echo "<script>alert(\"此ID号对应的内容可能已被管理员删除!\");history.back();</script>";
       exit;
     }
    
    $sclass_r=@mysql_fetch_object($sclass_s);
    $news_r=@mysql_fetch_object($news_s);
    
    ?>
    <?php if($isjc){ 
    echo '<table width="1004" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">';
    }else{
    echo '<table width="775" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">';}
    ?>
      <tr>
        <td width="9" rowspan="6" background="images/00 (2).gif">&nbsp;</td>
        <td height="19" colspan="5">&nbsp;</td>
        <td width="11" rowspan="6" background="images/00 (2).gif">&nbsp;</td>
      </tr>
      <?php if($isjc){ ?>
      <tr>
        <td height="34" colspan="5" align="center"><span class="STYLE11"><?php echo $news_r->title; ?></span></td>
      </tr>
       <?php } ?>
      <tr>
        <td colspan="5" align="center"><img src="images/00 (4).jpg" width="698" height="8" /></td>
      </tr>
       <?php if($isjc){ ?>
      <tr>
        <td width="305" height="30" align="center">&nbsp;</td>
        <td width="125" align="center"><span class="STYLE17">类别:<?php echo $sclass_r->name ?></span></td>
        <td width="161" align="center"><span class="STYLE8"><span class="STYLE14">发布时间</span>:<span class="STYLE18"><?php echo substr($news_r->date,0,10) ?></span></span></td>
        <td width="113" align="center"><span class="STYLE8"><span class="STYLE14">阅读次数</span>:<span class="STYLE18"><?php echo $news_r->view ?></span><span class="STYLE14">次</span></span></td>
        <td width="280" align="center">&nbsp;</td>
      </tr>
       <?php } ?>
      <tr>
        <td colspan="5" align="left" valign="top"><table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
    <?php if($isjc){ ?>
    		<td width="17%">&nbsp;</td>
            <td width="76%"><p><span class="STYLE8"><br />
            </span>
    <?php } ?>
    				<?php
              echo '<p style="line-height: 200%"><font style="font-size: 10pt">'.$news_r->content.'</font>';
            ?></p></td>
            <td width="7%">&nbsp;</td>
          </tr>
        </table>
            <p>&nbsp;</p>
          <p>&nbsp;</p></td>
      </tr>
    <?php if($isjc){ ?>
      <tr>
        <td height="25" colspan="5" align="center"><div align="center"><a href="javascript:window.close()">::关闭窗口::</a></div></td>
      </tr>
    <?php } ?>
    </table>
    <?php
    if($isjc)
    include("foot.inc");
    mysql_close($link);
    
    ?>
    
    PHP:
    function getData()
    {
        var php = new LoadVars();
        php.sendAndLoad("http://localhost/newschool/pic_show.php",php,"POST");
        php.onLoad = function ()
        {
          arrImg=[this.uri1,this.uri2,this.uri3,this.uri4,this.uri5,this.uri6,this.uri7];
         arrUrl=[this.goto1.replace("@","&"),this.goto2.replace("@","&"),this.goto3.replace("@","&"),
    this.goto4.replace("@","&"),this.goto5.replace("@","&"),this.goto6.replace("@","&"),this.goto7.replace("@","&")];
        arrtitle=[this.title1,this.title2,this.title3,this.title4,this.title5,this.title6,this.title7]; 
    
        img1_mc.loadMovie(arrImg[0]);
        img2_mc.loadMovie(arrImg[1]);
    		t1.title.text=arrtitle[0];
    	t2.title.text=arrtitle[1];
    	t3.title.text=arrtitle[2];
    	t4.title.text=arrtitle[3];
    	t5.title.text=arrtitle[4];
    	t6.title.text=arrtitle[5];
    	t7.title.text=arrtitle[6];
    
    	
    	     for(var t=1;t<8;t++)
    	 { 
    	   
    		 eval("t"+t)._visible=false;
    	 }
    
        t1._visible=true;
        linkbutton.onRelease = function ()
        { 
            getURL(arrUrl[0], "_blank");
        };
        btn1_mc.gotoAndStop(2);
        } 
    }// End of the function
    
    Code (markup):

    it's working in html extension, but not php..
    Thanks.
     
    1000knots, Apr 26, 2007 IP