Re: How to display database table data in a html table.



On Fri, 26 Jan 2007 12:19:58 -0500, McGowan <Boomer84@xxxxxxxxx> wrote:

<?php
$i=0;
while(mysql_fetch_array($headers))
{
?>
<td><?php echo $temp[$i]; ?></td>
<?php
$i++;
}
?>

Don't you actually want this while pointing at $data instead of $headers? Or - get rid of this while entirely and move your $i=0 out one level.

Potentially the blind leading the blind here, as I'm relatively new to PHP as well.

HTH
Jim

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
.



Relevant Pages

  • [FAQ] FAQ Thread (Rev 1)
    ... fix it and then post it. ... Then, if you are coding in PHP 5, pass the context to ... Referer headers, for example, while others can be configured ... store the session id in the ...
    (comp.lang.php)
  • [FAQ] FAQ Thread (Rev 2)
    ... fix it and then post it. ... Then, if you are coding in PHP 5, pass the context to ... Referer headers, for example, while others can be configured ... store the session id in the ...
    (comp.lang.php)
  • [FAQ] FAQ Thread (Rev 3)
    ... fix it and then post it. ... Then, if you are coding in PHP 5, pass the context to ... Referer headers, for example, while others can be configured ... store the session id in the ...
    (comp.lang.php)
  • [FAQ] FAQ Thread (Rev 4)
    ... fix it and then post it. ... Then, if you are coding in PHP 5, pass the context to ... Referer headers, for example, while others can be configured ... store the session id in the ...
    (comp.lang.php)
  • Re: Writing my own mass-email script in PHP
    ... > and put the extra Bcc: headers in the extra headers argument to the PHP ... Putting all recipients in Bcc: is not a good idea because ...
    (comp.lang.php)