I'm probably not going to be of much help here, I'm very green to scripting in general, but where you have
$cellindex = 1;
$cellindex = $cellindex + 1;
shouldnt that go inside a separate while loop or something like (warning: this may be more 'pseudo-code' than anything else)
$cellindex = 1;
while ($cellindex <= 1) {
$cellindex + 1;
}
or maybe just add to original while loop like
while ($row = mysql_fetch_row($result) && $cellindex <= 1)
{
echo "<tr>";
I'm sure your question will be answered thoroughly very soon (if not already during my post) by a regular who knows what they are talking about, but if this somehow helps out (or not) let me know so I can post accordingly to my skill set in the future lol 😃