-----run it but replace
$selectdb = mysql_db_query...
with
echo $query;
see if your values are going through right.
hey i guess the query is ok. heres what it printed..
INSERT INTO userfiles (filename,filedesc,filedate,uid) VALUES (oxide2.jpg,desktop screenshot,CURDATE(),1)
so curdate() isnt going to work until it goes through msql right? so it looks fine to me. but its throwing errors still when i try to connect to the db.
see anything weong with my code at all? its below. thanks
==== o r i gi n a l c o d e =====
mysql_connect(\"localhost\",\"user\",\"pass\");
$query = \"INSERT INTO userfiles (filename,filedesc,filedate,uid) VALUES ($filename_ff,$filedesc_ff,CURDATE(),$uid)\";
$selectdb = mysql_db_query(\"box\",$query);
if (!$selectdb) {
echo \"connection to the database has failed\";
}