Hi, I'm still stuck with some functions in my file.
This one for instance (submits an image information and uploads file), gives me the following error:
Warning; Missing argument...
and it echoes die() " You haven't uploaded any file! "
<?php
function submit_final($filename,$image,$stars,$plot,$poster)
{
$date = date("M d, Y");
$conn = db_connect();
$time = time();
$sql = "insert into imagesdb (filename, image, stars, plot, poster) values ('$filename', '$image', '$stars', '$plot', '$poster')";
$result = mysql_query($sql,$conn);
if (!$result) {
print "Error in database while exec<PRE>$sql</PRE>";
print mysql_error();
exit;
}
if ($poster_name != "")
{
move_uploaded_file("$poster", "/home/wwsite/public_html/images/images/$poster_name") or die("Couldn't Upload Your File.");
} else {
die("You haven't uploaded any file!");
}
?>
I call it from submit_final.php as
<?php
submit_final($filename,$image,$stars,$plot,$poster);
?>
can you give me some feedback on this please... I'm pretty new manipulating this.