I am developing a PHP system with Oracle and to "optimize" an update, I would need to concatenate a variable (with values from 1 to 3) in the name of the variable I will pass in the statement. The variables come from a form, and I need to pass them one by one, without using array.
The following is an excerpt that follows:
$update .="CODIGO = '$produto_1' AND ";
The above example would need to pass something like this, where $passo
would have fixed values (now 1 to 3):
$update .="CODIGO = '$produto_.$passo' AND ";
In this case, you should also pass $produto_1
, then $produto_2
...
Using the point to concatenate did not work. Any suggestions?