IDE showing error in PHP concatenation -


i trying display name , address in mail using following piece of code perfect-

</tr> <tr> <td align="left"><p>'.$admin_message['message'].'</p></td> </tr> <tr> <td align="left"><p>kind regards</p></td> </tr> <tr> <td align="left"><p>'.ucwords($finance_info['fi_schoolname']). '<br />'.ucwords($finance_info['fi_address']). ' <br /> email :- '.ucwords($finance_info['fi_email']). '<br /> contact:- '.ucwords($finance_info['fi_phoneno']).'</p> </td> </tr> 

now want add image logo in trying -

<tr> <td align="left"><p>'.$admin_message['message'].'</p></td> </tr> <tr> <td align="left"><p>kind regards</p></td> </tr> <tr> <td align="left"><p>' if($_session['eschools']['schoollogo']!=""){ echo displayimage("images/school_logo/".$_session['eschools']['schoollogo'], "140"); } .'&nbsp;&nbsp;&nbsp;&nbsp;'. ucwords($finance_info['fi_schoolname']).'<br> '.ucwords($finance_info['fi_address']).' <br /> email :- '.ucwords($finance_info['fi_email']).'<br> contact:- '.ucwords($finance_info['fi_phoneno']).'</p></td>              </tr>    </table>'; 

but on line no. 9 , 10 shows error ide using dreamweaver. need know doing mistake in concatenation.enter image description here

regards all

this wrong :

<td align="left"><p>' if($_session['eschools']['schoollogo']!=""){ echo displayimage("images/school_logo/".$_session['eschools']['schoollogo'], "140"); } 

correct code :

<?php echo ' <tr> <td align="left"><p>'.$admin_message['message'].'</p></td> </tr> <tr> <td align="left"><p>kind regards</p></td> </tr> <tr> <td align="left"><p>'; if($_['eschools']['schoollogo']!=""){ echo displayimage("images/school_logo/".$_['eschools']['schoollogo'], "140"); } echo '    '. ucwords($finance_info['fi_schoolname']).'<br> '.ucwords($finance_info['fi_address']).' <br /> email :- '.ucwords($finance_info['fi_email']).'<br> contact:- '.ucwords($finance_info['fi_phoneno']).'</p></td>              </tr>    </table>'; 

Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -