![]() |
Registry search |
Post Reply ![]() |
Author | |
virtualimage ![]() Newbie ![]() Joined: 06-February-2007 Status: Offline Points: 29 |
![]() ![]() ![]() ![]() ![]() Posted: 16-May-2011 at 3:55pm |
Hi all, Our shoppers are finding the gift registry search function challenging. Basically if any of the fields match - the appropriate registries are returned. Thanks very much in advance for your
help. Cheers, Quinn |
|
![]() |
|
DevDuo ![]() Newbie ![]() Joined: 17-May-2011 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Hi there,
Not sure what version you are using, but you could try the following... in ggg_srcGR.asp remove the last name and registry name rows. Rename the label of the first field (cname) to something like Name: instead of First Name. You can either do this in the language file or inline. In ggg_srcGRb.asp populate cname, clastname, and cregname all with the posted cname... example...
Then change your AND's to OR's for the corresponding variables in the lines where the SQL query is being built, and this should produce an aggregate result set. Always back up your files before modding. The above was not tested, but should work in theory... proceed as such... Take care... Ted Edited by DevDuo - 17-May-2011 at 3:21pm |
|
Website Design - Pittsburgh, PA - DevDuo
|
|
![]() |
|
virtualimage ![]() Newbie ![]() Joined: 06-February-2007 Status: Offline Points: 29 |
![]() ![]() ![]() ![]() ![]() |
Thanks, Ted.
We tried something along those lines but we were receiving every entry from the registry. I'll give it another shot from scratch and post my results. Thanks, again. -Quinn |
|
![]() |
|
DevDuo ![]() Newbie ![]() Joined: 17-May-2011 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Probably just an issue with your use of AND and OR.
You may need to group some conditions, example... WHERE active=1 AND (name='frank' OR lastname='jones') -Ted Edited by DevDuo - 26-May-2011 at 10:47am |
|
Website Design - Pittsburgh, PA - DevDuo
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |