getting Error ,query failed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chitara
    New Member
    • Nov 2006
    • 4

    #1

    getting Error ,query failed

    is there any posibility to block mysql port or someting?

    I am getting "Error ,query failed" during adding any data through the admin panel of that website:-(

    same softwares(php, mysql and IIS) with the same script woking fine in my local server but in the main webserver its giving the above message. More over couldn't edit the data also over there.

    Thats why I am asking, is there any posibility..... ........

    I don't have permission to access the main server. I keep update the website through the adminpanel of that website.


    Can anyone help me please:-D
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    This error really gives no information at all. It could be caused by either a MySQL query error or by an authorization issue in the admin script.

    When it is MySQL you should try to capture the complete error message. Probably the message is generated by a statement like
    Code:
    $var=mysql_query("query" or die ("query error");
    what should be coded is
    Code:
    $var=mysql_query("query" or die ("query error: " . mysql_error());
    showing the real error.

    When it is in the admin script, you'd better check that you have the correct authorizations set for your login id and psw.

    Ronald :cool:

    Comment

    Working...