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; Link to comment https://forums.phpfreaks.com/topic/71716-solved-problem-with-this-sytanx-sorry/ Share on other sites More sharing options...
MmmVomit Posted October 3, 2007 Share Posted October 3, 2007 What error are you getting? Link to comment https://forums.phpfreaks.com/topic/71716-solved-problem-with-this-sytanx-sorry/#findComment-361093 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. Link to comment https://forums.phpfreaks.com/topic/71716-solved-problem-with-this-sytanx-sorry/#findComment-361094 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 Link to comment https://forums.phpfreaks.com/topic/71716-solved-problem-with-this-sytanx-sorry/#findComment-361240 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.