Welcome Guest, Not a member yet? Register   Sign In
querry question
#6

[eluser]daniel ispas[/eluser]
If Joe can be the name of the artist or the song name you should make a small change in the code provided by InsiteFX:
Code:
function get_artist($name)
{
    $data = array();

    $this->db->where('artist', $name);
    $this->db->or_where('song_name', $name);

    $query = $this->db->get('table_name');

    if ($query->num_rows() > 0){
      $data = $query->row_array();
    }

    $query->free_result();
    return $data;
}


Messages In This Thread
querry question - by El Forum - 04-03-2011, 04:50 PM
querry question - by El Forum - 04-03-2011, 07:20 PM
querry question - by El Forum - 04-03-2011, 08:33 PM
querry question - by El Forum - 04-03-2011, 09:01 PM
querry question - by El Forum - 04-03-2011, 09:44 PM
querry question - by El Forum - 04-04-2011, 12:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB