Page 1 of 1

SQL error on ≠ character entry

Posted: Thu Feb 25, 2010 5:49 pm
by indivisible
Forum does not like the "not equal to" sign.to.jpg[/img]
[img]http://share.thebant.com/pics/once/not-equal-

Throws out a SQL error on submit (not preview) with the symbol in the "post_text":
Error linky

Re: SQL error on ≠ character entry

Posted: Fri Apr 29, 2016 7:54 am
by NUTCRUSHER
Try this it's worked for me in the past

Here is an example for ya

I think you are looking for something like this:
$foo = MyModel::where('user_id', '=', $user_id)->whereNotIn( 'id', [1, 2, 7])->get();

Re: SQL error on ≠ character entry

Posted: Fri Apr 29, 2016 7:54 am
by NUTCRUSHER
Hi mate,
I think you are looking for something like this:
$foo = MyModel::where('user_id', '=', $user_id)->whereNotIn( 'id', [1, 2, 7])->get();