Page 1 of 1

php code isnt working

Posted: Thu Feb 27, 2003 3:58 pm
by mrjes

Code: Select all

<?php require_once('Connections/breath.php'); ?>
<?php
mysql_select_db($database_breath, $breath);
$query_Recordset1 = "SELECT * FROM diary ORDER BY `date` DESC";
$Recordset1 = mysql_query($query_Recordset1, $breath) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<html>
<head>
<title>Breathtaking Escorts.com</title>
<meta http-equiv="Content-Type" content="text/html;">
<link rel="stylesheet" href="lh.css" type="text/css">
<script language="JavaScript">



<!--//BEGIN Script
function new_window(url) &#123;
link = window.open(url, "Link", "toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=0, width=560, height=300, left=40, top=40");
&#125;
//END Script-->

</script>
<script language="JavaScript">
<!--

function MM_swapImgRestore() &#123; //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a&#1111;i])&&x.oSrc;i++) x.src=x.oSrc;
&#125;

function MM_preloadImages() &#123; //v3.0
  var d=document; if(d.images)&#123; 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&#1111;i].indexOf("#")!=0)&#123; d.MM_p&#1111;j]=new Image; d.MM_p&#1111;j++].src=a&#1111;i];&#125;&#125;
&#125;

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

function MM_swapImage() &#123; //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&#1111;i]))!=null)&#123;document.MM_sr&#1111;j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a&#1111;i+2];&#125;
&#125;
//-->
</script>
</head>
<body bgcolor="#000000" onload="MM_preloadImages('images/homeover.jpg', 'images/aboutover.jpg', 'images/vipover.jpg', 'images/searchover.jpg', 'images/classover.jpg', 'images/diaryover.jpg', 'images/411over.jpg', 'images/chatover.jpg', 'images/oppover.jpg', 'images/shopover.jpg', 'images/btover.jpg', 'images/adverover.jpg', 'images/contactover.jpg', 'images/photogover.jpg', 'images/plasticover.jpg', 'images/hotelover.jpg')" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" text="#FFFFFF">
<table border="0" cellpadding="0" cellspacing="0" width="850" align="center">
  <!-- fwtable fwsrc="Untitled" fwbase="xtrapages.jpg" fwstyle="Generic" fwdocid = "742308039" fwnested=""0" -->
  <tr>
   <td><img src="images/spacer.gif" width="15" height="1" border="0"></td>
   <td><img src="images/spacer.gif" width="101" height="1" border="0"></td>
   <td><img src="images/spacer.gif" width="4" height="1" border="0"></td>
   <td><img src="images/spacer.gif" width="69" height="1" border="0"></td>
   <td><img src="images/spacer.gif" width="64" height="1" border="0"></td>
   <td><img src="images/spacer.gif" width="159" height="1" border="0"></td>
   <td><img src="images/spacer.gif" width="335" height="1" border="0"></td>
   <td><img src="images/spacer.gif" width="103" height="1" border="0"></td>
   <td><img src="images/spacer.gif" width="1" height="1" border="0"></td>
  </tr>

  <tr>
   <td colspan="8"><img name="xtrapages_r1_c1" src="images/xtrapages_r1_c1.jpg" width="850" height="28" border="0"></td>
   <td><img src="images/spacer.gif" width="1" height="28" border="0"></td>
  </tr>
  <tr>
    <td colspan="8"><img name="xtrapages_r2_c1" src="images/xtrapages_r2_c1.jpg" width="850" height="30" border="0"></td>
   <td><img src="images/spacer.gif" width="1" height="30" border="0"></td>
  </tr>
  <tr>
   <td colspan="8"><img name="xtrapages_r3_c1" src="images/xtrapages_r3_c1.jpg" width="850" height="31" border="0"></td>
   <td><img src="images/spacer.gif" width="1" height="31" border="0"></td>
  </tr>
  <tr>
   <td colspan="8"><img name="xtrapages_r4_c1" src="images/xtrapages_r4_c1.jpg" width="850" height="24" border="0"></td>
   <td><img src="images/spacer.gif" width="1" height="24" border="0"></td>
  </tr>
  <tr>
   <td colspan="8"><img name="xtrapages_r5_c1" src="images/xtrapages_r5_c1.jpg" width="850" height="19" border="0"></td>
   <td><img src="images/spacer.gif" width="1" height="19" border="0"></td>
  </tr>
  <tr>
   <td rowspan="20"><img name="xtrapages_r6_c1" src="images/xtrapages_r6_c1.jpg" width="15" height="399" border="0"></td>
   <td rowspan="2" colspan="2"><img name="xtrapages_r6_c2" src="images/xtrapages_r6_c2.jpg" width="105" height="36" border="0"></td>
   <td rowspan="20"><img name="xtrapages_r6_c4" src="images/xtrapages_r6_c4.jpg" width="69" height="399" border="0"></td>
   <td rowspan="20"><img name="xtrapages_r6_c5" src="images/xtrapages_r6_c5.jpg" width="64" height="399" border="0"></td>
   <td colspan="3"><img name="xtrapages_r6_c6" src="images/xtrapages_r6_c6.jpg" width="597" height="11" border="0"></td>
   <td><img src="images/spacer.gif" width="1" height="11" border="0"></td>
  </tr>
  <tr>
    <td rowspan="2"><font face="Verdana, Arial, Helvetica, sans-serif"><b><font color="#FF0000">Diary</font></b></font></td>
   <td rowspan="2"><img name="xtrapages_r7_c7" src="images/xtrapages_r7_c7.jpg" width="335" height="31" border="0"></td>
   <td rowspan="2"><img name="xtrapages_r7_c8" src="images/xtrapages_r7_c8.jpg" width="103" height="31" border="0"></td>
   <td><img src="images/spacer.gif" width="1" height="25" border="0"></td>
  </tr>
  <tr>
    <td rowspan="2"><a href="main.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image67','','images/homeover.jpg',1)"><img name="Image67" border="0" src="images/xtrapages_r8_c2.jpg" width="101" height="15"></a></td>
   <td><img name="xtrapages_r8_c3" src="images/xtrapages_r8_c3.jpg" width="4" height="6" border="0"></td>
   <td><img src="images/spacer.gif" width="1" height="6" border="0"></td>
  </tr>
  <tr>
   <td rowspan="17"><img name="xtrapages_r9_c3" src="images/xtrapages_r9_c3.jpg" width="4" height="357" border="0"></td>
    <td rowspan="17" colspan="2" align="left" valign="top">&nbsp;
      <table  border="0">
        <tr>
          <td width="119">Diary Entry</td>
          <td width="144">Author</td>
        </tr>
        <?php do &#123; ?>
        <?php /*START_PHP_SIRFCIT*/ if ($row_Recordset1&#1111;'status']=="2")&#123; ?>
        <tr>
          <td><?php echo $row_Recordset1&#1111;'title']; ?></td>
          <td><?php echo $row_Recordset1&#1111;'poster']; ?></td>
        </tr>
        <?php &#125; /*END_PHP_SIRFCIT*/ ?>
        <?php &#125; while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
      </table></td>
    <td rowspan="17"><img name="xtrapages_r9_c8" src="images/xtrapages_r9_c8.jpg" width="103" height="357" border="0"></td>
   <td><img src="images/spacer.gif" width="1" height="9" border="0"></td>
  </tr>
  <tr>
    <td><a href="about.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image68','','images/aboutover.jpg',1)"><img name="Image68" border="0" src="images/xtrapages_r10_c2.jpg" width="101" height="11"></a></td>
   <td><img src="images/spacer.gif" width="1" height="11" border="0"></td>
  </tr>
  <tr>
    <td><a href="vip.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image69','','images/vipover.jpg',1)"><img name="Image69" border="0" src="images/xtrapages_r11_c2.jpg" width="101" height="11"></a></td>
   <td><img src="images/spacer.gif" width="1" height="11" border="0"></td>
  </tr>
  <tr>
    <td><a href="search.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image70','','images/searchover.jpg',1)"><img name="Image70" border="0" src="images/xtrapages_r12_c2.jpg" width="101" height="12"></a></td>
   <td><img src="images/spacer.gif" width="1" height="12" border="0"></td>
  </tr>
  <tr>
    <td><a href="info/viewforum.php?f=2" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image71','','images/classover.jpg',1)"><img name="Image71" border="0" src="images/xtrapages_r13_c2.jpg" width="101" height="15"></a></td>
   <td><img src="images/spacer.gif" width="1" height="15" border="0"></td>
  </tr>
  <tr>
    <td><a href="diary.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image72','','images/diaryover.jpg',1)"><img name="Image72" border="0" src="images/xtrapages_r14_c2.jpg" width="101" height="13"></a></td>
   <td><img src="images/spacer.gif" width="1" height="13" border="0"></td>
  </tr>
  <tr>
    <td><a href="info/viewforum.php?f=1" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image73','','images/411over.jpg',1)"><img name="Image73" border="0" src="images/xtrapages_r15_c2.jpg" width="101" height="14"></a></td>
   <td><img src="images/spacer.gif" width="1" height="14" border="0"></td>
  </tr>
  <tr>
    <td><a href="chat/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image74','','images/chatover.jpg',1)"><img name="Image74" border="0" src="images/xtrapages_r16_c2.jpg" width="101" height="14"></a></td>
   <td><img src="images/spacer.gif" width="1" height="14" border="0"></td>
  </tr>
  <tr>
    <td><a href="plastic.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image75','','images/plasticover.jpg',1)"><img name="Image75" border="0" src="images/xtrapages_r17_c2.jpg" width="101" height="12"></a></td>
   <td><img src="images/spacer.gif" width="1" height="12" border="0"></td>
  </tr>
  <tr>
    <td><a href="photog.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image66','','images/photogover.jpg',1)"><img name="Image66" border="0" src="images/xtrapages_r18_c2.jpg" width="101" height="15"></a></td>
   <td><img src="images/spacer.gif" width="1" height="15" border="0"></td>
  </tr>
  <tr>
    <td><a href="opportunities.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image77','','images/oppover.jpg',1)"><img name="Image77" border="0" src="images/xtrapages_r19_c2.jpg" width="101" height="12"></a></td>
   <td><img src="images/spacer.gif" width="1" height="12" border="0"></td>
  </tr>
  <tr>
    <td><a href="shop.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image78','','images/shopover.jpg',1)"><img name="Image78" border="0" src="images/xtrapages_r20_c2.jpg" width="101" height="14"></a></td>
   <td><img src="images/spacer.gif" width="1" height="14" border="0"></td>
  </tr>
  <tr>
    <td><a href="btotm.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image79','','images/btover.jpg',1)"><img name="Image79" border="0" src="images/xtrapages_r21_c2.jpg" width="101" height="28"></a></td>
   <td><img src="images/spacer.gif" width="1" height="28" border="0"></td>
  </tr>
  <tr>
    <td><a href="advertising.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image80','','images/adverover.jpg',1)"><img name="Image80" border="0" src="images/xtrapages_r22_c2.jpg" width="101" height="15"></a></td>
   <td><img src="images/spacer.gif" width="1" height="15" border="0"></td>
  </tr>
  <tr>
    <td><a href="hotels.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image76','','images/hotelover.jpg',1)"><img name="Image76" border="0" src="images/xtrapages_r23_c2.jpg" width="101" height="12"></a></td>
   <td><img src="images/spacer.gif" width="1" height="12" border="0"></td>
  </tr>
  <tr>
    <td><a href="contact.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image82','','images/contactover.jpg',1)"><img name="Image82" border="0" src="images/xtrapages_r24_c2.jpg" width="101" height="16"></a></td>
   <td><img src="images/spacer.gif" width="1" height="16" border="0"></td>
  </tr>
  <tr>
   <td><img name="xtrapages_r25_c2" src="images/xtrapages_r25_c2.jpg" width="101" height="134" border="0"></td>
   <td><img src="images/spacer.gif" width="1" height="134" border="0"></td>
  </tr>


</table>

<div align="center"><font size="1">
  <p class="smallfont">&copy;2002-2004 Breathtaking Escorts.Com<br>
    <a href="javascript:new_window('disc.html')">.Disclaimer</a> </p>
  </font></div>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>

Posted: Thu Feb 27, 2003 5:31 pm
by volka
what's it supposed to do?
And what is it doing?
any error message or warning?
Did you read the sticky threads, esp. viewtopic.php?t=511 ?

Posted: Fri Feb 28, 2003 2:31 am
by twigletmac
Posting code with no explanatory text is pointless, we can't help you if we don't know what's wrong.

Mac

Posted: Fri Feb 28, 2003 11:20 pm
by evilcoder
we're good.... but not that good.

Posted: Sat Mar 01, 2003 10:55 am
by Bill H
I absolutely LOVED the responses from three of my favorite posters.
Where else can you find such courtesy from such expert technicians?