While loops within while loops and output php?
- by NovacTownCode
I have a while loop to show the replies for a post on my website.
The value for parentID used in the query is $post['postID'] which is an array of details for the post being viewed.
As seen below it outputs the following (each subject is a link to view the full post)
$q = $dbc -> prepare("SELECT * FROM boardposts WHERE parentID = ?");
$q…