why i cant fetch data from mysql

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • berehneh

    #1

    why i cant fetch data from mysql

    i have set up a site in my local host in my pc
    but when i upload it to site i recieve this error:
    Warning: mysql_fetch_obj ect(): supplied argument is not a valid MySQL
    result resource in /websites/my site name/public_html/my file name on
    line n

    i am winderfull that it work correctly in my pc but dont work in my
    world wide web
    another note is that i add data to my bank too
  • Shawn Wilson

    #2
    Re: why i cant fetch data from mysql

    berehneh wrote:[color=blue]
    >
    > i have set up a site in my local host in my pc
    > but when i upload it to site i recieve this error:
    > Warning: mysql_fetch_obj ect(): supplied argument is not a valid MySQL
    > result resource in /websites/my site name/public_html/my file name on
    > line n
    >
    > i am winderfull that it work correctly in my pc but dont work in my
    > world wide web
    > another note is that i add data to my bank too[/color]

    There's a problem with your query statement. It could be a problem with the
    query itself or with your connection to the db. Look at your query statment and
    remove the "@" symbol, if you have one.

    Put error_reporting (E_ALL); at the beginning of your script.

    That should tell you what line your first error is on, and give you a better
    description of it.

    Regards,
    Shawn
    --
    Shawn Wilson
    shawn@glassgian t.com

    Comment

    Working...