problem using parentheses in php code?
by shams from LinuxQuestions.org on (#52BAH)
I have php code retrieving arabic text from mysql table with it's id in the end of arabic text, i want to put the id inside parentheses, this is the code:
Code:
$stmt = $pdo->prepare("SELECT * FROM quran_text WHERE sura=?");
$stmt->execute([$sura]);
while ($row = $stmt->fetch(PDO::FETCH_ASSOC))
{
echo ($row['text'] . "\r\n" . "﴾" . $row['id'] . "﴿" . '<br />' . '<br />');
}
?>but this code put the arabic text inside parentheses instead of id, as below:
Code:O(R)UUUUU UUU'OUUO^3UUUU U...UU UUUOU'UUO(C)U UUOUOUO UUUU O(R)UOUUU...U U...UUOUUUU i3/44ithe id=4 should be inside parentheses, any help please?


Code:
$stmt = $pdo->prepare("SELECT * FROM quran_text WHERE sura=?");
$stmt->execute([$sura]);
while ($row = $stmt->fetch(PDO::FETCH_ASSOC))
{
echo ($row['text'] . "\r\n" . "﴾" . $row['id'] . "﴿" . '<br />' . '<br />');
}
?>but this code put the arabic text inside parentheses instead of id, as below:
Code:O(R)UUUUU UUU'OUUO^3UUUU U...UU UUUOU'UUO(C)U UUOUOUO UUUU O(R)UOUUU...U U...UUOUUUU i3/44ithe id=4 should be inside parentheses, any help please?