Jump to content

problem to include Db in file php extern in prestashop


Recommended Posts

I have a problem to excute sql from externel php file in prestashop 

 

this si the path of my file php 

modules/test/views/frontend/test.php

and and require the confing.inc.php

 

like that 

require_once(dirname(__FILE__).'/../../../config/config.inc.php');

ad this is the sql qeury

$birthdays =Db::getInstance()->ExecuteS("SELECT * FROM `tes`");
  
  
  foreach($birthdays as $t){
    

  echo $t['p'];  
Edited by bilal2005 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...