I have a function and I would like to call it in the paragraph tag in the echo block. How would I go about doing this?
<?php
include("includes/functions.inc.php");
include_once("includes/dbh.php");
$strSQL = "SELECT * FROM tickets";
$rs = mysqli_query($conn, $strSQL);
while($row = mysqli_fetch_array($rs)) {
echo '<li>
<div class="hk_sup_domian_name">
<p><?php echo checkTicketStatus();?></p>
</div>
<div class="hk_domain_price">
<span class="ex-price">Your box is on its way</span>
<span class="active_price">'.$row['stage'].'</span>
<div class="hk_promot_btn"><a class="hk_btn" href="progress.php">View</a></div>
</div>
</li>';
}
mysqli_close($conn);
?>
I have tried calling it like this and I get the error below.
<p>'checkTicketStatus();'</p>
syntax error, unexpected '$checkTicketStatus' (T_VARIABLE), expecting ',' or ';'