0

Here is my code:

<html>
<!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>
<title>inner_pages</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
.divTagContent {
    background-color: #F9FBFA;
    height: 367px;
    width: 691px;
    overflow: auto;
}
.divScrollLinks {
    background-color: #F9FBFA;
    height: 370px;
    width: 205px;
    overflow: auto;
}
</style>
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
</head>
<center>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/inWelcome_over.jpg','images/inStaff_over.jpg','images/inResources_over.jpg','images/inSign_over.jpg','images/inContact_over.jpg','images/inPrograms_over.jpg')">
<?php
$con = mysql_connect("localhost","traevale_rise","riseshine@ADMIN");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
  mysql_select_db("traevale_rise")or die(mysql_error());?>
<!-- Save for Web Slices (inner_pages.psd) -->
<table id="Table_01" width="961" height="801" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('inWelcome_roll','','images/inWelcome_over.jpg',1)"><img src="images/inWelcome.jpg" width="191" height="68" id="inWelcome_roll"></a></td>
        <td>
            <img src="images/inner_pages_02.jpg" width="1" height="68" alt=""></td>
        <td colspan="5"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('inPrograms_roll','','images/inPrograms_over.jpg',1)"><img src="images/inPrograms.jpg" width="144" height="68" id="inPrograms_roll" /></a></td>
        <td>
            <img src="images/inner_pages_04.jpg" width="1" height="68" alt=""></td>
        <td colspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('inStaff_roll','','images/inStaff_over.jpg',1)"><img src="images/inStaff.jpg" width="112" height="68" id="inStaff_roll"></a></td>
        <td rowspan="2">
            <img src="images/inner_pages_06.jpg" width="1" height="99" alt=""></td>
        <td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('inResources_roll','','images/inResources_over.jpg',1)"><img src="images/inResources.jpg" width="163" height="68" id="inResources_roll"></a></td>
        <td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('inSign_roll','','images/inSign_over.jpg',1)"><img src="images/inSign.jpg" width="130" height="68" id="inSign_roll"></a></td>
        <td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('inContact_roll','','images/inContact_over.jpg',1)"><img src="images/inContact.jpg" width="217" height="68" id="inContact_roll"></a></td>
        <td>
            <img src="images/spacer.gif" width="1" height="68" alt=""></td>
    </tr>
    <tr>
        <td colspan="9" rowspan="3">
            <img src="images/inner_pages_10.jpg" width="434" height="253" alt=""></td>
        <td>
            <img src="images/inner_pages_11.jpg" width="15" height="31" alt=""></td>
        <td colspan="3">
            <img src="images/inner_pages_12.jpg" width="510" height="31" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="31" alt=""></td>
    </tr>
    <tr>
        <td colspan="5"><marquee scrollamount="3" scrolldelay="90" bgcolor="#f9fbfa" width="526" height="195" direction="up" behavior="scroll" loop="-1"><center><h2><font color="#09729f">Announcements
