in reply to reversing a hash -- printing it
/me sees only posts from jptxs, scratches head...
Umm, glad we could help? =)
BTW, in the future you probably don't want to do what you did in Table 1. Putting a list in a field with commas is pure, unadulterated evil. The database gods will forsake you for such blasphemy.
Many-to-many lookups are best accomplished with cross-tables:
Table1: Act | ... __________ Act1 | ... Act2 | ... Act3 | ... Act4 | ... Table2: id | name _________ 1 | foo 2 | bar 3 | this 6 | that 8 | hey XTable12: Act | id __________ Act1 | 1 Act1 | 2 Act2 | 3 Act2 | 2 Act3 | 6 Act4 | 2 Act4 | 8
Its going to suck if some person comes along behind ya and wants to stick 5 things in that list and there are only 8 chars allowed. =) I should know, I had to fix this for someone once (And we paid them hundreds of thousands of dollars for it... grr...)
--
$you = new YOU;
honk() if $you->love(perl)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: reversing a hash -- printing it
by jptxs (Curate) on Oct 13, 2000 at 17:00 UTC | |
by jeffa (Bishop) on Oct 13, 2000 at 18:02 UTC | |
by jptxs (Curate) on Oct 14, 2000 at 07:39 UTC |