I have been struggling with this for some time and cant find any solutions that work for me The max image size is 1MB.
Below is my existing SQL statement:
$sql = "INSERT INTO bird(Name,UserID,TypeID,Picture) VALUES ('$_POST[Name]','$row[UserID]','$_POST[Type]','$_POST[Picture]')";
Also my html:
<form method="post" action='submit.php' enctype='multipart/form-data'>
Picture<br>
<input type="file" name="Picture" class="field"/>
<span class="error"><?php echo $PictureErr?></span><p>
<input type="submit" name="Submit" value="Submit" class="button"/><p>
</form>
Have no idea where to even start with the php validation as Imassuming theyll be needed
Note:Before anyone asks, yes it is a requirement