/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function listValues($tbl='',$sql='', $velden='*') { dbConnect(); $result=mysql_query("select $velden from $tbl $sql"); //echo "select $velden from $tbl $sql"; $x=0; while($row=mysql_fetch_array($result)) { for($j=0;$j<mysql_num_fields($result);$j++) { $name = mysql_field_name($result, $j); $list[$x][$name]=$row[$name]; } $x++; } return $list; }