Thread

  1. ERROR: cannot find attribute 10 of???

    ineck <inex@poczta.onet.pl> — 2001-01-03T20:07:22Z

    Anyone can help with that one?
    
    Warning: PostgresSQL query failed: ERROR: cannot find attribute 10 of
    relation pg_am in [..]
    Warning: 0 is not a PostgresSQL result index in
    
    Thanks in advice
    
    ineck
    
    
    
    
  2. Re: ERROR: cannot find attribute 10 of???

    Lee Harr <missive@localhost.net> — 2001-01-06T21:20:50Z

    On Wed, 3 Jan 2001 21:07:22 +0100, ineck <inex@poczta.onet.pl> wrote:
    >Anyone can help with that one?
    >
    >Warning: PostgresSQL query failed: ERROR: cannot find attribute 10 of
    >relation pg_am in [..]
    >Warning: 0 is not a PostgresSQL result index in
    
    Sounds like PHP to me.
    
    Usually when you get a "0 is not a ..." it means that you failed to
    set the variable used in your function call.
    
    ie. you might have pg_fetch_array( $result, 10 ) but had
    pg_exec( $database, $query );   instead of
    $result = pg_exec( $database, $query );
    
    
    >
    >Thanks in advice
    >
    >ineck
    >
    >
    Lee Harr
    missive@hotmail.com