i am trying to create xml sitemap i have a column album_image in my database. in start day's i did't upload album image and the column store '0' as value after years ago i start uploading album image. now i want to create sitemap for it. if album_image == 0 display static image else display album iamge. how can i use if statment in $xml .=
$xml .= '<image:image>';
$xml .= '<image:loc>'.SITE_URL. if($row->album_image == '0'){'images/video_icon.png'}else{'media/'.$row->cat_id.'/images/'.$row->album_image.'}</image:loc>';
$xml .= '<image:caption>'.$row->album_name.'</image:caption>';
$xml .= '</image:image>';
i am getting this error " Parse error: syntax error, unexpected T_IF in E:\wamp\www\site\sitemap-album.php on line 15 "