dynamic form with php and javascript
<p>I want to create a dynamically changing form, when someone select first option, it makes query on mysql and change secont option automatically based on first.</p>

<p>I don't know how to make things in java so I found it.
I found tutorial like this <a href="http://student-plus.blogspot.com/2011/05/dynamic-select-box-with-jquery-php.html" rel="nofollow">manual</a></p>

<p>but problem is, it's not working 
in block </p>

<pre><code>   $query = "select * from tbl_class";  
     $result = mysql_query($query) or die("Error in Query! ".mysql_error());  

     while($row = mysql_fetch_array( $result ))  
     {  
      echo "&lt;option "'="" .="" id']="" value="" . $row["&gt;" . $row['name'] . " &lt;/option&gt;";  
     }  
</code></pre>

<p>in row echo option... is error syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';'
Can you help me please ? :(</p>
