PHP mysql issue

Discussion in 'PHP' started by cdl512, Jun 27, 2006.

  1. #1
    I am trying to follow a php script from this thread (http://forum.abestweb.com/showthread.php?t=60200&page=1&pp=25) and I keep getting this error,
    Warning: fclose(): supplied argument is not a valid stream resource in /home/fitclub/public_html/store/admin/example.php on line 80
    Example Import Completed Successfully
    can someone help me out?
     
    cdl512, Jun 27, 2006 IP
  2. cdl512

    cdl512 Well-Known Member

    Messages:
    125
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #2
    the import and table were created but I am not sure if it was done correctly
     
    cdl512, Jun 27, 2006 IP
  3. vishwaa

    vishwaa Well-Known Member

    Messages:
    271
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    138
    #3
    Replace the last 2 lines with these lines

    fclose($feed);
    echo "Example Import Completed Successfully";

    and see whether it works.

    Reason: You are trying to close the variable(file name) instead of closing a file handler.

    fclose ($FeedFile); is wrong.
     
    vishwaa, Jun 27, 2006 IP
  4. cdl512

    cdl512 Well-Known Member

    Messages:
    125
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #4
    yea i got it to work up to a point, now were I am getting blob in phpmyadmin instead of getting what is in the column I am getting just numbers.
     
    cdl512, Jun 27, 2006 IP