I'm trying to get a row from the database but when using binding. I know that this doesn't work because the query automatically puts single quotes so it will be like this: select model, magazine, round('name', 2) etc.
This doesn't work of course but how do I get rid of the single quotes?
$merkinformation = DB::select('select Model, Magazine, round(?, 2) as Rondetijd from rondetijden where Merk = ? order by ? limit 3;', [$track, $merk, $track]);
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3e7nU7g
via IFTTT
Aucun commentaire:
Enregistrer un commentaire