Laravel this is not only a practical framework, it is also a programming style
I am trying to insert data into sql in laravel 5 My Code:
$a1=Input::get('username');
$a2=Input::get('reg_no');
DB::insert("INSERT INTO table1 VALUES($a1,$a2)");
But I am getting SQL syntax error PLEASE HELP.
Aucun commentaire:
Enregistrer un commentaire