<?php
require 'SPMD.class.php';
$Con = new SPMD('mssql:host="127.0.0.1"; user="sa"; pass="123456"; database="Cronjob";');
$Con->bindValue(':Script','generateUsersOnline');
$Con->bindValue(':LastExec','0');
$Con->bindValue(':LastExecStatus','1');
$Con->bindValue(':breakExec','60');
$Con->bindValue(':TotalExec','0');
$Con->bindValue(':Run','0');
$Query = $Con->prepare('
INSERT INTO CronJobTasks
(scriptToExecute,lastExec,lastExecStatus,breakExec,TotalExecutions,IsRun)
VALUES
(:Script,:LastExec,:LastExecStatus,:breakExec,:TotalExec,:Run)');
$Con->execute();
|