Anonymous
public text v1 · immutable function select($what,$table,$where = FALSE,$limit = FALSE)
{
#example syntax leDB.select("*","blogg","blogg_id = 5");
$sql = "select ".$what." from ".$table;
if($where)
$sql.=" where ".$where;
if($limit)
$sql.=" limit ".$limit;
$result = mysql_query($sql) or die(mysql_error()."Could not run ".$sql);
}