Answered
convert asp code to php
i am new to php, transferring from asp and would like help in
converting some code i have used with asp?
it is a function code to hilight results from a database search.
this is the code in asp
<%
Function HilightResults(sDataValue, sSearchString)
HilightResults = Replace(UCase(sDataValue), UCase(sSearchString), "<span style='color:red;'>" & UCase(sSearchString) & "</span>")
End Function
%>
<td class="WADAResultsTableCell"><%=HilightResults((WADALABEL1.Fields.Item("Item_number").Value), Request("S_Item_number"))%></td>
thanks for your help
Jim Balthrop
JBWebWorks.com
it is a function code to hilight results from a database search.
this is the code in asp
<%
Function HilightResults(sDataValue, sSearchString)
HilightResults = Replace(UCase(sDataValue), UCase(sSearchString), "<span style='color:red;'>" & UCase(sSearchString) & "</span>")
End Function
%>
<td class="WADAResultsTableCell"><%=HilightResults((WADALABEL1.Fields.Item("Item_number").Value), Request("S_Item_number"))%></td>
thanks for your help
Jim Balthrop
JBWebWorks.com
