Where is the problem

Discussion in 'PHP' started by cynical_tear, Jul 22, 2009.

  1. #1
    It seems There is hell lots of problem in given code... it isn't executing even a bit...

    this is 'upload.php'(no prblem with this one)
    this is 'uploadresult.php' (this is the culprit)
    please tell me the problem in my script.. i know it is full of error.... if u can then please tell me how to tell the user that his 2nd or both file has not been uploaded..
     
    cynical_tear, Jul 22, 2009 IP
  2. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #2
    1. Typo here:
    $albumname = $_POST['albmname'];
    PHP:
    2. Typo here:
    if($ablumname)
    PHP:
    3. Typo here (and should be mysql_error() not mysql_qery):
    
     $insert = mysql_query("INSERT INTO album VALUES('','$userid','$albumname','','','','$date')") or die(mysql_qery());
    PHP:
    4. Put your attributes for the inputs in the HTML around quotes e.g input type="text" name="snap1"
     
    wd_2k6, Jul 22, 2009 IP