mouzak
280
10
Laravel

SQLSTATE[HY093]: Invalid parameter number: mixed named and positional parameters

Posted 1 month ago by mouzak

please help me to correct this query

$data['som']=salaries::selectRaw('(salairebase + sursalaire) as total')->where('salaries.id', $request->id); $data['impot']=DB::table('baremes') -> where($data['som'],'=',('baremes.revenubrut')) ->select('baremes.trimf')->get();

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.