I have input and I want to get the input value and use it in mysql query as where condition within javascript script Like this:
<script>
function get_total_value_row()
{
<?php
$products_sql=mysql_query('select * from product where product_name=a');
$products_row=mysql_fetch_object($products_sql);
?>
</script>
What is the correct value which I should replace it with (a) in where condition to work the javascript script?