T
Trillian
In my asp FP web (linked to access db) I have one page where users can input
and/or look up film titles from a drop down to display a film review. The
relevant code is below, where FTLIST is the "name" of the dropdown box with
values. This works fine regardless of what the title contains, i.e. the
apostrophe shown in the second example below poses no problem.
fp_sQry="SELECT * FROM TFQFILMS WHERE (FILMTITLE = '::FTLIST::') ORDER BY
FILMTITLE ASC"
fp_sDefault="FTLIST=''"
On my home page I want to display a certain film review based on a title
that I hard code each week. I have confirmed the apostrophe in "king's" is
the problem.
fp_sQry="SELECT * FROM TFQFILMS WHERE (FILMTITLE = 'ALL THE KING'S MEN
(1949)')"
fp_sDefault="'ALL THE KING'S MEN (1949)'"
How do I code this to make it work? Or would I be better off including
another field in my db "selecting" a particular film and then just running a
query to display it on the home page? Since the look-up seems to work this
seems like a solution.
TIA
and/or look up film titles from a drop down to display a film review. The
relevant code is below, where FTLIST is the "name" of the dropdown box with
values. This works fine regardless of what the title contains, i.e. the
apostrophe shown in the second example below poses no problem.
fp_sQry="SELECT * FROM TFQFILMS WHERE (FILMTITLE = '::FTLIST::') ORDER BY
FILMTITLE ASC"
fp_sDefault="FTLIST=''"
On my home page I want to display a certain film review based on a title
that I hard code each week. I have confirmed the apostrophe in "king's" is
the problem.
fp_sQry="SELECT * FROM TFQFILMS WHERE (FILMTITLE = 'ALL THE KING'S MEN
(1949)')"
fp_sDefault="'ALL THE KING'S MEN (1949)'"
How do I code this to make it work? Or would I be better off including
another field in my db "selecting" a particular film and then just running a
query to display it on the home page? Since the look-up seems to work this
seems like a solution.
TIA