Why can't this code not work??
Plz help me!
<head><title>Binary Data abspeichern</title></head>
<body>
<?php
global $HTTP_POST_VARS;
if ($submit) {
$db = mysql_connect("localhost","localhost","") or mysql_die("Unable to connect");
$data = addslashes(fread(fopen($form_data, 'rb'), filesize($form_data)));
@mysql_query("INSERT INTO binary_data.binary_data (description,bin_data,filename,filesize,filetype) VALUES ('$form_description','$data','$form_data_name','$form_data_size','$form_data_type')");
} else {
?>
<form method="post" action="<?php echo $PHP_SELF; ?>" enctype="multipart/form-data">
File Description:<br>
<input type="text" name="form_description" size="40">
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000000">
<br>File to upload/store in database:<br>
<input type="file" name="form_data" size="40">
<p><input type="submit" name="submit" value="submit">
</form>
<?php } ?>
</body>