Closed mridah closed 3 years ago
$value = 'value-to-compare-to';
$database->select()
->from('mytable')
->where(new Conditional('md5("some-salt" + id)', '=', $value))
->execute();
OR
$database->select()
->from('mytable')
->where(new Conditional('md5("some-salt" + id)', '=', new Raw('value-to-compare-to')))
->execute();
suppose I have a table like this:
I want to write the following statement in PDO:
Is this possible ? @FaaPz @kwhat @bmutinda