in reply to update db problem

It is trivial error:
$cmd = $connString."update [dbname].[record] set record = 7\nGO\nquit\ +n"; $cmd = $connString."select * from [dbname].[record]\nGO\nquit\n"; $result = `$cmd`;
=> $cmd does NOT contain any update, just connstring and select...

Replies are listed 'Best First'.
Re^2: update db problem
by mybend (Initiate) on Jun 15, 2010 at 12:32 UTC
    The "Update" query is one above it
      But it never gets executed.