I have another question regarding this piece of code.
So, first i check each row to determin the table's header:
if ($row[1]!="")
{
echo "<th>Column 1</th>";
}
..................
then i loop through all the rows with
while($row=mysql_fetch_assoc($rez))
{
and then i have to show only the not null rows so i check again for all columns:
if ($row[1]!="")
{
echo "<td>".$row[1]."</td>";
}
.................
Does someone see a shorter way to write all this? I mean to loop somehow through all rows and columns so that to not check each of them one by one?
Just thinking it's too much code.
Thanks