OK, got a bit of time to look at this:
your upload script is working fine, but your database entry is not, so try this:
//$titel and $text are set when the form is processed, we need to set $imagelocation
//set $path to the folder where your images are stored
$folder = "set this value to the folder where the files are uploaded to";
$path = $_SERVER['DOCUMENT_ROOT'].$folder;
$filename = $_FILES['userfile']['name'];
$imagelocation = $path.$filename
//add new record to database
$sql = "INSERT INTO front (titel, text, imagelocation) VALUES ('$titel', '$text', '$imagelocation')";
echo $sql; //take this out when it's working
$result = mysql_query($sql) or die("Technical error, ".mysql_error());
then look at the output from the database:
//connect to database
$db = mysql_connect("host", "username", "db_pass"); mysql_select_db($dbname,$db);
//select the approriate records
$sql = "select * from $tablename";
$result = mysql_query($sql)or die("Technical error, ".mysql_error());
while ($myrow = mysql_fetch_array($result))
{
printf("<img src = '%s' align = 'left'>",$myrow["imagelocation"]);
printf("<p>titel: %s</p>", $myrow["titel"]);
printf("<p>text: %s</p>", $myrow["text"]);
}
add in the formatting etc when you've got it working
I just typed this in, it's not been tested so if you get errors, can you post the error and the lines before the error too