Forums

PHP

This topic is locked

Can this be done?

Posted 12 Dec 2003 20:25:58
1
has voted
12 Dec 2003 20:25:58 Mike Man posted:
I have this short of code in ASP:
<%
Dim mystring
mystring = Replace(Replace(rstArticle.Fields.Item("Body",VbCrLf,"", Chr(39), "" )
%>

What it does it it calls a field from database and this is the field: rstArticle.Fields.Item("Body"

Okay, my question is, how do I do this on PHP page? What are the codes can be done the same above for ASP?

Please help.

Thanks

Replies

Replied 15 Dec 2003 03:16:55
15 Dec 2003 03:16:55 Phil Shevlin replied:
str_replace is the same as (.asp) Replace

www.phpbuilder.com/manual/function.str-replace.php

Reply to this topic