By d.holmen@gmail.com on
Hi all,
I need a script which checks the db if the user has submitted any image in a profile2 form. if it has, run some code, and if not, run something else. I did create a PHP-script for that, put it in a block and it worked, untill i realised that it wouldn't to so for much long - I was right.
I got the newest fid where the user was the one submitted it. Well, it didnt work and there has to be a way to get just ONE field value based on the user, right?
I can only find how I get values from the DB in arrays. I dont want, nor need that.
I'm really new to all this about Drupal API so please give me an example rather then just point me to Field API.