$file="html/{$myid[0]['num']}.html";
if(!file_exists($file)) {
$fp = fopen($file, "w");
fwrite($fp, "
<html>
<head>
<title>{$myid[0]['title']}</title>
<meta http-equiv=\"Content-type: text/html; charset=UTF-8\">
</head>
<body>
{$myid[0]['text']}
</body>
</html>
");
fclose ($fp);
}