vendredi 3 février 2017

I want to take the first character of use LEFT on laravel.

Maybe anyone can help me?

This is my controller.

$takegolongan = Pekerjaan::select ('LEFT('golongan_jabatan', 1)')->where('cno', '00001222')->get();

echo $takegolongan;

This is the data that I want to take :

enter image description here

output on the screen (error):

enter image description here



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kwpJm7
via IFTTT

Aucun commentaire:

Enregistrer un commentaire