Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用PHP提取音乐文件细节 插入歌曲 请保护自己免受SQL注入可能的重复,不要使用mysql.*函数。自v5.5版(2013年6月)起,它们就被弃用,自v7.0版(2015年12月)起被删除。而是将or函数与and一起使用。 <html> &l_Php - Fatal编程技术网

用PHP提取音乐文件细节 插入歌曲 请保护自己免受SQL注入可能的重复,不要使用mysql.*函数。自v5.5版(2013年6月)起,它们就被弃用,自v7.0版(2015年12月)起被删除。而是将or函数与and一起使用。 <html> &l

用PHP提取音乐文件细节 插入歌曲 请保护自己免受SQL注入可能的重复,不要使用mysql.*函数。自v5.5版(2013年6月)起,它们就被弃用,自v7.0版(2015年12月)起被删除。而是将or函数与and一起使用。 <html> &l,php,Php,用PHP提取音乐文件细节 插入歌曲 请保护自己免受SQL注入可能的重复,不要使用mysql.*函数。自v5.5版(2013年6月)起,它们就被弃用,自v7.0版(2015年12月)起被删除。而是将or函数与and一起使用。 <html> <head> <title>Insert Song</title> </head> <body> <form action="<?php echo $_SERVER['PHP_

用PHP提取音乐文件细节

插入歌曲

请保护自己免受SQL注入可能的重复,不要使用
mysql.*
函数。自v5.5版(2013年6月)起,它们就被弃用,自v7.0版(2015年12月)起被删除。而是将or函数与and一起使用。
<html>
<head>
<title>Insert Song</title>
</head>
<body>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="POST" 
enctype="multipart/form-data"> 
Select the Song : <input type="file" name="file">
<p><input type="submit" name="submit" value="submit"></p>
</form>
</body>
</html>
<?php
include("database.php");
if(isset($_POST['submit']))
{
     $name = $_FILES['file']['name'];
     echo $name;

     $sql = mysql_query("insert into songs (name) values ('$name')");
     if($sql)
     {
        echo "<br>inserted successfully";
     }
     else
     {
         echo "<br>not";
     }
 }
 ?>