Jump to content

Recommended Posts

Posted

I've the following script:

Global $sql = _MySQLConnect("vidam2","*********","vidam2","mysql02.combell.com")
            dim $velden[4];
            $velden[0]="pcnaam";
            $velden[1]="frq";
            $velden[2]="hdnr";
            $velden[3]="";

            dim $values[4];
            $values[0]=$pcnaam;
            $values[1]=RegRead("HKEY_CURRENT_USER\SOFTWARE\Record", "tijd");
            $values[2]=$hdnr;
            $values[3]="";          
            _AddRecord($sql, "tblusers", $velden, $values) 
            _MySQLEnd($sql)

The trange thing is:

One my computer, it adds a record, and when it keeps on adding (what it supose to do)

On my other 2 computers, it adds NOTHING,

i've tested it, and i'm shure that _AddRecord($sql, "tblusers", $velden, $values) was been exectued, but none recors has been added!

What did I do wrong?

Posted

I've the following script:

Global $sql = _MySQLConnect("vidam2","*********","vidam2","mysql02.combell.com")
            dim $velden[4];
            $velden[0]="pcnaam";
            $velden[1]="frq";
            $velden[2]="hdnr";
            $velden[3]="";

            dim $values[4];
            $values[0]=$pcnaam;
            $values[1]=RegRead("HKEY_CURRENT_USER\SOFTWARE\Record", "tijd");
            $values[2]=$hdnr;
            $values[3]="";          
            _AddRecord($sql, "tblusers", $velden, $values) 
            _MySQLEnd($sql)

The trange thing is:

One my computer, it adds a record, and when it keeps on adding (what it supose to do)

On my other 2 computers, it adds NOTHING,

i've tested it, and i'm shure that _AddRecord($sql, "tblusers", $velden, $values) was been exectued, but none recors has been added!

What did I do wrong?

Is sql registered on the other computers?
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...