maccaj51
asked on
Php and making up the numbers
Hi Experts,
If this is my query:
$result = mysql_query("SELECT * FROM table where name='alan' ");
while($row = mysql_fetch_array($result) )
{
echo " <tr>
<td>".$row['title']."</td>
</tr>\n";
}
But i must have 6 rows in the table even if there are 4 results... how can I make up the number with blank rows ie. :
echo " <tr>
<td> </td>
</tr>\n";
Thnaks in advance
If this is my query:
$result = mysql_query("SELECT * FROM table where name='alan' ");
while($row = mysql_fetch_array($result)
{
echo " <tr>
<td>".$row['title']."</td>
</tr>\n";
}
But i must have 6 rows in the table even if there are 4 results... how can I make up the number with blank rows ie. :
echo " <tr>
<td> </td>
</tr>\n";
Thnaks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER