database (Db) should be connection for single record form: 533| if (!isset($this->sc_temp_ShowLanguage)) {$this->sc_temp_ShowLanguage = (isset($_SESSION['ShowLanguage'])) ? $_SESSION['ShowLanguage'] : "";} 534| $this->sc_temp_ShowLanguage = "en"; 535| 536| $nm_select = " SELECT LanguageISOCode FROM Global, Languages WHERE ShowLanguage=LanguageId"; 537| $_SESSION['scriptcase']['sc_sql_ult_comando'] = $nm_select; 538| $_SESSION['scriptcase']['sc_sql_ult_conexao'] = ''; 539| $this->sh = array(); 540| if ($rx = $this->Db->Execute($nm_select)) 541| { 542| $y = 0; 543| $nm_count = $rx->FieldCount(); 544| while (!$rx->EOF) 545| { 546| for ($x = 0; $x < $nm_count; $x++) 547| { 548| $this->sh[$y] [$x] = $rx->fields[$x]; 549| } 550| $y++; 551| $rx->MoveNext(); 552| } 553| $rx->Close(); 554| } 555| elseif (isset($GLOBALS["NM_ERRO_IBASE"]) && $GLOBALS["NM_ERRO_IBASE"] != 1) 556| { 557| $this->sh = false; 558| $this->sh_erro = $this->Db->ErrorMsg(); 559| } 560| ; correct connection for grid: 493| if (!isset($this->sc_temp_ShowLanguage)) {$this->sc_temp_ShowLanguage = (isset($_SESSION['ShowLanguage'])) ? $_SESSION['ShowLanguage'] : "";} 494| $this->sc_temp_ShowLanguage = "en"; 495| 496| $nm_select = " SELECT LanguageISOCode FROM Global, Languages WHERE ShowLanguage=LanguageId"; 497| $_SESSION['scriptcase']['sc_sql_ult_comando'] = $nm_select; 498| $_SESSION['scriptcase']['sc_sql_ult_conexao'] = ''; 499| $this->sh = array(); 500| if ($rx = $this->nm_db_conn_mysql3->Execute($nm_select)) 501| { 502| $y = 0; 503| $nm_count = $rx->FieldCount(); 504| while (!$rx->EOF) 505| { 506| for ($x = 0; $x < $nm_count; $x++) 507| { 508| $this->sh[$y] [$x] = $rx->fields[$x]; 509| } 510| $y++; 511| $rx->MoveNext(); 512| } 513| $rx->Close(); 514| } 515| elseif (isset($GLOBALS["NM_ERRO_IBASE"]) && $GLOBALS["NM_ERRO_IBASE"] != 1) 516| { 517| $this->sh = false; 518| $this->sh_erro = $this->nm_db_conn_mysql3->ErrorMsg(); 519| } 520| ;