Update PHP Two-Input Filter

Job ID: 40424320

Budget: $10 – $30 USD

I need a quick adjustment to my current PHP filtering script. The form used to send three parameters (nombre, apellido, apellido2); now it will only send two—nombre and apellido—and the database query must respond accordingly.


if ($nombre1) array_push($condition_list, " nombre = ?");
if ($apellido1) array_push($condition_list, " apellido = ?");
if ($apellido2) array_push($condition_list, " apellido2 = ?");