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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.