[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
RE: [mv] About mysql
> Runtime error: Can't locate object method "array_query" via package "V
> end::Table::GDBM" at /home/zb/mvend/lib/Vend/Data.pm line 408.
>
> Could any one tell me what's wrong with config?
>
>
> /home/zb/catalogs/simple/pages/a.html
> <html>
> [sql array] select * from test [/sql test]
> </html>
This will do a select on _table_ 'test'.
> /home/zb/catalogs/simple/catalog.cfg:
> Database test test dbi:mysql:minivend:localhost:3306
> Database test USER root
> Database test PASS sqlMy
> Database test COLUMN_DEF code=char(20), descriptions char(100), price
> real
Your DB name is 'minivend'. Does 'minivend' DB have a table 'test'?
> /home/zb/catalogs/simple/error.log
> Runtime error: Can't locate object method "array_query" via package "V
> end::Table::GDBM" at /home/zb/mvend/lib/Vend/Data.pm line 408.
It looks like MiniVend is trying to use GDBM, not your MySQL DB 'minivend'.
Does this work for you:
[sql type=list query="select * from test"] [sql-param 0][/sql]
?
See: http://www.minivend.com/minivend/docindex/08.03.SQL_Access_Methods.html
Otis
> To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to
> Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
>