PHP/ CSS Searchable Image Gallery Support Product Page
This topic was archived
File Not Loading
Asked 17 Dec 2004 20:33:07
1
has this question
17 Dec 2004 20:33:07 Mark Sarria posted:
I am having problems, I followed your instructions and have not been able to upload any image file below you will find a copy of my php edit area<-------START------->
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1"
$insertSQL = sprintf("INSERT INTO images (image_title, image_filename, image_keyword) VALUES (%s, %s, %s)",
GetSQLValueString($_POST['image_title'], "text"
GetSQLValueString($_POST['image_file'], "text"
GetSQLValueString($_POST['image_keywords'], "text"
$uploaddir = 'img/front/full-size/';
$filename = $_FILES['image_filename'] ['name'];
$uploadfile = $uploaddir.$_FILES['image_filename'] ['name'];
$msg = '';
if (move_uploaded_file($_FILES['image_filename'] ['tmp_name'], $uploadfile)) {
$msg = 'File uploaded';
$insertSQL = sprintf("INSERT INTO images (image_title, image_filename, image_keyword) VALUES (%s, %s, %s)",
GetSQLValueString($_POST['image_title'], "text"
GetSQLValueString($filename, "text"
GetSQLValueString($_POST['image_keywords'], "text"
mysql_select_db($database_Gallery, $Gallery);
$Result1 = mysql_query($insertSQL, $Gallery) or die(mysql_error());
} else {
$msg = 'This shit doesnt work';
}
}
<------END----->