I’ve taken out the code that you said, Smokey, because it didn’t work.
[php]
Comments
Enter your comment!
<?php
$oneone = "SELECT * FROM feeds WHERE profile='$email' ORDER BY 'commentUID' DESC";
$twotwo = mysql_query($oneone);
$rowrow = mysql_fetch_row($twotwo);
$poster = $rowrow[1];
$feed = $rowrow[2];
$commentid = $rowrow[3];
$commentUID = $rowrow[4];
$banana = mysql_num_rows($twotwo);
if($banana == 0) {
echo “No comments. Be the first to comment?”;
}
else {
while($banana > 0) {
echo “<a href=“profile.php?personID=$commentid”>” . $poster . “” . "
" . $feed . "
";
$banana = $banana - 1;
}
}
?>[/php]
Don’t ask why I did $banana.
The problem I’m getting is when I echo them out, it just echos the first comment the same number of times.
Say that there are 5 different comments, they would all look like this.
X. Ample
First comment!
X. Ample
First comment!
X. Ample
First comment!
X. Ample
First comment!
X. Ample
First comment!
Can I organize them by dates?