GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


php select by taby
1
 
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));
}