SqlBuilder Class
Could someone explain to me how the sql builder class works. As i understand what it does
$db->SetMainTable('Table1', 't');
$db->AddSelect( array('Row1', 'Row2'), 't');
$db->AddJoin('Table2', 'u', 'Row1', 't', 'Row1', 'join');
$db->AddSelect('LRow2', 'u', 'UserName');
$db->AddWhere('Row2', 'Something', '', 'null', 'is', 'or', '', 0);
$db->EndWhereGroup();
return $db;
Kinda thing however i would like to use a similar setup on some of my own scripts but i dont understand the inner workings of the sqlbuilder class. If someone could "document" it further so i may understand it i would be grateful or if someone has a similar more simple sqlbuilder that is less reliant on previous code.
I would be forever grateful. Thanks
0
This discussion has been closed.
Comments