Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quotes problem

Status
Not open for further replies.

frosty7700

Programmer
Aug 10, 2001
95
US
I have to retrieve a string from a database that may contain measurements, i.e. yadda yadda 6'2". The problem is that in order to properly display the entire string, I have to put quotes (") around the value tag in the HTML. However, this results in screwing everything up whenever a " is hit in the string. How do I handle this? I know how to handle single-quotes with a Replace(), but what about doubles?
 
I'm not a programmer per say (I'm in the learning process), but what if you hard code in your database the 6'2" and simply pull the variable? would that display what you're after?
 
Nah, the 6'2" is an example. It could be any measurement.
 
Never mind, got it...anyone who's curious here's the solution:

value=&quot;<%=Replace(Text,&quot;&quot;&quot;&quot;,&quot;&quot;&quot;)%>&quot;
 
Er...lemme try that again:

value=&quot;<%=Replace(rsModItem(&quot;Other1&quot;),&quot;&quot;&quot;&quot;,&quot;&quot;&quot;)%>&quot;
 
ARGH...last time

value=&quot;<%=Replace(rsModItem(&quot;Other1&quot;),&quot;&quot;&quot;&quot;,&quot;& quot ;&quot;)%>&quot;

with no spaces before or after quot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top