Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2005
    Posts
    8

    Unanswered: Resource id #???? odbc_connect

    Hi,

    This is a portion of the program which gives me output correctly.

    $conn = odbc_do ('myDsn', 'sa','sa');
    echo '$conn-> '.$conn;

    The output i am getting is

    $conn-> Resource id #2

    And the program worked fine.

    The same statment in other program gives me the output as
    $conn-> Resource id #11

    And am not getting any result set while using that connection.

    Can anybody tell me whats this 'Resource id #' is all about?? and how i got two different values?

    Thanks

  2. #2
    Join Date
    Apr 2005
    Location
    Baltimore, MD
    Posts
    297
    A resource is just a special type of variable.

    If there was a problem creating the connection, you most likely would have received an error. If you're still having problems post your code so we can try to figure out what is causing this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •