• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.