logo-radria.gif
   
Blog Download Documentation Forum Tasks Home
Blog Download Documentation Forum Tasks Home
barside-right.gif
barside-left.gif
logo-sql.gif





 

sqlQuery

This is a class that sends queries to the database and fetches the results. The is a simple example that speaks for itself:

    $q_faq = new sqlQuery($conx);
    $q_faq->query("select question from faq");
    while ($q_faq->fetch()) {
        echo "<Br>".$q_faq->getData("question");
    }
    $q_faq->free();

We create a query object $q_faq using an already existing sqlConnect object : $conx.

 
core/sqlquery.txt · Last modified: 2007/08/28 19:04 by 71.160.191.33
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki