SQL error on ≠ character entry

All questions will get our full attention
Post Reply
User avatar
indivisible
Posts: 811
Joined: Mon Jan 12, 2009 6:26 pm
What is 3hirty p1us 4orty?: 4
Location: 127.0.0.1

SQL error on ≠ character entry

Post by indivisible » Thu Feb 25, 2010 5:49 pm

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
Image
Cheers BBloke! You're the grease that oils the cogs of Festers!
Props to Cali for all his ETF2L organisation skills!!

User avatar
NUTCRUSHER
Posts: 12
Joined: Tue Mar 25, 2008 1:14 am
What is 3hirty p1us 4orty?: 70

Re: SQL error on ≠ character entry

Post by NUTCRUSHER » Fri Apr 29, 2016 7:54 am

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();
Ger :smoker: :booboo:

User avatar
NUTCRUSHER
Posts: 12
Joined: Tue Mar 25, 2008 1:14 am
What is 3hirty p1us 4orty?: 70

Re: SQL error on ≠ character entry

Post by NUTCRUSHER » Fri Apr 29, 2016 7:54 am

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

Post Reply