Organizational Research By

Surprising Reserch Topic

boostr.in questions - Question:Get last month index from sql output in codeigniter?


 

$SQL = "SELECT value FROM shpb_control WHERE control_id='bulan'";
$Q = $obj->db->query($SQL);
 
$month_now=$Q->row()->value;
For example, $month_now='02'
 
What is the function in PHP, to get the last month = '01" ?
 
example:
 
$month_now = '02', and $month_previous = '01' ,,
 
asked Sep 13, 2013 in MYSQL by anonymous
edited Sep 12, 2013
0 votes
8 views



Related Hot Questions



Government Jobs Opening


...