Thread MySQL und Perl
(71 answers)
Opened by H3llGhost at 2007-10-14 17:05 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 my $query = " SELECT serverId, game, name, rcon_password, publicaddress FROM hlstats_Servers WHERE address='$address' AND port='$port' "; my $result = &doQuery($query); my $hash_ref; while ($hash_ref = $dbh->selectrow_hashref($result)) { Servers[$hash_ref->{'serverId'}] = $$hash_ref; } Das müsste doch auch gehen oder? |