I create a datebase named “mp3”. Know I want to create a table called “contents” that will consist of
ID Primary Key
Song Name
Artist
Release Date
Additional Notes
File {contain mp3 file}
I will collect all this info through a PHP form. How do I load all this info into the table called “contents” and can I load mp3 files into an mysql database??
I have never dealt with MP3 file and MYSQL so I need some guidance
this is the PHP form so far
print<<<HTML
<table>
<form action=“upload.php” method=“post” enctype=“multipart/form-data”>
<tr><td><b>MP3 Info:</b></td></tr>
<tr><td>Song Name:</td><td><input type=“text” name=“name”></td></tr>
<tr><td>Artist: </td><td><input type=“text” name=“artist”></td></tr>
<tr><td>Release Date: </td><td> <input type=“text” name=“release_date”></td></tr>
<tr><td>Additional Notes</td></tr>
<tr><td></td><td><TEXTAREA NAME=“note” COLS=40 ROWS=6></TEXTAREA></td></tr>
<tr><td>Select a File to Upload:</td>
<td><input type=“file” name=“mp3_file”>
<input type=“Submit” value=“Upload File”></td></tr>
</form>
</table>