Dave46
12-30-2006, 12:33 PM
Hi
I am struggling with the following ASP code (using a MYSQL database)
say i have a simple dataset to return i would like to alter the text of one field returned so that for instance field ACTOR1 brings back
Robert_De_Niro instead of Robert De Niro
I.e. altering the spaces to _
but i would also like to bring back the original ACTOR1 text also aswell as the altered ACTOR1 text so it would appear as
<a href="http...../Robert_De-Niro/html">Robert De Niro</a>
I have tried defining it as a new variable but this does not work
actor1altered = actor1
If actor1altered <> "" Then
actor1altered = replace(actor1altered," ","_")
This does not create any code errors but does not return any results when i use <%response.write(actor1altered)%>
so i am confused as i thought this would work
Anybody help me on this please
Thanks You:)
David
I am struggling with the following ASP code (using a MYSQL database)
say i have a simple dataset to return i would like to alter the text of one field returned so that for instance field ACTOR1 brings back
Robert_De_Niro instead of Robert De Niro
I.e. altering the spaces to _
but i would also like to bring back the original ACTOR1 text also aswell as the altered ACTOR1 text so it would appear as
<a href="http...../Robert_De-Niro/html">Robert De Niro</a>
I have tried defining it as a new variable but this does not work
actor1altered = actor1
If actor1altered <> "" Then
actor1altered = replace(actor1altered," ","_")
This does not create any code errors but does not return any results when i use <%response.write(actor1altered)%>
so i am confused as i thought this would work
Anybody help me on this please
Thanks You:)
David