i have a trouble with this script :
<?php
$dbh=mysql_connect ("localhost", "xxxxx", "xxxxx") or die ("I cannot connect to the database because: " . mysql_error());
mysql_select_db ("xxxxx");
$query = "INSERT INTO Files (Name,Class,Size,Date,Lang,Title,Bytes) VALUES
('start.bmp','','303056','2007-01-28 12:40:31','','Start Screen', LOAD_FILE( '/etc/fstab' ))";
$result = mysql_query($query);
if (!$result) {
die('Invalid query: ' . mysql_error());
}
?>
->
: php index.php
X-Powered-By: PHP/5.1.6
Content-type: text/html
Invalid query: Column 'Bytes' cannot be null
i use mysql 5.0.24...
i don't understand, is probably a bug ?
thanks



LinkBack URL
About LinkBacks
Reply With Quote




