Saturday, July 30, 2011

Re: [phpXperts] mySQL Query with PHP variable is not working

 

Try this...

$sql = "select SUM(payment) as totalPayment from msa_payment WHERE date BETWEEN {$from_date} AND {$to_date}"

$query=mysql_query($sql);


On Sat, Jul 30, 2011 at 4:41 PM, azhar <eng.azharul@gmail.com> wrote:

$query=mysql_query("select SUM(payment) as totalPayment from msa_payment WHERE date BETWEEN '$from_date' AND '$to_date'");




--
:: Md.Shoriful Islam Ronju ::
http://blog.smronju.com

__._,_.___
Recent Activity:
Visit phpXperts website at www.phpxperts.net
.

__,_._,___

No comments: