Netscape will not print html and data retrieved from mysql db (yes Netscape SUCKS) work fine with msie. below is my code:
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
A {
color:AA0000;
}
A:Hover {
color:FF0000;
}
</style>
<script language="JavaScript">
function MM_findObj(n, d) { //v4.0
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[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_nbGroup(event, grpName) { //v3.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args)) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args)) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
if ((nbArr = document[grpName]) != null)
for (i=0; i < nbArr.length; i++) { img=nbArr; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args)) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
}
</script>
<div id="overDiv" style="position:absolute; visibility:hide;z-index:1;"></div>
<SCRIPT LANGUAGE="JavaScript" SRC="../javascripts/overlib.js"></SCRIPT>
</script>
</head>
<body bgcolor="#000000" >
<table cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td width="758" height="103" colspan="3" valign="top"><!-- Fireworks 3.0 Dreamweaver 3.0 target. Created Tue Jan 23 11:25:02 GMT-0700 (Mountain Standard Time) 2001 -->
<div align="center"><img src="../img/logo6.gif" width="694" height="75"></div></td>
</tr>
<tr>
<td width="159" height="423" valign="top"><table border="0" cellpadding="0" cellspacing="0" width="154">
<!-- fwtable fwsrc="mainmenu4.png" fwbase="menu" fwstyle="Dreamweaver" fwdocid = "728985243" fwnested="0" -->
<tr>
<td><img src="../img/spacer.gif" width="26" height="1" border="0"></td>
<td><img src="../img/spacer.gif" width="34" height="1" border="0"></td>
<td><img src="../img/spacer.gif" width="8" height="1" border="0"></td>
<td><img src="../img/spacer.gif" width="2" height="1" border="0"></td>
<td><img src="../img/spacer.gif" width="2" height="1" border="0"></td>
<td><img src="../img/spacer.gif" width="4" height="1" border="0"></td>
<td><img src="../img/spacer.gif" width="4" height="1" border="0"></td>
<td><img src="../img/spacer.gif" width="6" height="1" border="0"></td>
<td><img src="../img/spacer.gif" width="2" height="1" border="0"></td>
<td><img src="../img/spacer.gif" width="3" height="1" border="0"></td>
<td><img src="../img/spacer.gif" width="6" height="1" border="0"></td>
<td><img src="../img/spacer.gif" width="21" height="1" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="1" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="1" border="0"></td>
<td><img src="../img/spacer.gif" width="2" height="1" border="0"></td>
<td><img src="../img/spacer.gif" width="32" height="1" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="1" border="0"></td>
</tr>
<tr>
<td colspan="16"><img name="menu_r1_c1" src="../img/menu_r1_c1.gif" width="154" height="38" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="38" border="0"></td>
</tr>
<tr>
<td rowspan="32"><img name="menu_r2_c1" src="../img/menu_r2_c1.gif" width="26" height="348" border="0"></td>
<td colspan="11"><a href="/photography/redirect.html" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','menu_r2_c2','../img/menu_r2_c2_f2.gif','../img/menu_r2_c2_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','menu_r2_c2','../img/menu_r2_c2_f3.gif',1);" ><img name="menu_r2_c2" src="../img/menu_r2_c2.gif" width="92" height="13" border="0"></a></td>
<td rowspan="4" colspan="4"><img name="menu_r2_c13" src="../img/menu_r2_c13.gif" width="36" height="32" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="13" border="0"></td>
</tr>
<tr>
<td colspan="11"><img name="menu_r3_c2" src="../img/menu_r3_c2.gif" width="92" height="3" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="3" border="0"></td>
</tr>
<tr>
<td colspan="9"><a href="models/" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','menu_r4_c2','../img/menu_r4_c2_f2.gif','../img/menu_r4_c2_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','menu_r4_c2','../img/menu_r4_c2_f3.gif',1);" ><img name="menu_r4_c2" src="../img/menu_r4_c2.gif" width="65" height="11" border="0"></a></td>
<td rowspan="2" colspan="2"><img name="menu_r4_c11" src="../img/menu_r4_c11.gif" width="27" height="16" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="11" border="0"></td>
</tr>
<tr>
<td colspan="9"><img name="menu_r5_c2" src="../img/menu_r5_c2.gif" width="65" height="5" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="5" border="0"></td>
</tr>
<tr>
<td colspan="12"><a href="/clubven/index.php" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','menu_r6_c2','../img/menu_r6_c2_f2.gif','../img/menu_r6_c2_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','menu_r6_c2','../img/menu_r6_c2_f3.gif',1);" ><img name="menu_r6_c2" src="../img/menu_r6_c2.gif" width="93" height="13" border="0"></a></td>
<td rowspan="2" colspan="3"><img name="menu_r6_c14" src="../img/menu_r6_c14.gif" width="35" height="17" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="13" border="0"></td>
</tr>
<tr>
<td colspan="12"><img name="menu_r7_c2" src="../img/menu_r7_c2.gif" width="93" height="4" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="14"><a href="/barrest/index.php" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','menu_r8_c2','../img/menu_r8_c2_f2.gif','../img/menu_r8_c2_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','menu_r8_c2','../img/menu_r8_c2_f3.gif',1);" ><img name="menu_r8_c2" src="../img/menu_r8_c2.gif" width="96" height="12" border="0"></a></td>
<td rowspan="26"><img name="menu_r8_c16" src="../img/menu_r8_c16.gif" width="32" height="299" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="12" border="0"></td>
</tr>
<tr>
<td colspan="14"><img name="menu_r9_c2" src="../img/menu_r9_c2.gif" width="96" height="4" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="7"><a href="/musicbands/index.php" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','menu_r10_c2','../img/menu_r10_c2_f2.gif','../img/menu_r10_c2_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','menu_r10_c2','../img/menu_r10_c2_f3.gif',1);" ><img name="menu_r10_c2" src="../img/menu_r10_c2.gif" width="60" height="11" border="0"></a></td>
<td rowspan="2" colspan="7"><img name="menu_r10_c9" src="../img/menu_r10_c9.gif" width="36" height="15" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="11" border="0"></td>
</tr>
<tr>
<td colspan="7"><img name="menu_r11_c2" src="../img/menu_r11_c2.gif" width="60" height="4" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="11"><a href="/artent/index.php" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','menu_r12_c2','../img/menu_r12_c2_f2.gif','../img/menu_r12_c2_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','menu_r12_c2','../img/menu_r12_c2_f3.gif',1);" ><img name="menu_r12_c2" src="../img/menu_r12_c2.gif" width="92" height="11" border="0"></a></td>
<td rowspan="4" colspan="3"><img name="menu_r12_c13" src="../img/menu_r12_c13.gif" width="4" height="32" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="11" border="0"></td>
</tr>
<tr>
<td colspan="11"><img name="menu_r13_c2" src="../img/menu_r13_c2.gif" width="92" height="4" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="10"><a href="/trans/index.php" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','menu_r14_c2','../img/menu_r14_c2_f2.gif','../img/menu_r14_c2_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','menu_r14_c2','../img/menu_r14_c2_f3.gif',1);" ><img name="menu_r14_c2" src="../img/menu_r14_c2.gif" width="71" height="13" border="0"></a></td>
<td rowspan="2"><img name="menu_r14_c12" src="../img/menu_r14_c12.gif" width="21" height="17" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="13" border="0"></td>
</tr>
<tr>
<td colspan="10"><img name="menu_r15_c2" src="../img/menu_r15_c2.gif" width="71" height="4" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="13"><a href="/adult/index.php" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','menu_r16_c2','../img/menu_r16_c2_f2.gif','../img/menu_r16_c2_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','menu_r16_c2','../img/menu_r16_c2_f3.gif',1);" ><img name="menu_r16_c2" src="../img/menu_r16_c2.gif" width="94" height="11" border="0"></a></td>
<td rowspan="18"><img name="menu_r16_c15" src="../img/menu_r16_c15.gif" width="2" height="236" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="11" border="0"></td>
</tr>
<tr>
<td colspan="13"><img name="menu_r17_c2" src="../img/menu_r17_c2.gif" width="94" height="39" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="39" border="0"></td>
</tr>
<tr>
<td><a href="/forums/index.php" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','menu_r18_c2','../img/menu_r18_c2_f2.gif','../img/menu_r18_c2_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','menu_r18_c2','../img/menu_r18_c2_f3.gif',1);" ><img name="menu_r18_c2" src="../img/menu_r18_c2.gif" width="34" height="11" border="0"></a></td>
<td rowspan="2" colspan="12"><img name="menu_r18_c3" src="../img/menu_r18_c3.gif" width="60" height="15" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="11" border="0"></td>
</tr>
<tr>
<td><img name="menu_r19_c2" src="../img/menu_r19_c2.gif" width="34" height="4" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="4"><a href="forums/forumdisplay.php?forumid=9" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','menu_r20_c2','../img/menu_r20_c2_f2.gif','../img/menu_r20_c2_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','menu_r20_c2','../img/menu_r20_c2_f3.gif',1);" ><img name="menu_r20_c2" src="../img/menu_r20_c2.gif" width="46" height="11" border="0"></a></td>
<td rowspan="4" colspan="9"><img name="menu_r20_c6" src="../img/menu_r20_c6.gif" width="48" height="31" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="11" border="0"></td>
</tr>
<tr>
<td colspan="4"><img name="menu_r21_c2" src="../img/menu_r21_c2.gif" width="46" height="4" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="2"><a href="irc/" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','menu_r22_c2','../img/menu_r22_c2_f2.gif','../img/menu_r22_c2_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','menu_r22_c2','../img/menu_r22_c2_f3.gif',1);" ><img name="menu_r22_c2" src="../img/menu_r22_c2.gif" width="42" height="12" border="0"></a></td>
<td rowspan="2" colspan="2"><img name="menu_r22_c4" src="../img/menu_r22_c4.gif" width="4" height="16" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="12" border="0"></td>
</tr>
<tr>
<td colspan="2"><img name="menu_r23_c2" src="../img/menu_r23_c2.gif" width="42" height="4" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="5"><a href="partysafe/" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','menu_r24_c2','../img/menu_r24_c2_f2.gif','../img/menu_r24_c2_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','menu_r24_c2','../img/menu_r24_c2_f3.gif',1);" ><img name="menu_r24_c2" src="../img/menu_r24_c2.gif" width="50" height="13" border="0"></a></td>
<td rowspan="6" colspan="8"><img name="menu_r24_c7" src="../img/menu_r24_c7.gif" width="44" height="85" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="13" border="0"></td>
</tr>
<tr>
<td colspan="5"><img name="menu_r25_c2" src="../img/menu_r25_c2.gif" width="50" height="39" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="39" border="0"></td>
</tr>
<tr>
<td colspan="2"><a href="about/" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','menu_r26_c2','../img/menu_r26_c2_f2.gif','../img/menu_r26_c2_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','menu_r26_c2','../img/menu_r26_c2_f3.gif',1);" ><img name="menu_r26_c2" src="../img/menu_r26_c2.gif" width="42" height="12" border="0"></a></td>
<td rowspan="2" colspan="3"><img name="menu_r26_c4" src="../img/menu_r26_c4.gif" width="8" height="16" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="12" border="0"></td>
</tr>
<tr>
<td colspan="2"><img name="menu_r27_c2" src="../img/menu_r27_c2.gif" width="42" height="4" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="3"><a href="packages/" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','menu_r28_c2','../img/menu_r28_c2_f2.gif','../img/menu_r28_c2_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','menu_r28_c2','../img/menu_r28_c2_f3.gif',1);" ><img name="menu_r28_c2" src="../img/menu_r28_c2.gif" width="44" height="13" border="0"></a></td>
<td rowspan="2" colspan="2"><img name="menu_r28_c5" src="../img/menu_r28_c5.gif" width="6" height="17" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="13" border="0"></td>
</tr>
<tr>
<td colspan="3"><img name="menu_r29_c2" src="../img/menu_r29_c2.gif" width="44" height="4" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="6"><a href="adversting/" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','menu_r30_c2','../img/menu_r30_c2_f2.gif','../img/menu_r30_c2_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','menu_r30_c2','../img/menu_r30_c2_f3.gif',1);" ><img name="menu_r30_c2" src="../img/menu_r30_c2.gif" width="54" height="13" border="0"></a></td>
<td rowspan="2" colspan="7"><img name="menu_r30_c8" src="../img/menu_r30_c8.gif" width="40" height="17" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="13" border="0"></td>
</tr>
<tr>
<td colspan="6"><img name="menu_r31_c2" src="../img/menu_r31_c2.gif" width="54" height="4" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="8"><a href="opportunities/" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','menu_r32_c2','../img/menu_r32_c2_f2.gif','../img/menu_r32_c2_f4.gif',1);" onClick="MM_nbGroup('down','navbar1','menu_r32_c2','../img/menu_r32_c2_f3.gif',1);" ><img name="menu_r32_c2" src="../img/menu_r32_c2.gif" width="62" height="13" border="0"></a></td>
<td rowspan="2" colspan="5"><img name="menu_r32_c10" src="../img/menu_r32_c10.gif" width="32" height="38" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="13" border="0"></td>
</tr>
<tr>
<td colspan="8"><img name="menu_r33_c2" src="../img/menu_r33_c2.gif" width="62" height="25" border="0"></td>
<td><img src="../img/spacer.gif" width="1" height="25" border="0"></td>
</tr>
</table>
</td>
<td width="8" height="423" valign="top"></td>
<td width="591" height="424" rowspan="2" valign="top" bgcolor="#000000">
<div align="left">
<?
// BarRest.php
$host="localhost" ;
$username="root" ;
$password="baby" ;
$db="sniper" ;
$limit="20" ;
if (empty($offset) || $offset < 0) {
$offset=0;
}
if (empty($index)) $index=0; / This is to count the line index of the results /
mysql_connect($host,$username,$password)
or die("Unable to connect to SQL server");
@mysql_select_db($db)
or die("Unable to select database");
$getrows = mysql_query("SELECT merchant_id FROM merchant
WHERE merchant.category LIKE 'Bar%' OR merchant.category LIKE '%Restaurant%'");
$numrows=mysql_num_rows($getrows);
$result=mysql_query("SELECT merchant_id, name, address1, address2, url, number, package_id, happy_hour, attire, atmosphere FROM merchant
WHERE merchant.category LIKE 'Bar%' OR merchant.category LIKE '%Restaurant%' ORDER BY name LIMIT $offset,$limit")
or die("Can't Perform Query");
$index++ ;
print ("<p>$results");
Leave the next 3 lines of code in. Need for debugging. robert 03/03/2001
#$row = mysql_fetch_array($result) ;
#print_r($row) ;
#exit ;
echo '<center>';
echo '<form><select name=Category>';
$aku = mysql_query("SELECT * FROM merchant_category");
echo "<option value=\"\">Area Of Austin\n";
echo "<option value=\"\">---------------------------\n";
while ($row = mysql_fetch_array($aku)) {
$cate=$row["area"];
echo "<option value=\"$cate\">$cate\n";
}
if ($cate=="") {
print ("$EMPTY_MSG");
}
echo "</select>\n";
echo '<form><select name=Category>';
$aku = mysql_query("SELECT * FROM merchant_category");
echo "<option value=\"\">Category\n";
echo "<option value=\"\">---------------------------\n";
while ($row = mysql_fetch_array($aku)) {
$cate=$row["category"];
echo "<option value=\"$cate\">$cate\n";
}
if ($cate=="") {
print ("$EMPTY_MSG");
}
echo "</select>\n";
echo '<form><select name=Genre>';
$aku = mysql_query("SELECT * FROM genre");
echo "<option value=\"\">Genre\n";
echo "<option value=\"\">---------------------------\n";
while ($row = mysql_fetch_array($aku)) {
$cate=$row["genre_type"];
echo "<option value=\"$cate\">$cate\n";
}
if ($cate=="") {
print ("$EMPTY_MSG");
}
echo "</select>\n";
echo '<form><select name=Age>';
echo "<option value=\"\">Age\n";
echo "<option value=\"\">----------\n";
echo "<option value=\"21+\">21+\n";
echo "<option value=\"18+\">18+\n";
echo "<option value=\"Any\">Any\n";
echo "</select>\n";
echo '</center>';
echo "<p>";
print ("<table border=0 align=center bgcolor=#000000 bordercolor=#000000 bordercolorlight=#CCCCCC bordercolordark=#333333 width=99%>") ;
printf ("<tr bgcolor=\"#FFFFFF\"> <font size=\"1\" color=\"FFFFFF\"><td bgcolor=000000></td><td><b><font color=\"#000000\" face=\"Times New Roman, Times, serif\">Bars/Restaurants</b></td><td color=000000><b><font color=\"#000000\" face=\"Times New Roman, Times, serif\">Features</b></td><td><b><font color=\"#000000\" face=\"Times New Roman, Times, serif\">Addresses</b></td><td><b><font color=\"#000000\" face=\"Times New Roman, Times, serif\">Phone</b></td></tr>");
if ($row = mysql_fetch_array($result)) {
do {
$MID=$row["merchant_id"];
$MerchantName=$row["name"] ;
$Address1=$row["address1"];
$Number=$row["number"] ;
$phone_number=$Number ;
$areac=substr("$phone_number", 0, 3) ;
$prefx=substr("$phone_number", 3, 3) ;
$phone=substr("$phone_number", 6, 4) ;
$formated_phone="(" . $areac . ") " . $prefx . "-" . $phone ;
$package_id=$row["package_id"];
$happy_hour=$row["happy_hour"];
$attire=$row["attire"];
$atmosphere=$row["atmosphere"];
$cal_result = mysql_query ("SELECT * FROM sched, schedule, artist
WHERE sched.merchant_id = '$MID'
AND sched.schedule_id = schedule.schedule_id
AND sched.artist_id = artist.artist_id
ORDER BY schedule.datetime
");
$CAL="";
if ($cal_row = mysql_fetch_array($cal_result)) {
do {
list ($date, $time) = split(' ', $cal_row["datetime"]);
list ($year, $month, $day) = split('-', $date);
$date=date("m-d", mktime(0,0,0,$month,$day,$year));
$time=substr($time, 0, 5);
$day=date("D", mktime(0,0,0,$month,$day,$year));
$ArtistName=substr($cal_row["name"], 0, 30) ;
#$Description=$cal_row["description"];
$SchedID=$cal_row["schedule_id"];
$CAL=$CAL . "$date $time $day, $ArtistName $Description<br>";
} while($cal_row = mysql_fetch_array($cal_result));
} else {$CAL="Sorry, no records were found!";}
$URL=$row["url"] ;
if ($package_id > 1) {
print "<tr bgcolor=\"#1D1D1D\"><td bgcolor=\"000000\"><img src=\"../forums/images/on.gif\">";
printf("<td><font size=2 face=\"Georgia, Times New Roman, Times, serif\" color=\"#FFFFFF\"><a href=\"http://%-s\"><font color=\"#FF0000\" face=\"Times New Roman, Times, serif\">%-s</a></font></td><td bgcolor=000000><A HREF=\"javascript:void(0);\" onMouseOver=\"overlib('$happy_hour' , CAPTION, 'Happy Hours')\" onMouseOut=\"nd()\">
<img border=0 src=\"../../img/martini.gif\"></a><A HREF=\"javascript:void(0);\" onMouseOver=\"overlib('$attire' , CAPTION, 'Required Attire')\" onMouseOut=\"nd()\"><img border=0 src=\"../../img/attire.gif\"></a>
<A HREF=\"javascript:void(0);\" onMouseOver=\"overlib('$atmosphere' , CAPTION, 'Atmosphere')\" onMouseOut=\"nd()\"><img border=0 src=\"../../img/partyball4.gif\"></a>
<A HREF=\"javascript:void(0);\" onMouseOver=\"overlib('$CAL' , CAPTION, 'Schedule')\" onMouseOut=\"nd()\"><img border=0 src=\"../../img/schedule.gif\"></a>
</td><td>
<font size=2 face=\"Georgia, Times New Roman, Times, serif\" color=FFFFFF>%-s</font></td><td><font size=2 face=\"Georgia, Times New Roman, Times, serif\" color=FFFFFF> %-s</td></font>", $URL, $MerchantName, $Address1, $formated_phone) ;
} else {
print "<tr bgcolor=\"#1D1D1D\"><td bgcolor=\"000000\"><img src=\"../forums/images/off.gif\">";
printf("<td><font size=2 face=\"Georgia, Times New Roman, Times, serif\" color=\"#FFFFFF\"><font color=\"#666666\" face=\"Times New Roman, Times, serif\">%-s</a></font></td><td bgcolor=000000><img src=\"../../img/lowpulse.gif\">
</td><td>
<font size=2 face=\"Georgia, Times New Roman, Times, serif\" color=666666>%-s</font></td><td><font size=2 face=\"Georgia, Times New
Roman, Times, serif\" color=666666> %-s</td></font>", $MerchantName, $Address1, $formated_phone) ;
}
} while($row = mysql_fetch_array($result));
} else {print "Sorry, no records were found!";}
print ("</font>") ;
printf ("<tr bgcolor=\"#FFFFFF\"> <font size=\"2\"><td bgcolor=000000></td><td></td><td></td><td><b> </b></td><td><b> 
</b></td><table align=center><td>");
if ($numrows <= $limit) {
/ Added this statement so if the result shows less that or the
equal ammount of the limit to show nothing at all , to kill
the "2" that was just generated /
}
else {
// Don't display PREV link if on first page
if ($offset!=0) {
$prevoffset=$offset-$limit;
echo "<a onMouseOver=\"window.status='Previous $limit Results'; return true\"; href=\"$PHP_SELF?offset=$prevoffset&index=$prevoffset\"><B>[Previous]</B></a>   ";
} /* I particularly like having the [Previous] on the first page
if it has enough results to display at all with my mod , just helps
set the over all structure of the navigation system its self
so ill just add this to the above if statement */
else echo "<b><font color=666666>[Previous]</font></b>   ";
/* If its not to your likeing simply comment it out ;) */
// Calculate total number of pages in result
$pages = intval($numrows/$limit);
// $pages now contains total number of pages needed unless there is a remainder from division
if ($numrows%$limit) {
// has remainder so add one page
$pages++;
}
// Now loop through the pages to create numbered links
// ex. 1 2 3 4 5 NEXT
for ($i=1;$i<=$pages;$i++) {
// Check if on current page
if (($offset/$limit) == ($i-1)) {
// $i is equal to current page, so don't display a link
echo " <b><font color=666666>$i</font></b> ";
} else {
// $i is NOT the current page, so display a link to page $i
$newoffset=$limit*($i-1);
echo " <a onMouseOver=\"window.status='Page $i Results'; return true\"; href=\"$PHP_SELF?offset=$newoffset&index=$newoffset\"><B>$i</B></a> \n";
}
}
// Check to see if current page is last page
if (!((($offset/$limit)+1)==$pages) && $pages!=1) {
// Not on the last page yet, so display a NEXT Link
$newoffset=$offset+$limit;
echo "    <a onMouseOver=\"window.status='Next $limit Results'; return true\"; href=\"$PHP_SELF?offset=$newoffset&index=$newoffset\"><B>[Next]</B></a><p>\n";
} /* Im doing the same thing here as i did in the [Previous] above */
else echo "   <b><font color=666666>[Next]</font></b>";
}
printf ("</td></table><center><img src=\"../../img/martini.gif\"><font color=#FFFFFF>Happy Hour</font><img src=\"../../img/attire.gif\">
<font color=#FFFFFF>Attire</font><img src=\"../../img/partyball4.gif\"><font color=#FFFFFF>Atmosphere</font><img src=\"../../img/schedule.gif\"><font color=#FFFFFF>Schedule</font><img src=\"../../img/lowpulsel.gif\"><font color=#FFFFFF>Low Pulse</font></center><p><p><table align=center><td align=center><i><font face=\"Georgia, Times New Roman, Times, serif\" size=\"1\" color=\"#FFFFFF\">Hosted
& Produced By:<a href=\"http://www.sniperproductions.com\"> Sniper Productions</a>
2001 © Copyright <a href=\"redirect.html\">AustinNights Network</a> LLC</font></i></td></tr></table><p><p>");
?>
</div>
</td>
</tr>
<tr>
<td width="159" height="1" valign="top"></td>
<td width="8" height="1" valign="top"></td>
</tr>
<tr>
<td width="159" height="1" valign="top"><img width="159" height="1" src="transparent.gif"></td>
<td width="8" height="1" valign="top"><img width="8" height="1" src="transparent.gif"></td>
<td width="591" height="1" valign="top"><img width="591" height="1" src="transparent.gif"></td>
</tr>
</table>
</body>