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