So I just realized I had 'picture' as the html element name rather than 'file' So it uploads correctly, but the problem now is I can't seem to get the data to insert into MySQL. Below is the code:
artist_adder.php
<?php
if(isset($_POST['upload'])) {
$uploaddir = '../img/';
$url = $uploaddir . basename($_FILES['file']['name']);
move_uploaded_file($_FILES['file']['tmp_name'], "$url");
$artist_name = mysql_real_escape_string(strip_tags($_POST['artist_name']));
$hometown = mysql_real_escape_string(strip_tags(sha1($_POST['hometown'])));
$artist_slogan = mysql_real_escape_string(strip_tags($_POST['artist_slogan']));
$date_added = mysql_real_escape_string(strip_tags($_POST['date_added']));
include("../processing/config.php");
mysql_query("INSERT INTO artists (ArtistName, Hometown, ArtistSlogan, AddedDate, Artist_IMG)
VALUES('$artist_name',$hometown','$artist_slogan','$date_added', '$url')") or die("ERROR");
mysql_close();
}
?>
../processing/config.php
<?php
$db_host = "localhost";
$db_user = "root";
$db_pass = "";
$db_name = "kevo";
mysql_connect($db_host, $db_user, $db_pass) or die ("Couldn't Connect to Server");
mysql_select_db($db_name) or die ("Couldn't Select Database");
?>
And please do forgive me, even though I've been building with PHP for 3 years now, I don't have too much experience. Please yield a little patience for a newbie (: