Olá, fiz uma aplicação em lote form_clientes e grid_clientes, isso em um projeto teste, depois marquei e copie para um
novo projeto, aplicação form_clientes abre normalmente agora grid_clientes não abre ocorre seguinte erro:
Parse error: syntax error, unexpected ‘""’ (T_CONSTANT_ENCAPSED_STRING) in C:\Program Files\NetMake\v8\wwwroot\scriptcase\app\Financeiro\grid_clientes\index.php on line 1015
no index.php a linha 1015
function NM_gera_log_insert($orig=“Scriptcase”, $evento="", $texto="")
{
$dt = “’” . date(‘Y-m-d H:i:s’) . “’”;
$usr = isset("") ? “” : “”;
if (in_array(strtolower($this->nm_con_[‘tpbanco’]), $this->nm_bases_access))
{
$dt = “#” . date(‘Y-m-d H:i:s’) . “#”;
}
if (in_array(strtolower($this->nm_con_[‘tpbanco’]), $this->nm_bases_informix))
{
$dt = “EXTEND(” . $dt . “, YEAR TO FRACTION)”;
}
if (in_array(strtolower($this->nm_con_[‘tpbanco’]), $this->nm_bases_access))
{
$comando = "INSERT INTO (inserted_date, username, application, creator, ip_user, action, description) VALUES ($dt, " . $this->nm_db_->qstr($usr) . “, ‘grid_clientes’, ‘$orig’, '” . $SERVER[‘REMOTE_ADDR’] . "’, ‘$evento’, " . $this->nm_db->qstr($texto) . “)”;
}
elseif (in_array(strtolower($this->nm_con_[‘tpbanco’]), $this->nm_bases_sqlite))
{
$comando = "INSERT INTO (id, inserted_date, username, application, creator, ip_user, action, description) VALUES (NULL, $dt, " . $this->nm_db_->qstr($usr) . “, ‘grid_clientes’, ‘$orig’, '” . $SERVER[‘REMOTE_ADDR’] . "’, ‘$evento’, " . $this->nm_db->qstr($texto) . “)”;
}
else
{
$comando = "INSERT INTO (inserted_date, username, application, creator, ip_user, action, description) VALUES ($dt, " . $this->nm_db_->qstr($usr) . “, ‘grid_clientes’, ‘$orig’, '” . $SERVER[‘REMOTE_ADDR’] . "’, ‘$evento’, " . $this->nm_db->qstr($texto) . “)”;
}
$SESSION[‘scriptcase’][‘sc_sql_ult_comando’] = $comando;
$rlog = $this->nm_db->Execute($comando);
if ($rlog === false)
{
$this->Erro->mensagem (FILE, LINE, “banco”, $this->Nm_lang[‘lang_errm_inst’], $this->nm_db_->ErrorMsg());
}
}
}
Como corrigir?
de já agradeço
Leão