Link to home
Start Free TrialLog in
Avatar of nikola_mk
nikola_mk

asked on

PHP heredoc syntax error

Hi,

i want to use heredoc syntax in php , but php sintax block code don't stop, all my html code at the bottom like string.

Error is like on picture, an anyone  tell me where is my error?
I use eclipse

Thanks
<?php
 
 
								echo <<<EOD
                                    <div id="errordiv_php">
                                        <div id="Naslov" class="errfontcaption_php" >
                                           <label >5 <>;8<5 ?>?@025B5 38 A;54=8B5 ?>40B>F8:</label>
                                
                                        </div>
                                            
                                        <p id="Ime" class="errlabel_php">
                                           <label >* 5 <>;8<5 2=5A5B5 3> 20H5B> 8<5!</label>
                                        </p>
                                       </div> 
								EOD; 
                        
					
						
                        ?>      
                    
                                    <div id="errordiv_php">
                                        <div id="Naslov" class="errfontcaption_php" >
                                           <label >5 <>;8<5 ?>?@025B5 38 A;54=8B5 ?>40B>F8:</label>
                                
                                        </div>
                                            
                                        <p id="Ime" class="errlabel_php">
                                           <label >* 5 <>;8<5 2=5A5B5 3> 20H5B> 8<5!</label>
                                        </p>
                                       </div>

Open in new window

error.JPG
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nikola_mk
nikola_mk

ASKER

Can you correct my code and send to me?

I try this but no effects:


echo <<<EOD
<div id="errordiv_php">
<div id="Naslov" class="errfontcaption_php" >
<label >5 <>;8<5 ?>?@025B5 38 A;54=8B5 ?>40B>F8:</label>
</div>                                          
<p id="Ime" class="errlabel_php">
<label >* 5 <>;8<5 2=5A5B5 3> 20H5B> 8<5!</label>
</p>
</div>
EOD;
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial