Is it possible to check if the database table is empty if it is empty?
And if it was empty, show false
CodePudding user response:
SELECT EXISTS (SELECT 1 FROM table);
CodePudding user response:
you can check if(empty ($array)) where you get your data