D
|
DUKE 6/6/2025 |
Hi Anthony, I would use somthing like this. This will set up the database tables. No foreign keys in the database itself. You can then manage the relationships in PHPRunner. -- 1. Members Table |
D
|
DUKE 6/6/2025 |
The SQL code will create the tables. Then sync your project. You can run the sql code in a mysql program like MySQL Workbench. |
A
|
anthonywalker author 6/6/2025 |
Hi DUKE, I Appriciate your reply, im may of not explained my issue properly as I think your code would basically create all new tables? Im happy with the way ours is currently laid out (as its taken some time to get this far with the local FEO) What I need os the the "What firearms are you shooting today?" to only show the items that the member has, for example above only the HOWA, Marlin and Taurus should show for member 002. As you can see from this screen shot the info is correct in the backend "members" sections.
I think that I need a where statement for the firearms list and something to refresh the list when the member number is updated above it? Thanks |
A
|
anthonywalker author 6/6/2025 |
After further messing, I have the following: If I use MemberNo = 002 the "What firearm are you shooting today?" shows the correct entries for member 002 If I use MemberNo = :member_number the "What firearm are you shooting today?" is blank. Im thinking that as Member_Number is empty when the form loads the firearms list is blank, so im guessing I need to "refresh" the firearms list AFTER the member_number has been updated/changed? If this is correct how do I go about doing the refresh only after the Member_Number has been updated? Thanks! |