<?php $code = '<?php $code = ""; //444444444 /* $param = "p"; */ print 1; ?>'; $code = preg_replace("|\/\/.*\r\n|", "", $code); $code = preg_replace("|\/\*.*\r\n|", "", $code); $code = ereg_replace("\r\n.*\*\/", "", $code); print $code; ?>
Fatal error: Call to undefined function mysql_create_db() in D:\programs\webserv\www\sql.php on line 8
<?php $dbname = "testbd"; $host = "localhost"; $user = "root"; $password = "root"; $mysqlconnect =mysql_connect($host,$user,$password); if(mysql_create_db($dbname,$mysqlconnect)) { $message = "<br><font color=\"green\">БД успешно создана!</font>"; } else { $message = "<br><font color=\"red\">БД создать не удалось!</font>"; } echo "$message"; ?>