$str = '\\\\path\\\\file.ext'; $sql = "INSERT INTO news SET text = '$str'"; $result = mysql_query($sql);