...

View Full Version : ASP functions to PHP?



jarv
07-30-2008, 12:24 PM
is there anyway I can make these ASP functions into PHP functions and how would i use them?



Function EncodeSQL(VarVal)
EncodeSQL=Replace(VarVal,"'","`")
End Function

Function DecodeSQL(VarVal)
DecodeSQL=Replace(VarVal,"`","'")
End Function

rafiki
07-30-2008, 01:32 PM
function encode_stuff($str){

$str1 = str_replace("'", "`",$Str);
return $str1;

}


Hope this solves your problem.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum