Hi I know php basics and that. I've recently rediscovered it and teaching myself new techniques. So please bear with me...
In this task, I'm to upload a MS Word document via php, store it on mysql and retrieve it when needed.
Is this possible? Should a file such as a .doc be stored on the same database as first name, last name, email etc. Or should I store it as a BLOB on a separate database for file uploads? I'm not sure if mysql is able to read every line on a .doc file? Thanks. Are there any examples online for beginners like myself? I've already done the research. Some people say I shouldn't use mysql to store text files, other say I can. I currently have:
<form action="insert.php" method="post">
<label>First Name:</label><input type="text" name="firstname" id="firstname"/><br>
<label>Last Name:</label><input type="text" name="lastname" id="lastname"/><br>
<label>Email:</label><input type="text" name="email" id="email"/><br>
<div><label id="upload">Select file to upload:
<input type="file" id="upload" name="upload"/></label></div><br>
<input type="submit" name=submit value="Submit"/>
</form>