image upload

hi, ive a problem to echo the image, i have already done the codes unfortunately, the image doesnt appear,

<?php session_start(); $currentPage = basename($_SERVER['SCRIPT_NAME']); $originalName = $_FILES['upload']['name']; $tmpName = $_FILES['upload']['tmp_name']; $fileSize = $_FILES['upload']['size']; $fileType = $_FILES['upload']['type']; $fp = fopen($tmpName, 'r'); $content = fread($fp, filesize($tmpName)); $content = addslashes($content); fclose($fp); if(!get_magic_quotes_gpc()) { $originalName = addslashes($originalName); } mysql_connect("localhost", "root", "") or die("Cannot connect to db"); mysql_select_db("simplelogin") or die("Cannot connect to db"); $query = "INSERT INTO upload (name, size, type, content ) VALUES ('$originalName', '$fileSize', '$fileType', '$content')"; mysql_query($query) or die('Error, query failed'); echo "File $originalName uploaded"; echo "$images.$upload.$file"; <--this is the on which is not working, ?>

can anyone help me? thanks

where are you getting $images.$upload.$file from,

I can’t see a query to get these variables?

Sponsor our Newsletter | Privacy Policy | Terms of Service