<?php public function READ ($aFields, $sTable, $aCases) { $sSQL = "SELECT ".$sFields." FROM ".$sTable; return $aRow; } ?>
Wywołuje to np tak:
<?php $SQL = new SQL; $SQL -> CONNECT_DB ('localhost', 'root', ''); $SQL -> SELECT_DB ('test'); $SQL -> READ ($a, lessons, $b); ?>
..w wyniku powinienem otrzymac tablice zawierającą [header] i [introduction] a otrzymuje cos takeigo:
Kod
ArrayArray (
[0] => header
[1] => header
[2] => introduction
[3] => introduction
[0] => header
[1] => header
[2] => introduction
[3] => introduction
Dlaczego?