
January 31st, 2013, 09:40 AM
|
 |
pollyanna
|
|
Join Date: Jul 2012
Location: Germany
|
|
Quote: | Originally Posted by notflip Should i fetch then in an array or something? |
Yes, but put them in an associative array with the "name" as the key:
PHP Code:
$fields = array();
foreach ($fields_query as $field)
$fields[$field['name']] = $field['content'];
Then you can simply fetch a specific field when you need it.
|