Leser: 2
![]() |
|< 1 2 3 >| | ![]() |
25 Einträge, 3 Seiten |
1
2
3
4
my $sth = "UPDATE users SET name = ? WHERE id = ?";
@bind_values = ($cgi->param('test'), $id);
$dbh->do($sth, undef, @bind_values) or die DBI::errstr;
1
2
3
4
my $test = $cgi->param('test');
@bind_values = ($test, $id);
$dbh->do($sth, undef, @bind_values) or die DBI::errstr;
@bind_values ($cgi->param('test'), $id);
@bind_values = ($cgi->param('test'), $id);
@bind_values = ($cgi->param('test'), $id);
my @bind_values = (scalar $cgi->param('test'), $id);
QuoteCode: (dl )@bind_values = ($cgi->param('test'), $id);
Im Listenkontext erhält nämlich $bind_values[0] nicht undef sondern die Länge des Array der Parameter test; also 0!
QuoteDoku CGI.pmPass the param() method a single argument to fetch the value of the named parameter. If the parameter is multivalued (e.g. from multiple selections in a scrolling list), you can ask to receive an array. Otherwise the method will return a single value.
QuoteDoku CGI.pmPass the param() method a single argument to fetch the value of the named parameter. If the parameter is multivalued (e.g. from multiple selections in a scrolling list), you can ask to receive an array. Otherwise the method will return a single value.
![]() |
|< 1 2 3 >| | ![]() |
25 Einträge, 3 Seiten |