1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    I got this piece of source of which I believe it's correct. Actually it even seems to work but not everytime I try. Normally it just hangs there sticking on the page on which you submitted your forum.

    My question right now is.
    a)Did I do somethingwrong?
    b)Is there a way to built like a sort of uploadstatusindicator?
    c)What could be the bottleneck of it not working? (Not my speed, cause I use a cablemodem which is pretty fast)


    if (copy($userfile, "covers/$userfile_name")) {

    $cover = covers."/".$userfile_name;
    mysql_connect (localhost, nightwork, *);

    mysql_select_db (nightwork);
    mysql_query ("INSERT INTO reviews (band, release, author, date, label, url_label, url_band, cover, format,
    rate, soundclip, sound_url, content, date) VALUES ('$band', '$release', '$author', '$date', '$label', '$url_label', '$url_band', '$cover', '$format',
    '$rate', '$soundclip', '$sound_url', '$content', '$date')

    mysql_connect (localhost, nightwork, *);
    mysql_select_db (nightwork);
    $result = mysql_query ("SELECT * FROM reviews
    WHERE (release = '$release' AND band = '$band')");

    $row = mysql_fetch_array($result);

    Header("Location: review.php3?rid=$row[0]'>");?>
    } else {
    echo "Error: failed to copy file...";
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    Ow, before I forget. Every time I hit submit the files is been uploaded without any problem...

Similar Threads

  1. imagemagick...script running but nothing happening...
    By ralphuk100 in forum PHP Development
    Replies: 0
    Last Post: October 17th, 2003, 05:05 AM
  2. whats happening
    By DarkAcer in forum CPUs
    Replies: 2
    Last Post: October 13th, 2003, 10:55 AM
  3. Javascript Form Validation isn't happening
    By simonmaduro in forum JavaScript Development
    Replies: 4
    Last Post: July 30th, 2003, 11:57 AM
  4. Replies: 2
    Last Post: September 20th, 2001, 03:01 PM
  5. really wierd thing happening
    By alligatorTim in forum PHP Development
    Replies: 4
    Last Post: May 21st, 2001, 03:58 PM

IMN logo majestic logo threadwatch logo seochat tools logo