Welcome Guest, Not a member yet? Register   Sign In
is there any way to pass mysql's NOW() to mysql ?
#1

[eluser]soupdragon[/eluser]
trying to use active record

is there any way to pass mysql's NOW() to mysql ?
$insertarray['id'] = '';
foreach($sellerdata as $what => $details) {
if($what != 'passconf') {
$insertarray[$what] = $details;
}
}
$insertarray['confirmed'] = 'no';
$insertarray['paid'] = '';
$insertarray['datepaid'] = '';
$insertarray['lastlogin'] = NOW();
$insertarray['login_count'] = '0';
$insertarray['status'] = 'dead';
if($this->db->insert('sellers',$insertarray)) {


if not whats a viable alternative - not wanting to rely on php's time/date functions
thanks


Messages In This Thread
is there any way to pass mysql's NOW() to mysql ? - by El Forum - 03-03-2008, 05:00 AM
is there any way to pass mysql's NOW() to mysql ? - by El Forum - 03-03-2008, 05:10 AM
is there any way to pass mysql's NOW() to mysql ? - by El Forum - 03-03-2008, 05:12 AM
is there any way to pass mysql's NOW() to mysql ? - by El Forum - 04-22-2008, 01:58 PM
is there any way to pass mysql's NOW() to mysql ? - by El Forum - 04-22-2008, 02:13 PM
is there any way to pass mysql's NOW() to mysql ? - by El Forum - 04-22-2008, 02:15 PM
is there any way to pass mysql's NOW() to mysql ? - by El Forum - 04-22-2008, 02:24 PM
is there any way to pass mysql's NOW() to mysql ? - by El Forum - 04-22-2008, 02:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB