I have the following parameter in my UPDATE query.
$consulta->bindValue(':foto', $foto, PDO::PARAM_STR);
What I would like to do is this: If the variable $foto
is blank, how could I pass the same value I have in the database?
I ask this because as the variable is coming in white it is doing the update in the field with no value.