How to pass the value of php variable in mysql?
<pre><code>$sql="SELECT idtransactiondetails,idtransactionmaster,T.idacledger,acledgername,transactionamount,chequeno from transactiondetails T,acledger L wheak this ere T.idacledger=L.idacledger and idtransactionmaster='".$g."'";
</code></pre>

<p>//when we pass value for idtransactionmaster for example 144, then its work fine but when we pass integer value 144 which is stored in $g then it fails to get value.</p>
