Jump to content

[RESOLU]Si une table n'existe pas alors ...


Recommended Posts

Bonjour.

Je cherche une solution pour dire que si une table n'existe pas, mon module mette un message d'erreur
(Mon module se sert d'un module existant qui lui contient la BDD)

$bddexist = 'if not exists (select * FROM `'._DB_PREFIX_.'sekeyword`)';
if (Db::getInstance()->ExecuteS($bddexist))
$this->warning = $this->l('Activer le module "Mots clés" dans les stats');



J'ai essayé ça, mais j'ai pas l'impression que cela fonctionne.

Merci de votre aide

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...