if(!database.connected())
{
database.connect("INFORMIX", "netscape", "informix", "informix", "rwdemo");
}
if (!database.connected())
{
write("Error: Unable to connect to database.");
}
else
{
project.lastID = 0;
cursor = database.cursor("select * from customer order by ID");
while(cursor.next())
{
project.lastID = cursor.id;
}
cursor.close();
redirect("home.html");
}