Hi all,
I have a problem with upload code ..
Yestarday it was working and today I change it a little bet and it doesn't work .. After that I return the code as its in the yestarday ..
It give me the error that it can't insert the info to the table >>
This is my code ..
<?php
include("connect.php");
$data = addslashes(fread(fopen($file_data, "r"), filesize($file_data)));
$sql = mysql_query("INSERT INTO upload (file_description,file_data,file_name,file_size,file_type)"." VALUES ('$file_description','$file_data','$file_data_name','$file_data_size, ,'$form_data_type')") or die ("could not insert query");
$id= mysql_insert_id();
print "<p>File ID: <b>$id</b><br>";
print "<p>File Name: <b>$file_data_name</b><br>";
print "<p>File Size: <b>$file_data_size</b><br>";
print "<p>File Type: <b>$file_data_type</b><p>";
?>
Can anyone help me, please ?