What\'s the best way with PHP to read a single record from a MySQL database? E.g.:
SELECT id FROM games
I was trying to find an answer in t
function getSingleRow($table, $where_clause="", $column=" * ",$debug=0) { $SelectQuery = createQuery($table, $where_clause, $column); $result = executeQuery($SelectQuery,$debug); while($row = mysql_fetch_array($result)) { $row_val = $row; } return $row_val; }