Looking for simple DB example code

3 views
Skip to first unread message

Avalon Phoenix

unread,
Jun 20, 2007, 8:43:52 PM6/20/07
to miva-script
Hello all
I am new to MIVA and MIVA Scripting. I am looking for a simple
example on how to connect to a database. I have a store with the
following release:

Production Release 3
MIVA Engine v5.06
Database API: mivasql

How do I open the table to get a list of the categories for my store?
Some type of "select (*) from <<category tablename>>"?
Thanks!

Tim

Bill Guindon

unread,
Jun 20, 2007, 10:02:51 PM6/20/07
to miva-...@googlegroups.com
Not _exactly_ on topic, but this thread might help a bit.
http://extranet.miva.com/forums/archive/index.php/t-234.html

Scan the examples, and just replace the various forms of 'count' with
'*' as you mentioned below.


--
Bill Guindon (aka aGorilla)
The best answer to most questions is "it depends".

Reply all
Reply to author
Forward
0 new messages