Leser: 1
![]() |
![]() |
9 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl -w -T
use strict;
use DBI;
my $dbh = DBI->connect("DBI:mysql:database=mail" host=localhost port=3306","user","pass");
my ($id, $user, $pass_md5, $quota, $domain, $admin, $mailuser);
$user = 'admin';
$pass_md5 = 'MD5';
$quota = '1GB';
$domain = 'admin.org';
$admin = '1';
$mailuser = '1';
$dbh->do("INSERT INTO tabelle(user, pass_md5, quota, domain, admin, mailuser) VALUES(?,?,?,?,?,?)", $user, $pass_md5, $quota, $domain, $admin, $mailuser); #Zeile 29
$dbh->disconnect();
DBD::mysql::db do failed: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 at ./nu.pl line 29.
![]() |
![]() |
9 Einträge, 1 Seite |