News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

In search of... code to display a simple sql query

Started by dixer, December 17, 2012, 11:05:40 AM

Previous topic - Next topic

dixer

I have a few simple queries I want to display.  Some will be restricted to user attributes via the Where clause, but I can handle the parameters myself.  The unknown part for me is formatting the results.

So I'm asking for raw code (or a pointer to a very simple mod) which gives an example of issuing a query and displaying its results as a table.  I know the column names, so I'm not looking for anything fancy like pulling column names from the schema or query text.  Simple for you and simple for me, I hope.

Yes, I searched first, but couldn't find a simple example.  Thank you in advance.
Cheers

IchBin™

There are several functions in the SSI.php file that do this.
IchBin™        TinyPortal

dixer

Thank you.  From there I can mix and match what I need.

Advertisement: