Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^3: DBI fails to return an error code

by mje (Curate)
on Oct 10, 2011 at 08:20 UTC ( #930551=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    use strict;
    use DBI;
  2. or download this
    DBD::mysql::st execute failed: Unknown column 'DCredits' in 'field lis
    +t' at /home/martin/ line 45.
    <p>There was a problem: executing query.</p>
    <p><i>Attempted command:</i> SELECT DCredits, Price, Description FROM 
    +test.CUSTOMER_PLAN WHERE Name='Free'</p>
    <p><i>Error:</i> 1054 - Unknown column 'DCredits' in 'field list'</p>
  3. or download this
        -> prepare for DBD::mysql::db (DBI::db=HASH(0x9f482a0)~0x9f483c0 '
    +SELECT DCredits, Price, Description FROM test.CUSTOMER_PLAN WHERE Nam
    +e='Free'') thr#9dd4008
        New 'DBI::st' (for DBD::mysql::st, parent=DBI::db=HASH(0x9f483c0),
    + id=undef)
        -> $DBI::errstr (&) FETCH from lasth=HASH
        >> DBD::mysql::st::errstr
        <- $DBI::errstr= 'Unknown column 'DCredits' in 'field list''

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930551]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2018-01-20 06:22 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (226 votes). Check out past polls.