3 Replies - 569 Views - Last Post: 29 July 2009 - 01:10 AM

#1 peter yianni  Icon User is offline

  • D.I.C Regular

Reputation: 2
  • View blog
  • Posts: 310
  • Joined: 04-June 09

striping tables

Posted 28 July 2009 - 12:41 AM

i just cant get it work can anyone tell me if i have missed something please heres the sheets


<html>

<head>

<title>Stable Stats</title>
<script src="../Extras/sorttable.js"></script>
<style type="text/css" media="screen">
	  .clsHeads {
	background: transparent;
	width: 100%;
	border-style: none;
	cursor: pointer;
	background-color: #3F0;
	font-weight: bold;
	font-size: 12px;
}
	</style>
	
<link href="Style Sheets/opacy.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet"href="../Extras/script04.css" />
<script type="text/javascript"src="../Extras/jquery.js"></script>
<script type="text/javascript"src="../Extras/script04.js"></script>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<style type="text/css">

<!--

body 
{
	
font-size: 14px;
background-image: url(../Images/grass-natural.jpg);

}

-->

</style>
<link href="../Style Sheets/opacy.css" rel="stylesheet" type="text/css" />
</head>
<body onmouseover="onmouseover()">
<body onload="startTime()">





<table width="100%" border="0" cellspacing="0" cellpadding="0">

	<tr>
	<td><form name="form1" method="post" action="">
	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="stable_stats">
	<tr>

   <td colspan="3">
   <div align="center">
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
   <td nowrap><div align="center"><strong>Stable Stats</strong></div></td>
   </tr>
   </table>
   </div>
   </td>

		 

		<tr>
		<td width="40%" nowrap><div align="right"><strong>stable name</strong></div>		
		<td width="24%" nowrap><div align="center">
		<strong><?php echo $row_Recordset1['stable_name']; ?></strong></div></td>
		<td width="23%" colspan="2" rowspan="3" nowrap><div align="left"></div></td>
		</tr>
		<tr>
		<td nowrap><div align="right"><strong>Email</strong></div></td>
		<td nowrap><div align="center">
		<strong><?php echo $row_Recordset1['user_email']; ?></strong></div></td>
		</tr>
		<tr>
		<td nowrap><div align="right"><strong>country</strong></div></td>
		<td nowrap><div align="center">
		<strong><?php echo $row_Recordset1['country']; ?></strong></div></td>
		</tr>
		</table>
		
		
		</form></td>
	   <table width="100%" border="0" cellspacing="0" cellpadding="0">
	   <tr>
	   <td><form name="form1" method="post" action="">
	   <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="Fonts" id="stable_stats">
	   <tr>

		  <td width="100%"><div align="center">

		  <br>
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
		  <td width="100%" nowrap><div align="center"><strong>Current Horses</strong></div></td>
		  </tr>
		  </table>
		  </div></td>
		 

		<tr>
		<td>
		<table class="sortable" width="100%" border="1" align="center" cellpadding="1" cellspacing="1">
		<tr>

				<td width="15%" bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="NAME" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>

				<td width="5%" bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="AGE" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>

				<td width="5%" bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="GEN" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>

				<td width="5%" bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="BRED" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>

				<td width="5%" bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="XP" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>
 
				<td width="8%" bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="HEALTH" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>
				
				<td width="8%" bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="FITNESS" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>
				
				<td width="5%" bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="RAN" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>

				<td width="5%" bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="WON" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>

				<td width="5%" bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="SHOWN" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>

				<td width="5%" bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="FORM" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>
				<td width="14%" align="center" valign="top" nowrap bgcolor="#66CC00"><input type=button class=clsHeads value="WINNINGS" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>
				
				
 </tr>
 <?php do { ?>
 <tr>

				  
				  <td><a href="../Horse Finance/Horse_history.php?horse=<?php echo $row_horsehistory['name_id']; ?>"><strong><?php echo $row_horsehistory['name_id']; ?></strong></a></td>

				  <td><strong><?php echo $row_horsehistory['age']; ?></strong></td>

				  <td><strong><?php echo $row_horsehistory['gen']; ?></strong></td>

				  <td><strong><?php echo $row_horsehistory['bred']; ?></strong></td>

				  <td><strong><?php echo $row_horsehistory['xp']; ?></strong></td>

				  <td><strong><?php echo $row_horsehistory['medical_condition']; ?></strong></td>
				  
				  <td><strong><?php echo $row_horsehistory['physical_condition']; ?></strong></td>
				  
				  <td><strong><?php echo $row_horsehistory['ran']; ?></strong></td>

				  <td><strong><?php echo $row_horsehistory['won']; ?></strong></strong></td>

				  <td><strong><?php echo $row_horsehistory['shown']; ?></strong></td>

				  <td><strong><?php echo $row_horsehistory['form']; ?></strong></td>

				  <td><strong><?php echo $row_horsehistory['career_earnings']; ?></strong></td>
				  </tr>

			  <?php } while ($row_horsehistory = mysql_fetch_assoc($horsehistory)); ?>
			  </table></td>
			  </tr>

		<tr>
		<td><div align="center">
		<br>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
		<td nowrap><div align="center"><strong>Current Jockeys</strong></div></td>
		</tr>
		</table>
		</div></td>
		</tr>

		<tr>
		<td>
		<table class="sortable" width="100%" border="1" align="center" cellpadding="1" cellspacing="1">
		<tr>

		<td bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="NAME" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>

		 <td bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="AGE" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>

		<td bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="RUN" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>

		 <td bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="WON" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>

		 <td bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="SHOWN" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>

		 <td bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="FORM" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>

		 <td bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="MORAL" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>

		 <td bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="RATING" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>
		 <td bgcolor="#66CC00"><div align="center"><input type=button class=clsHeads value="WINNINGS" onmouseover="ColorIt(this,1)" onmouseout="ColorIt(this,0)"></td>

 </tr>
 <?php do { ?>
 <tr>

 <td class="setOpacity"><a href="../Jocky Finance/jocky_history.php?jocky=<?php echo $row_JOCKSTATS['Jocky_name']; ?>"><strong><?php echo $row_JOCKSTATS['Jocky_name']; ?></strong></a></td>

				 <td class="setOpacity"><strong><?php echo $row_JOCKSTATS['age']; ?></strong></td>

				 <td class="setOpacity"><strong><?php echo $row_JOCKSTATS['run']; ?></strong></td>

				 <td class="setOpacity"><strong><?php echo $row_JOCKSTATS['won']; ?></strong></td>

				 <td class="setOpacity"><strong><?php echo $row_JOCKSTATS['place']; ?></strong></td>

				 <td class="setOpacity"><strong><?php echo $row_JOCKSTATS['form']; ?></strong></td>

				 <td class="setOpacity"><strong>(<?php echo $row_JOCKSTATS['moral']; ?>)</strong></td>

				 <td class="setOpacity"><strong>(<?php echo $row_JOCKSTATS['rating']; ?>)</strong></td>
				 <td class="setOpacity"><strong><?php echo $row_JOCKSTATS['winnings']; ?></strong></td>

				</tr>

			  <?php } while ($row_JOCKSTATS = mysql_fetch_assoc($JOCKSTATS)); ?>

			</table>			<h2>&nbsp;</h2></td>

		</tr>
		</table>
		</form>
		</td>
		</tr>


