% Set objConn = Server.CreateObject("ADODB.Connection") strConnection = "DRIVER={MySQL ODBC 5.1 Driver};SERVER=localhost;DATABASE=cybercom_saddleworth;Uid=cybercom_saddwth;PWD=SAdd134z@" objConn.Open strConnection set getdata = objConn.execute("select * from sadd_pages where page_name='thenews'") function formatme(thestring) tmpString = theString tmpString = replace(tmpString,"’","’") 'tmpString = replace(tmpString,"'","’") 'tmpString = replace(tmpString,"""",""") tmpString = replace(tmpString,""","'") formatme = tmpString end function %>
|
||||||||||||||||||||||||||||||||||||||||||