Mailing List Archive



Back to the month index Back to the list index

C. W. Wright (wwright@web-span.com)
Tue, 1 Apr 1997 00:06:08 -0500 (EST)


Date: Tue, 1 Apr 1997 00:06:08 -0500 (EST)
From: "C. W.  Wright" <wwright@web-span.com>
Subject: [mSQL] How to use msqlQuery ( ) and msqlStoreResult ( )
Message-Id: <Pine.LNX.3.95.970331235511.4446D-100000@wayne.home.net>

The docs show an example:

 if (msqlQuery($sock, "select * from foo") < 0)
        {
                echo("ERROR : $ERRMSG\n");
        }

Which appears to require a:

$res = msqlStoreResult();

to actually store the query result(s) in a variable. What kind of
a variable is $res??? The docs show it as an "int" and I don't
understand how that can how an array of results, or even a
character string.

If I have a table with multiple rows and columns of data, how can I access
the other columns of data?

Could someone please explain the msqlFetchRow ( ), msqlStoreResult ( ),
and msqlStoreResult ( ) function interactions???

Thanks!

C. W. Wright

--------------------------------------------------------------------------
To remove yourself from the Mini SQL mailing list send a message containing
"unsubscribe" to "unsubscribe" to msql-list-request@bunyip.com. Send a message containing
"info msql-list" to majordomo@bunyip.com for info on monthly archives of
the list. For more help, mail owner-msql-list@bunyip.com NOT the msql-list!