Change PHP mssql to sqlsrv (mssql_fetch_row)
问题 I have this code: $query="Select SUBJECT,NOTES from CAMPNOTIFICATION where TYPE LIKE 'message_blackboard' AND VALIDAFTER <= GETDATE() AND (VALIDUNTIL >= GETDATE() OR VALIDUNTIL IS NULL)"; $encode = array(); //$query = strtr($query, array('{$raum}' => $raum)); $query_result = mssql_query($query); while ($row = mssql_fetch_row($query_result)) { $encode[] = $row; $text = $row[1]; $text = str_replace("<br />","\n",$text); $text = str_replace("<br>","\n",$text); $text = str_replace("<br/>","\n",