If I place text after the question mark in my Prepared Statement, will it cause any issues?
// Build query.
$q2 = 'SELECT m.first_name, c.created_on, c.body, c.status
FROM member AS m
INNER JOIN comment AS c
ON m.id = c.member_id
WHERE c.article_id=?[B] [COLOR="#FF0000"]AND c.status="Approved"';[/COLOR][/B]
As Anthony said, no, it doesn’t matter at all. After all, what if you have a prepared statement with two parameters? Then you’ll always have text after the first question mark.
But did you not try to run the above query before asking your question here?