My database table has name,phone,email etc fields.Now I store particular field data in different variable and pass them.here is my code. I tried it from controller function. what should I do?
$var=DB::select("SELECT * FROM reg where email = '$c_email' and Password = '$c_pass' and type = '$c_type'");
$var2=$var->name;
$var3=$var->phone;
return redirect('farmer')->with('key', $var2)->with('key2', $var3);
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire