My Query
SELECT POSSESSION.*,PLOT.*,SCHEME_BLOCK.BLOCK
FROM POSSESSION, PLOT, SCHEME_BLOCK
WHERE POSSESSION.PLOT_ID=PLOT.PLOT_ID AND PLOT.PLOT ='10'
AND PLOT.BLOCK_ID = SCHEME_BLOCK.BLOCK_ID AND SCHEME_BLOCK.BLOCK_ID='3'
AND POSSESSION.CREATED_ON between '1420066800' and '1443650400'
MY php code is given as under..
$query = "SELECT " . $_REQUEST['tb'] . ".*,PLOT.*,SCHEME_BLOCK.BLOCK
FROM " . $_REQUEST['tb'] . ", PLOT, SCHEME_BLOCK WHERE " . $_REQUEST['tb'] . ".PLOT_ID=PLOT.PLOT_ID AND PLOT.PLOT ='" . $_REQUEST['ps'] . "'
AND PLOT.BLOCK_ID = SCHEME_BLOCK.BLOCK_ID AND SCHEME_BLOCK.BLOCK_ID='" . $_REQUEST['bid'] . "' AND SCHEME_BLOCK.CREATED_ON between '".strtotime(date('d-M-Y', strtotime($_REQUEST['sdate'])))."' and '".strtotime(date('d-M-Y', strtotime($_REQUEST['edate'])))."'";
While inserting the date I m doing this
$CREATED_ON=date("d-M-Y");
Error:
ORA-01843: not a valid month
01843. 00000 - "not a valid month"
*Cause:
*Action:
Please help me out...how can I get it right ... I m coding in php
Thanks in advance