Link to home
Start Free TrialLog in
Avatar of tjyoung
tjyoung

asked on

Trying to create a variable's value, but getting error instead...

Hi,
Trying to create a variable value to use further down in my code. I'm not sure how to express this properly. Currently I get an error:
Syntax error, unexpected ','
How do I get around that?
$sortby = DB::raw('used_vehicles.vehicle_price - used_vehicles.discount'), 'ASC';

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tjyoung
tjyoung

ASKER

Geez I suck lol
Thanks again Ray :)
J' Welcome!  I have those moments, too, when I look at something and just can't see it.  Glad to help out :-)
Avatar of tjyoung

ASKER

Issue is fixed. Thanks again.