09-13-2016, 05:25 AM
Thank you Mudmin, I did what it said but i get this error http://prntscr.com/ches53 any ideas?
I did the following, I added file etc to the users db
I added this to _join.php
<pre></pre>
I also tried this at the bottom of validate and join.php
<pre></pre>
I did the following, I added file etc to the users db
I added this to _join.php
<pre>
Code:
<div class="col-md-6"> <label>CV</label>
<input type="file" name="file" />
<button type="submit" name="btn-upload">upload</button>
</div>
I also tried this at the bottom of validate and join.php
<pre>
Code:
if(isset($_POST['submit']))
{
$file = rand(1000,100000)."-".$_FILES['file']['name'];
$file_loc = $_FILES['file']['tmp_name'];
$file_size = $_FILES['file']['size'];
$file_type = $_FILES['file']['type'];
$folder="cvs/";
move_uploaded_file($file_loc,$folder.$file);
$sql="INSERT INTO users(file,type,size) VALUES('$file','$file_type','$file_size')";
mysql_query($sql);
}