What is wrong with this php code?
<p>I want to do something like this but I keep getting errors in my program:</p>

<pre><code>&lt;?php

echo "
Some code
here "if(isset($_GET[\"cat\"]) &amp;&amp; is_numeric($_GET[\"cat\"]))"
{ some code  }"


if($cat!= null &amp;&amp; is_numeric($cat))
{
&lt;select name=\"model\" onChange=\"autoSubmit();\"&gt;
&lt;option value=\"model\"&gt;       Model&lt;/option&gt;

$sql = \"SELECT * FROM model WHERE cat_id = $cat \";
$mode = mysql_query($sql,$conn) or die(mysql_error());

while($row = mysql_fetch_array($mode))
{
and here&lt;option value=\"$row[mod_id]\" \" . ($model == $row[\"mod_id\"]? \" selected\" : \"\") . \"&gt;$row[model]&lt;/option&gt;; 
}
&lt;/select&gt;
}
"
?&gt;
</code></pre>

<p>Can you please tell me why?</p>
