spdwrench Posted October 3, 2007 Share Posted October 3, 2007 I need help with this syntax please tell me what Iam doing wr $nPhoto = f(q("SELECT filename_$photo_id FROM dt_photos WHERE member_id='$fMember[id]'")); if ($nPhoto!=""){ $image=$nPhoto[filename_$photo_id]; $itype=substr($image,strlen($image)-4,4); $image=substr($image,0,strlen($image)-4); $image="../photos/".$image."_thumb".$itype; $avPhoto = f(q("SELECT user_avatar FROM phpbb_users WHERE username='$fMember[login]'")); echo $avPhoto[user_avatar];echo"<br>"; echo $image; Quote Link to comment Share on other sites More sharing options...
MmmVomit Posted October 3, 2007 Share Posted October 3, 2007 What error are you getting? Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted October 3, 2007 Share Posted October 3, 2007 You never closed your IF statement brackets. if ($nPhoto!=""){ Where is the ending bracket? It would also be nice to know what the error is. Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted October 3, 2007 Share Posted October 3, 2007 something i find very helpful about jedit is it match's all brackets and parens Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.