Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

$data['startdate'] become ''

$
0
0
Hi Gurus,

I have a simple query that crashed in PHPRunner 10. It have been working for the past versions.

$rs = CustomQuery("SELECT sum(totalamt) AS total_bfamt FROM clubbookdetails WHERE ispaid = 1 and datepaid < '".$data['startdate']."'");
$record = db_fetch_array($rs);
$value = "$".number_format($record['total_bfamt'],2);

The error:
ERROR: invalid input syntax for type date: "" LINE 1: ...famt FROM clubbookdetails WHERE ispaid = 1 and datepaid < '' ^

Any idea where is my mistake?


Thanks.


Kelvin Chua
SINGAPORE

Viewing all articles
Browse latest Browse all 2586

Trending Articles