</body>

</html>

<?php



mysql_free_result($horsehistory);



mysql_free_result($JOCKSTATS);



mysql_free_result($Recordset1);

?>







script04.css

/* CSS Document */
table {border-collapse: collapse; }

tr.even {background-color: #00FFFF; }

tr.over {background-color: #F00; }

td {

}

th {
color:#0FF;
background-color:#
}


script04.js

$(document).ready(function() {
						   $("tr").mouseover(function() {
													  $(this).addclass("over");
													  });
						   $("tr").mouseover(function() {
													  $(this).removeclass("over");
													  
													  });
						   
													  $(tr:even).addclass("even");
						   });




and the jquery page which has over 4000 lines its the standered page which i downloaded no point in puting that here
there all in the same folder where they get called at top of pagei have the sort working which is a separate js page
just want ot know why the striping is not working if anyone can help please i just cant figure this out

i have cleaned up main page was to may redundent files on there might make it easer to find out whats wrong

This post has been edited by peter yianni: 28 July 2009 - 01:26 AM


Is This A Good Question/Topic? 0
  • +

Replies To: striping tables

#2 girasquid  Icon User is offline

  • Barbarbar
  • member icon

Reputation: 108
  • View blog
  • Posts: 1,825
  • Joined: 03-October 06

Re: striping tables

Posted 28 July 2009 - 07:23 AM

Do you want the tables to gain a background color when you hover over them, or just to zebra stripe them?

If you want a background color when they are hovered over, why aren't you using the :hover pseudo-class in your stylesheet?
Was This Post Helpful? 0
  • +
  • -

#3 gregwhitworth  Icon User is offline

  • Tired.
  • member icon

Reputation: 219
  • View blog
  • Posts: 1,605
  • Joined: 20-January 09

Re: striping tables

Posted 28 July 2009 - 03:17 PM

No matter your situation, zebra striping can best be done using Jquery:

<script type="text/javascript" src="jquery-1.3.2.js"></script>				  
				<script type="text/javascript">
		   $(document).ready(function(){
					   $("table#ads tr:odd").css("background-color", "#f2f2f2");
		   });
</script>


Was This Post Helpful? 0
  • +
  • -

#4 peter yianni  Icon User is offline

  • D.I.C Regular

Reputation: 2
  • View blog
  • Posts: 310
  • Joined: 04-June 09

Re: striping tables

Posted 29 July 2009 - 01:10 AM

View Postgregwhitworth, on 28 Jul, 2009 - 02:17 PM, said:

No matter your situation, zebra striping can best be done using Jquery:

<script type="text/javascript" src="jquery-1.3.2.js"></script>				  
				<script type="text/javascript">
		   $(document).ready(function(){
					   $("table#ads tr:odd").css("background-color", "#f2f2f2");
		   });
</script>




i have tried that still cant get it to work i have changed the sheet a bit might make easyer to work with


<?php 

include("../php-login-script-v1.0/session.php"); 

require_once('../Connections/stablemaster.php');



$user_name = $_SESSION['user'];

$user_id = $_SESSION['uid'];






if (!function_exists("GetSQLValueString")) {

function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 

{

  if (PHP_VERSION < 6) {

	$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  }



  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);



  switch ($theType) {

	case "text":

	  $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";

	  break;	

	case "long":

	case "int":

	  $theValue = ($theValue != "") ? intval($theValue) : "NULL";

	  break;

	case "double":

	  $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";

	  break;

	case "date":

	  $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";

	  break;

	case "defined":

	  $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;

	  break;

  }

  return $theValue;

}

}




mysql_select_db($database_stablemaster, $stablemaster);

$query_Recordset1 = "SELECT stable_name, user_email, country FROM users WHERE id='".$user_id."'";

$Recordset1 = mysql_query($query_Recordset1, $stablemaster) or die(mysql_error());

$row_Recordset1 = mysql_fetch_assoc($Recordset1);

$totalRows_Recordset1 = mysql_num_rows($Recordset1);



mysql_select_db($database_stablemaster, $stablemaster);

$query_horsehistory = "SELECT * FROM horse_stats WHERE stable_name = '".$row_Recordset1['stable_name']."' AND userid='".$user_id."' ORDER BY name_id ASC";

$horsehistory = mysql_query($query_horsehistory, $stablemaster) or die(mysql_error());

$row_horsehistory = mysql_fetch_assoc($horsehistory);

$totalRows_horsehistory = mysql_num_rows($horsehistory);



mysql_select_db($database_stablemaster, $stablemaster);

$query_JOCKSTATS = "SELECT * FROM jocky_stats WHERE stable_name = '".$row_Recordset1['stable_name']."' AND userid='".$user_id."'ORDER BY jocky_name ASC";

$JOCKSTATS = mysql_query($query_JOCKSTATS, $stablemaster) or die(mysql_error());

$row_JOCKSTATS = mysql_fetch_assoc($JOCKSTATS);

$totalRows_JOCKSTATS = mysql_num_rows($JOCKSTATS);



?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">



<html>

<head>

<title>Stable Stats</title>
<script type="text/javascript" src="..Extras/jquery-1.3.2.js"></script>				  
<script type="text/javascript">
$(document).ready(function(){
$("table#ads tr:odd").css("background-color", "#f2f2f2");
});
</script>			  

<script src="../Extras/sorttable.js"></script>
<style type="text/css" media="screen">
	  .clsHeads {
	background: transparent;
	width: 100%;
	border-style: none;
	cursor: pointer;
	background-color: #3F0;
	font-weight: bold;
	font-size: 12px;
}

	</style>

<style type="text/css">

<!--

body 
{
	font-size: 16px;
	background-image: url(../Images/grass-natural.jpg);
	border-color: #000000;
}
.links {
	font-size: 18px;
}
.links {
	color: #0CF;
}
.links td table {
	color: #00F;
}

-->


<!--
.style1 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: bold;
}
.style9 {border-style: none; cursor: pointer; background-color: #3F0; background: transparent; width: 100%;}
.style10 {font-size: 18px}
.style12 {font-size: 16px; }
.style13 {color: #FF0000}
.style14 {font-size: 16px; color: #FF0000; }


-->
</style>

</head>
<body onload="startTime()">

<tr>
  <td class="style1"><form name="form1" method="post" action="">
	<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" id="stable_stats">
	  <tr>
		<td colspan="5"><div align="center">
		<table width="80%" border="0" cellspacing="0" cellpadding="0">
		<tr>
		<td><div align="center">
		<h1>Stable Stats</h1>
		</div></td>
		</tr>
		</table>
		</div></td>
	  <tr>
		<td width="20%" nowrap><div align="right" class="style12">
		<h3 align="center">stable name</h3>
		</div>
		<td width="20%" nowrap>
		<h3 align="left" class="style14"><?php echo $row_Recordset1['stable_name']; ?> </h3>
	   
		<td width="20%" nowrap><div align="right" class="style12">	   
		<h3 align="center">Email</h3>
		</div></td>
		<td width="20%" nowrap><div align="right">
		<h3 align="left" class="style14"><?php echo $row_Recordset1['user_email']; ?></h3>
		</div></td>
		
		<td width="20%" nowrap><div align="left" class="style12">		
		<h3 align="center">country</h3>
		</div></td>
		<td width="20%" nowrap><div align="right">
		<h3 align="left" class="style14"><?php echo $row_Recordset1['country']; ?></h3>
		</div></td>
	  </tr>
	  <tr>
	  </table>
  </form></td>
   
   <tr>
	 <td class="style1">
	   
	   <tr>

		  <td width="100%"><div align="center">

		  <br>
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
		  <td width="100%" nowrap><div align="center">Current Horses</div></td>
		  </tr>
		  </table>
		  </div></td>
		
		<tr>
		<td><div align="center">
		<table width="100%" align="center" cellpadding="0" cellspacing="1" class="sortable">
		<tr>
				
				<td width="14%" bgcolor="#33FF00"><input type=button class=style9 " value="NAME"></td>
	
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="AGE"></td>
	
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="GEN"></td>
	
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="BRED"></td>
	
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="XP"></td>
	 
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="HEA"></td>
					
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="FIT"></td>
				
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="SPI"></td>
				
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="SHO"></td>
				
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="MID"></td>
				
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="DIS"></td>
				
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="GO"></td>
				
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="FI"></td>
				
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="HA"></td>
				
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="HE"></td>
				
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="SO"></td>
				
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="DI"></td>
					
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="RAN"></td>
	
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="WON"></td>
	
				<td width="4%" bgcolor="#33FF00"><input type=button class=style9 " value="SHO"></td>
	
				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 " value="FORM"></td>
				
				<td width="14%" bgcolor="#33FF00"><input type=button class=style9 " value="WIN"></td></tr>


<?php do { ?>

<?php
$horsestats_key = array ('age', 'gen', 'bred', 'xp', 'medical_condition', 'physical_condition', 'sprints', 'short', 'mid', 'distance', 'good', 'firm', 'hard', 'heavy', 'soft', 'dirt', 'ran', 'won', 'shown', 'form', 'career_earnings'); // Add rest 

$the_class = array('setOpacity');
$the_class_num ++;
$the_class_num = $the_class_num % 2;

?>				 
				  
				  <td bgcolor="#66FFCC"><div align="left"><a href="../Horse Finance/Horse_history.php?horse=<?php echo $row_horsehistory['name_id']; ?>"><?php echo $row_horsehistory['name_id']; ?></a></div></td>

<?php	

				 foreach($horsestats_key as $key)				 
{
	echo '<td class="'.$the_class[$the_class_num].'" ><div align="center">'.$row_horsehistory[$key].'</div></td>';
}   
 
?>

</tr>
				
<?php } while ($row_horsehistory = mysql_fetch_assoc($horsehistory)); ?>
			</table>
		  </div></td>
		  </tr>

		<tr>
		<td><div align="center">
		<br>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
		<td nowrap><div align="center">Current Jockeys</div></td>
		</tr>
		</table>
		</div></td>
		</tr>

		<tr>
		<td>
		<table class="sortable" width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
		<tr>

				<td width="14%" bgcolor="#33FF00"><input type=button class=style9 " value="NAME"></td>

				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 " value="AGE"></td>
		   
				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 " value="SPI"></td>
				
				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 " value="SHO"></td>
				
				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 "value="MID"></td>
				
				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 "value="DIS"></td>
				
				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 " value="GO"></td>
				
				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 " value="FI"></td>
				
				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 " value="HA"></td>
				
				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 " value="HE"></td>
				
				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 " value="SO"></td>
				
				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 " value="DI"></td>

				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 " value="RUN"></td>

				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 " value="WON"></td>

				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 " value="SHOWN"></td>

				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 " value="FORM"></td>

				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 " value="MORAL"></td>

				<td width="5%" bgcolor="#33FF00"><input type=button class=style9 " value="RATING"></td>
		 
				<td width="14%" bgcolor="#33FF00"><input type=button class=style9 " value="WINNINGS"></td></tr>


<?php do { ?>
 

<?php

$Jockstats_key = array ('age', 'sprints', 'short','mid', 'distance', 'good','firm', 'hard', 'heavy', 'soft', 'dirt', 'run', 'won', 'place', 'form','moral', 'rating', 'winnings');

 

$the_class = array('setOpacity');
$the_class_num ++;
$the_class_num = $the_class_num % 2;

?>
<tr>

<td nowrap bgcolor="#66FFCC"><a href="../Jocky Finance/jocky_history.php?jocky=<?php echo $row_JOCKSTATS['Jocky_name']; ?>"><?php echo $row_JOCKSTATS['Jocky_name']; ?></a></td>

<?php

 foreach($Jockstats_key as $key)
{
	echo '<td class="'.$the_class[$the_class_num].'" ><div align="center">'.$row_JOCKSTATS[$key].'</div></td>';
}
?>
</tr>

<?php } while ($row_JOCKSTATS = mysql_fetch_assoc($JOCKSTATS)); ?>

</table>			
</td>
</tr>
</body>
</html>

<?php



mysql_free_result($horsehistory);



mysql_free_result($JOCKSTATS);



mysql_free_result($Recordset1);

?>






RESOLVED

This post has been edited by peter yianni: 29 July 2009 - 04:25 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1