I'm a beginner in php and i want to echo this properly but the error says : <pre><code>Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\xampp\htdocs\project\homepage.php on line 235
</code></pre>

<p>I want to echo my post in my wall if it has a content to post but if the length of my textarea is &lt;0 or above to 160 I want to echo an error then redirect to same page. But if it has a content I want to echo that messages.</p>

<pre><code>&lt;?php 

//build query for displaying post messages                                  
$strQuery = "SELECT * FROM freedom_wall ORDER BY id DESC";

// execute
if ($hQuery = $objConnection-&gt;query($strQuery)) {
//get data
while($row=$hQuery-&gt;fetch_assoc()){
$link_address = "files.php";


?&gt;  
&lt;hr&gt;    
&lt;?php 

$postbody = $_POST['post_msg'];
if (strlen($postbody) &gt; 160 || strlen($postbody) &lt; 1) {
echo ("&lt;script LANGUAGE='JavaScript'&gt;
window.alert('Nothing to post!');
window.location.href='homepage.php';
&lt;/script&gt;");
} else { //This is where I received the error i'm hard enough in using ' and " with concats
echo   "&lt;br&gt;&lt;h4&gt;&lt;?php echo $row['username']; ?&gt;&lt;/h4&gt;
&lt;p&gt;&lt;h4&gt;&lt;?php echo $row['post_msg']; ?&gt;&lt;/h4&gt;
&lt;?php echo '&lt;a href='".$link_address."'&gt;".$row["post_file"]."&lt;/a&gt;';?&gt;
&lt;/p&gt;";
?&gt;

Please help me                                  
</code></pre>
