function get_article($article_id)
{
// is this how i return an array representing a row?
$query = "SELECT title, snippet, body, enabled, input_user, input_date, update_user, update_date FROM " .s('schema'). "articles WHERE id = '$article_id'";
return mysql_fetch_array(mysql_query($query));
} |