I need to pass a unique variable into the where clause in a Query. I’m not sure how to write it.
This is what I have:
<?php
$pn ='{prod_productNo}';
echo "<h1>$pn</h1>";
?>
<!-- FINGER BOARD -->
{exp:query sql="SELECT DISTINCT field_id_210 AS my_fingerBoard FROM exp_weblog_data WHERE field_id_215='$pn'"}
{/exp:query}