I have a function which selects the * values from a particular table, I need to configure that if I pass * in parameter then it selects all or the selected parameters.
My function is as follows:
public function select($tablename){
$select = mysql_query("SELECT * FROM $tablename");
if(!$select){
echo "cant select table mane";
}
while ($row = mysql_fetch_array($select)){
print_r($row);
}
}
How can I pass the dynamic colum name in place of *