</font></h2><?php
            $result=mysql_query("SELECT announcement FROM Announcements")
            or die(mysql_error());
            $row=mysql_fetch_array($result);            
            echo $row['announcement'];?></center></marquee></td>
        <td>
            <img src="images/spacer.gif" width="1" height="195" alt=""></td>
    </tr>
    <tr>
        <td colspan="5" rowspan="3">
            <img src="images/inner_pages_14.jpg" width="526" height="49" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="27" alt=""></td>
    </tr>
    <tr>
        <td colspan="4">
            <img src="images/inner_pages_15.jpg" width="229" height="17" alt=""></td>
        <td rowspan="3">
            <img src="images/inner_pages_16.jpg" width="20" height="30" alt=""></td>
        <td colspan="4" rowspan="2">
            <img src="images/inner_pages_17.jpg" width="185" height="22" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="17" alt=""></td>
    </tr>
    <tr>
        <td colspan="3" rowspan="5" valign="top"><div class="divScrollLinks"><center><h3><font color="#09729f">
        More Information</font></h3>
        </center></div></td>
        <td rowspan="2">
            <img src="images/inner_pages_19.jpg" width="24" height="13" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="5" alt=""></td>
    </tr>
    <tr>
        <td>
            <img src="images/inner_pages_20.jpg" width="20" height="8" alt=""></td>
        <td colspan="8" rowspan="5" valign="top"><div class="divTagContent"><h3><font color="#09729f">Content will be displayed here</font></h3></div></td>
        <td>
            <img src="images/spacer.gif" width="1" height="8" alt=""></td>
    </tr>
    <tr>
        <td>
            <img src="images/inner_pages_22.jpg" width="24" height="342" alt=""></td>
        <td rowspan="8">
            <img src="images/inner_pages_23.jpg" width="20" height="391" alt=""></td>
        <td rowspan="2">
            <img src="images/inner_pages_24.jpg" width="20" height="344" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="342" alt=""></td>
    </tr>
    <tr>
        <td rowspan="7">
            <img src="images/inner_pages_25.jpg" width="24" height="49" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="2" alt=""></td>
    </tr>
    <tr>
        <td rowspan="6">
            <img src="images/inner_pages_26.jpg" width="20" height="47" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="13" alt=""></td>
    </tr>
    <tr>
        <td colspan="3" rowspan="3">
            <img src="images/inner_pages_27.jpg" width="205" height="19" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="2" alt=""></td>
    </tr>
    <tr>
        <td colspan="8">
            <img src="images/inner_pages_28.jpg" width="691" height="16" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="16" alt=""></td>
    </tr>
    <tr>
        <td colspan="8" rowspan="2">
            <img src="images/inner_pages_29.jpg" width="691" height="15" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
    </tr>
    <tr>
        <td colspan="3">
            <img src="images/inner_pages_30.jpg" width="205" height="14" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="14" alt=""></td>
    </tr>
    <tr>
        <td colspan="3">
            <img src="images/inner_pages_31.jpg" width="205" height="1" alt=""></td>
        <td colspan="8">
            <img src="images/inner_pages_32.jpg" width="691" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
    </tr>
    <tr>
        <td colspan="14">
            <img src="images/inner_pages_33.jpg" alt="" width="960" height="58" usemap="#Map" border="0"></td>
        <td>
            <img src="images/spacer.gif" width="1" height="58" alt=""></td>
    </tr>
    <tr>
        <td>
            <img src="images/spacer.gif" width="191" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="13" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="24" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="20" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="20" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="67" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="97" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="15" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="1" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="163" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="130" height="1" alt=""></td>
        <td>
            <img src="images/spacer.gif" width="217" height="1" alt=""></td>
        <td></td>
    </tr>
</table>
<!-- End Save for Web Slices -->

<map name="Map">
  <area shape="rect" coords="324,19,558,32" href="#" alt="direction to our school">
  <area shape="rect" coords="178,34,328,47" href="#" alt="questions and feedback">
  <area shape="rect" coords="328,31,560,47" href="#" alt="privacy policy">
  <area shape="rect" coords="560,31,650,47" href="#" alt="terms and conditions">
  <area shape="rect" coords="651,30,793,47" href="#" alt="site creator info">
</map>
</body>
</center>
</html>

The troubles I am having is inside here:

<td colspan="5"><marquee scrollamount="3" scrolldelay="90" bgcolor="#f9fbfa" width="526" height="195" direction="up" behavior="scroll" loop="-1"><center><h2><font color="#09729f">Announcements
    </font></h2><?php
                $result=mysql_query("SELECT announcement FROM Announcements")
                or die(mysql_error());
                $row=mysql_fetch_array($result);            
                echo $row['announcement'];?></center></marquee></td>

I am not sure what I am doing wrong but the information stored in the given location will not display inside the marquee at all.

1
Contributor
1
Reply
3
Views
4 Years
Discussion Span
Last Post by GraficRegret
0

ok so forget all that I have it all figured out and working thanks for the time sorry for wasting yours

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.