Jump to content
  • 0

Cron nie działa


browcu93

Question

Witajcie, otóż mam problem napisałem swój moduł pod omnibusa teraz potrzebuje do crona wrzucić funkcję, lecz nie działa. Robie nowy plik php testowy z łączeniem do bazy danych i cisza.

<?php

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

include_once(dirname(__FILE__) . '/../../init.php');

 

$now = date('Y-m-d');

 

$db = Db::getInstance(_PS_USE_SQL_SLAVE_);

 

$createColumn = "ALTER TABLE `test` ADD `$now` DECIMAL(20,6) NOT NULL DEFAULT '0.000000' AFTER `test`;";

 

$db->executeS($createColumn);


 

?>

 

presta 1.7.8.7

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

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...