Pilih semua data dari fungsi Tabel Database MySQL
function selectDataFromTable($tableName, $where = '')
{
global $db;
$qry = "SELECT * FROM $tableName ";
if ($where) {
$qry .= ' WHERE ' . $where . ' ';
}
$information = $db->get_results("$qry");
//var_dump($qry);
if ($information)
return $information;
else
return false;
}
Amin Arjmand