בהמשך לשאלתי
אלו הפונקציות שאמורות להחליף סמיילים ותגים בתוך הטקסט. אבל למה אני לא מצליח להפעיל את 2 הפונקציות באותו זמן??? אני כותב:
inserttagas(smilies(text))
function smilies(text) textrep = text set rs=Server.CreateObject("adodb.recordset") sql = "select * from smilies" rs.open sql,c,3,3 do until rs.eof a=rs("id") b=rs("text") textrep=replace(textrep,b,"<img src=´/images/forums/smilies/"&a&".gif´ border=´0´>") rs.movenext loop rs.close text = textrep response.write text end function function inserttagas(text) textrep = text set rs=Server.CreateObject("adodb.recordset") sql = "select * from tags" rs.open sql,c,3,3 do until rs.eof a=rs("what") b=rs("inwhat") textrep=replace(textrep,b,a) rs.movenext loop rs.close text = textrep response.write smilies(text) end function
יש לציין שהפונקציות יעבדו כל אחת בנפרד, אך לא ביחד. בתודה...