Skip to content

Instantly share code, notes, and snippets.

Created December 16, 2014 12:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/32bde3081e96e6a0fbac to your computer and use it in GitHub Desktop.
when ('T')
{
my $sth;
try {
$sth= $bazaDanych.prepare("Select max(id) from $table ");
}
$sth.execute;
my $row;
$row = $sth.fetchrow_arrayref() ;
$row[0]++;
my $query = "Insert into $table Values('$row[0]', '$imie', '$nazwisko', '$telefon', '$typTel', '$miasto', '$ulica' )";
say $query;
#$bazaDanych.do("$query");
say "Zmiany zostały wprowadzone poprawnie!";
say "";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment