<?php $sql="SELECT * FROM tv_news ORDER by time DESC"; ..... } ?>
a ja chcę w ten sposob:
<?php function result($row,$table,$where=''){ if ($where!=='') {$where='WHERE'.$where;} $sql="SELECT ".$row." FROM `".$table."`"; return $data; } while($dane=result(....){ } ?>
Jak to zrobic
