⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Sql where not



udayasri
  • profile picture
  • Member

Posted 13 September 2012 - 07:18 AM

HI All,

I want to use sql where not qurey in grocery crud, How can i use it,

Actually I want to get the all the results except first one in a table in my database .

Please help me.

This is little bit urgent.

Thanks.

victor
  • profile picture
  • Member

Posted 13 September 2012 - 07:47 AM

Hi!
try this:
$crud->where('id !=', $id);

udayasri
  • profile picture
  • Member

Posted 13 September 2012 - 10:45 AM

[quote name='victor' timestamp='1347522474' post='3388']
Hi!
try this:
$crud->where('id !=', $id);
[/quote]

It works ........ Thanks a lot :) :) :) :)