rendered paste body#!/usr/bin/php -q
<?php
declare(ticks = 1);
if (function_exists('pcntl_signal')) {
pcntl_signal(SIGHUP, SIG_IGN);
}
// Bibliotecas necessarias
include('adodb5/adodb.inc.php');
// CONECTANDO NO MYSQL
$CONN = &ADONewConnection('mysql');
$CONN->SetFetchMode(ADODB_FETCH_ASSOC);
// Dados para conexao
$CONN->PConnect("localhost", "asterisk", "", "suhab");
$CONN->debug = true;
$id = "109";
$RECORDSET = &$CONN->SelectLimit('select * from 003_evento5 where c_eve = '. $id,1);
$teste = &$CONN->ErrorMsg();
if (!$RECORDSET) {
echo(" ########### $teste ############### ");
}
else {
echo(" ########### OK!!!! ############### ");
}
?>