Return to Snippet

Revision: 6458
at May 22, 2008 08:21 by Meestercor


Initial Code
	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;
	}

Initial URL

                                

Initial Description

                                

Initial Title
listValues function

Initial Tags
database, textmate

Initial Language
Other