i have a select query in my php file as next >>
$sql = 'SELECT *
FROM notes
WHERE notes.code_apogee='.$CA.'';
that return some empty rows where i should set a default value << 'en attend'
i used IFNULL as below :
SELECT IFNULL( (SELECT *
FROM notes
WHERE notes.code_apogee='.$CA') ,'en attend');
but an error appear
MySQL a répondu: Documentation
#1241 - Operand should contain 1 column(s)
any help ?? please