drivle has asked for the wisdom of the Perl Monks concerning the following question:
Many thanks, d.sub_data{ $sql = "SELECT comp, device, model, uniq FROM p_company, p_devices, p_ +model WHERE p_model.uniq = '$model' AND p_model.comp_id = p_company.c +omp_id AND p_model.device_id=p_devices.device_id"; my $sth = $dbh->prepare($sql); $rv=$sth->execute; while ($pointer = $sth->fetchrow_hashref){ $comp = $pointer->{'comp'}; $device = $pointer->{'device'}; $model = $pointer->{'model'}; } } # End sub }
2001-09-06 Edit by Corion : Fixed <BR> in code
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(OT) Re: mysql no records after space
by trantor (Chaplain) on Sep 06, 2001 at 17:03 UTC | |
|
Re: mysql no records after space
by tune (Curate) on Sep 06, 2001 at 16:31 UTC | |
|
Re: mysql no records after space
by ralphie (Friar) on Sep 06, 2001 at 16:40 UTC | |
|
Re: mysql no records after space
by MZSanford (Curate) on Sep 06, 2001 at 15:38 UTC | |
|
Re: mysql no records after space
by drivle (Initiate) on Sep 06, 2001 at 17:50 UTC | |
by bbfu (Curate) on Sep 06, 2001 at 20:03 UTC | |
by Anonymous Monk on Sep 06, 2001 at 22:22 UTC |