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?
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';
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
J' Welcome! I have those moments, too, when I look at something and just can't see it. Glad to help out :-)
ASKER
Issue is fixed. Thanks again.
ASKER
Thanks again Ray :)