',$string); $string = str_replace('\\r', '
',$string); $string = str_replace('\\n\\n', '

',$string); $string = str_replace('\\n\\n\\n', '


',$string); $string = str_replace('\\n', '
',$string); $string = stripslashes($string); $string = str_replace('&#', '&#',$string); return $string; } function connectDB() { return new mysqli("localhost", "admin1234", "admin1234", "urls"); } function closeDB($mysqli) { $mysqli->close(); } function checkParamIos($number) { $mysqli = connectDB(); $mysqli->set_charset("utf8"); $datakeys = $mysqli->query("SELECT * FROM `params` WHERE `number` = '$number'"); $urls = array(); while($row = $datakeys->fetch_assoc()) { $urls = $row; } closeDB($mysqli); return $urls; } ?>