The fastest easiest way to get it right.

Database Reads with SQL_OneValue

Your application code can hand a query to the server and retrieve a single value back with the SQL_OneValue() function.

class x6helloworld extends androX6 {
    function x6main() {
        # Write out a query to get just the
        # latest headline out of a table of
        # news articles.
        $view = ddView('articles')
        $sq="select headline
               from $view
              order by dateline desc
              limit 1";
        echo "The latest headline is: ".$headline;
comments powered by Disqus
Home |  Documentation |  Download |  Credits |  Contact |  Login
Andromeda © Copyright 2004-2013, Licensed under the GPL Version 2