PHP/MySQL connection error

    Date: 12/29/06 (PHP Community)    Keywords: php, mysql, sql

    Anyone have any idea why after establishing a pconnect with my MySQL server previously in the script when I try and run a query later on (without closing the connection) it throws the following error :

    Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\movies_dev\movies.php on line 18

    Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\AppServ\www\movies_dev\movies.php on line 18


    Ignore the line numbers infront of the code behind the cut, I pasted it on a pastebin and it threw it's own line numbers in and I don't have the time to cut them out.



    1.
    // this is the db_fns.php include file
    2.

    3.

    18.

    19.
    //
    20.

    21.
    //this is the main php file:
    22.

    23.
    \n\n\n";
    51.
    // echo "test run 1";
    52.
    echo "

    \n";
    53.
    echo "\n";
    54.
    echo "\n";
    55.
    echo "\n";
    56.
    echo "\n";
    57.
    echo "\n";
    58.
    echo "";
    59.
    }
    60.
    ?>
    61.

    62.
    // this is the error:
    63.

    64.
    Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\movies_dev\movies.php on line 18
    65.

    66.
    Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\AppServ\www\movies_dev\movies.php on line 18
    67.
    Error with query /# 1


    Source: http://community.livejournal.com/php/525946.html

« How to save the file to my... || Comments screened?? »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home