Código PHP:
class MyAdoDB{
public String select(){
return "SELECT * ";
}
public String from(String table){
return " FROM " + table;
}
public String where(String campo1){
return "WHERE idtest> " + campo1;
}
}
Código PHP:
MyAdoDb bdd = new MyAdoDb();
bdd.select().from("test").where("10000");
select * from test where id>10000;
gracias