mardi 3 janvier 2017

how to run a query in looping in laravel?

im sory, im noob in laravel. later, im build web just use php native, and i have code like this

$query1= select*from user where id='$id';

while($data1=mysql_fetch_array($query1){

     $query2 = select*from komen where iduser=$data['id'];

}

so to convert to laravel be what. I already read the documentation laravel but did not find



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire