Well, this one has me stumped..I figured out the MySQL library, figured out its best not to do the querying within the draw() method, etc. 
So I'm trying to create a class SQL that has all my queries embedded within methods. What I have so far is this: 
Code:
import de.bezier.mysql.*;
MySQL msql;
sql sqlFuncs;
// created 2005-05-10 by fjenett
// updated 2005-05-12 by fjenett
void setup()
{
  size(100,100);
  sqlFuncs = new sql(user,password,database,host);
  numChapters = sqlFuncs.selectCount();
  println(numChapters);
  
}
class sql {
 String user = "root";
 String pass = "projecto";
 String database = "solaris";
 String table = "images";
 String host = "localhost";
  
  sql( "localhost", "solaris", "root", "projecto", this)
  {
     mysql = new MySQL( host, db, username, password, this);
     if ( !mysql.connect() )
    println("not connected");
  } 
  int selectCount()
  {
	mysql.query( "SELECT COUNT(*) FROM " + table );
	return mysql.getInt("COUNT(*)");
  }
}
 
Does anybody (fjen as well?) have any ideas what I'm doing wrong, or what the library doesn't like?
thanks for all of your help...