Jump to content

query display problem


dsp77

Recommended Posts

i have this code:

							<?php


						$query1="select * from performancecriteria where project_id = '$project' and type = 1 order by year";
						$result1=mysql_query($query1) or die("can not make query1 ". mysql_error());
						$row = @mysql_fetch_row($result1);
						while( $row )
						{
							echo'<tr>';
							echo'<td style="border: 1px dotted #000;" align="center">';
							echo'&nbsp '.$row[2].'';
							echo'</td>';
							echo'<td style="border: 1px dotted #000; padding:5px;" align="left">';
							echo'Nr. <input style="width:20px;margin-left:46px;margin-bottom:5px;text-align:center;" type="text" name="totalValue'.$row[0].'" id="totalValue'.$row[0].'"  value="'.$row[1].'" maxlength="2"></input><br />';
							echo'Reviste* :   <input style="width:380px;" type="text" name="totalISI'.$row[0].'" id="totalISI'.$row[0].'"  value="'.$row[3].'"></input>';
							echo'</td>';
							echo'</tr>';
							$row = @mysql_fetch_row($result1);
						}
						?>	

it echoes a table with years 2009 2010 2011

echo'&nbsp '.$row[2].'';

and i want to add 2 asteriks just to the year 2010 if i do

echo'&nbsp '.$row[2].'**';

it will appear to all 3 years. please help.

Link to comment
https://forums.phpfreaks.com/topic/195797-query-display-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.