php script error plz someone help

Discussion in 'PHP' started by sweet17, Jul 25, 2009.

  1. #1
    First error while trying to change password
    1103: Incorrect table name ''<br />DELETE FROM `` WHERE ``=''
    1103: Incorrect table name ''<br />DELETE FROM `` WHERE ``=''
    1103: Incorrect table name ''<br />DELETE FROM `` WHERE ``=''
    1103: Incorrect table name ''<br />DELETE FROM `` WHERE ``=''
    1103: Incorrect table name ''<br />DELETE FROM `` WHERE ``=''
    error_image_upload
    error


    second error while trying to add a wallpaper
    Warning: Invalid argument supplied for foreach() in /home7/imageroc/public_html/includes/ws.php on line 934

    Warning: Cannot modify header information - headers already sent by (output started at /home7/imageroc/public_html/includes/ws.php:934) in /home7/imageroc/public_html/includes/php_functions.php on line 50

    Third error while trying to Delete a wallpaper

    Warning: Invalid argument supplied for foreach() in /home7/imageroc/public_html/includes/ws.php on line 1360

    Warning: Cannot modify header information - headers already sent by (output started at /home7/imageroc/public_html/includes/ws.php:1360) in /home7/imageroc/public_html/includes/php_functions.php on line 50
     
    sweet17, Jul 25, 2009 IP
  2. kingsoflegend

    kingsoflegend Well-Known Member

    Messages:
    202
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    108
    #2
    Can we see the code in question so we can help?
     
    kingsoflegend, Jul 25, 2009 IP
  3. MyCrib

    MyCrib Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You got invalid arg for foreach() because there may be 2 reasons. You don't input data in foreach(). Other reason, your value is not array in foreach. Foreach requires only array not string.

    Incorrect table name ''<br />DELETE FROM `` WHERE ``=''
    there may be 3 reasons. 1st of reasons, you need to correct your table name. 2nd of reasons, you need to check if password encryption support for your php version and mysql version. 3rd of reasons, you need to check your mysql account for permissions to access this table for read, delete, write and other.
     
    MyCrib, Jul 25, 2009 IP
  4. HivelocityDD

    HivelocityDD Peon

    Messages:
    179
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The First error means your table name is not correct. I am not sure why there comes <br /> tags.Hope this is because you copied your html code.

    If not your table name is missing. Before executing the query please echo the query to make sure what its trying to execute. Take the query which echo ed and try to execute it in command line or phpmyadmin what ever you are using

    The second error means the you are not passing an array to the foreach statement. This can be because the return function is null and you are passing this to foreach statement. Just use @foreach and @mysql_query inorder to suppress the errors.
     
    HivelocityDD, Jul 25, 2009 IP
  5. sweet17

    sweet17 Peon

    Messages:
    72
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thank you for your support
     
    sweet17, Jul 26, 2009 IP
  6. tarzon

    tarzon Peon

    Messages:
    108
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    hello

    i can fix this error 100%....

    contact me on:

    Regards
    Tarun Mittal
     
    tarzon, Jul 27, 2009 IP
  7. lotus78

    lotus78 Guest

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Parse error: syntax error, unexpected T_RETURN, expecting T_WHILE in /home/ayl/public_html/xyz.net/includes/thegrid.php.lc on line 445

    any body help me
     
    lotus78, Apr 6, 2011 IP
  8. lotus78

    lotus78 Guest

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    i have wallpaper script with crack but when i install its some prople like ws-1936 line error, _commtes 210 line error some body fix this error plz mesage me
     
    lotus78, Apr 6, 2011 IP