I am trying to understand the relational db mod so that, once I "get" it, I can set it up to suit my needs. I have tried to follow JPDeni's relational mod notes (http://www.jpdeni.com/.../Mods/relational.txt) and have set up a db closely resembling her description.
For the moment, the following snippet of code is puzzling me:
# Note that I am using $db_script_url and *not* $db_script_link_url.
print qq|
<tr><td>
<a href="$db_script_url?db=item&uid=$db_uid&id=$rec2{'id'}&view_records=1">$rec2{'Item'}</a>
</td></tr>
|;
}(note: in the above, 'id' is deliberately changed from 'ItemID' as is described in JPDeni's notes; my field name is 'id')
According to her notes, this is suppose to "list the names of the items the user has added to the database, with a link to the full display of the description of the item." While it does indeed list the names of the items, it does so for *all* the items in the item db, not just those added by this user. I would like some guidance what I may have done wrong.
More questions to come. Thanks!
-Andy
ps. Is there a working demo of the relational db mod described in JPDeni's notes? I'd love to actually see how it's suppose to work when complete, not just envision what it's suppose to do.
For the moment, the following snippet of code is puzzling me:
Code:
# Print out the link to the full item record # Note that I am using $db_script_url and *not* $db_script_link_url.
print qq|
<tr><td>
<a href="$db_script_url?db=item&uid=$db_uid&id=$rec2{'id'}&view_records=1">$rec2{'Item'}</a>
</td></tr>
|;
}
According to her notes, this is suppose to "list the names of the items the user has added to the database, with a link to the full display of the description of the item." While it does indeed list the names of the items, it does so for *all* the items in the item db, not just those added by this user. I would like some guidance what I may have done wrong.
More questions to come. Thanks!
-Andy
ps. Is there a working demo of the relational db mod described in JPDeni's notes? I'd love to actually see how it's suppose to work when complete, not just envision what it's suppose to do.