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.