tramite il seguente codice eseguo una query ed il tutto funziona solo che mi compare il seguente avviso:
"Warning: reset() [function.reset]: Passed variable is not an array or object in C:\programmi\CodeGear\delphi for php\1.0\vcl\dbtables.inc.php on line 56
Warning: Variable passed to each() is not an array or object in C:\programmi\CodeGear\delphi for php\1.0\vcl\dbtables.inc.php on line 57"
why???? grazie
if (strlen($this->Edit1->Text)!=0)
$key1=$this->Edit1->Text;
else
$key1='?';
if (strlen($this->Edit2->Text)!=0)
$key2=$this->Edit2->Text;
else
$key2='?';
if (strlen($this->Secureid->Text)!=0)
$key3=$this->Secureid->Text;
else
$key3='?';
if (strlen($this->Ti->Text)!=0)
$key4=$this->Ti->Text;
else
$key4='?';
if (strlen($this->Pbx->Text)!=0)
$key5=$this->Pbx->Text;
else
$key5='?';
if (strlen($this->Hd->Text)!=0)
$key6=$this->Hd->Text;
else
$key6='?';
if (strlen($this->Vas->Text)!=0)
$key7=$this->Vas->Text;
else
$key7='?';
if (strlen($this->Vpn->Text)!=0)
$key8=$this->Vpn->Text;
else
$key8='?';
if (strlen($this->Gsc->Text)!=0)
$key9=$this->Gsc->Text;
else
$key9='?';
if (strlen($this->Tom->Text)!=0)
$key10=$this->Tom->Text;
else
$key10='?';
if (strlen($this->Ni->Text)!=0)
$key11=$this->Ni->Text;
else
$key11='?';
if (strlen($this->Webping->Text)!=0)
$key12=$this->Webping->Text;
else
$key12='?';
if (strlen($this->Infovista->Text)!=0)
$key13=$this->Infovista->Text;
else
$key13='?';
if (strlen($this->Firewall->Text)!=0)
$key14=$this->Firewall->Text;
else
$key14='?';
if (strlen($this->Wholesale->Text)!=0)
$key15=$this->Wholesale->Text;
else
$key15='?';
if (strlen($this->Remedy->Text)!=0)
$key16=$this->Remedy->Text;
else
$key16='?';
$this->Query1->Active=false;
$this->Query1->Close();
$this->Query1->SQL="INSERT INTO vodafone VALUES ('$key1', '$key2', '$key3', '$key4','$key5','$key6','$key7', '$key8', '$key9', '$key10','$key11','$key12','$key13', '$key14', '$key15','$key16')";
$this->Query1->Active=true;
$this->Query1->Open();
$this->Table1->Refresh();
$this->Query1->Active=false;
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()

Rispondi quotando