Skip to main content
1 of 2
srodrig
  • 145
  • 2
  • 14

db_query or db_select for getting content type fields

Originally I was doing something along the lines of $query = "SELECT {}" and then $result = db_query($query). This method works fine for most of my queries until I needed to get the field values and fid from a specific content type. And then be able to call these values when printing inside HTML. Can anyone provide an example of how I would do this?

srodrig
  • 145
  • 2
  • 14