Is there in PHP something similar to JavaScript\'s:
alert(test || \'Hello\');
So, when test is undefined or null we\'ll see Hello, otherwis
I recently had the very same problem.This is how i solved it:
Your value in the database is in variable $test..so if $test row is empty then echo Not Provided