Welcome Guest, Not a member yet? Register   Sign In
Can someone "translate" this in plain English to me, please?
#1

[eluser]developer10[/eluser]
Code:
$update['id'] = (!empty($_POST['id'])) ? $this->input->post('id') : null;

i suppose this line allows the id field to be null. however i need it never to be null. if i remove ": null", it throws
the "unexpected ;" error


Messages In This Thread
Can someone "translate" this in plain English to me, please? - by El Forum - 01-02-2010, 05:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB