Link to home
Start Free TrialLog in
Avatar of maccaj51
maccaj51Flag for Afghanistan

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>&nbsp;</td>
  </tr>\n";


Thnaks in advance
ASKER CERTIFIED SOLUTION
Avatar of Rik-Legger
Rik-Legger
Flag of undefined image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of maccaj51

ASKER

Thank you... Quick, Correct!!! Very helpful!