whenever i use this, i'm leaving out one item from the array. in other
words, one row from the table i'm querying won't show up. i'm new at
php, and this is probably a simple thing, but please help of you can.
here's an example that leaves out the most recent submission:
$query = "SELECT topic, message, author, DATE_FORMAT(pos ted, '%M %e,
%Y') AS d FROM messageboard ORDER BY posted DESC";
$result = @mysql_query ($query);
$row = mysql_fetch_arr ay($result, MYSQL_ASSOC);
while ($row = mysql_fetch_arr ay ($result, MYSQL_ASSOC) ) {
echo"<p> {$row['topic']}<br>
{$row['message']}
<br>Posted by {$row['author']} on {$row['d']}
<br>";
}
words, one row from the table i'm querying won't show up. i'm new at
php, and this is probably a simple thing, but please help of you can.
here's an example that leaves out the most recent submission:
$query = "SELECT topic, message, author, DATE_FORMAT(pos ted, '%M %e,
%Y') AS d FROM messageboard ORDER BY posted DESC";
$result = @mysql_query ($query);
$row = mysql_fetch_arr ay($result, MYSQL_ASSOC);
while ($row = mysql_fetch_arr ay ($result, MYSQL_ASSOC) ) {
echo"<p> {$row['topic']}<br>
{$row['message']}
<br>Posted by {$row['author']} on {$row['d']}
<br>";
}
Comment