parse error in eval() - eval()'d code
<p>Where is the problem in my eval code???
because Apache said:</p>

<blockquote>
  <p>Parse error: syntax error, unexpected
  T_STRING in
  E:\xampp\htdocs\1php\mas_res\inc\mysql_class.php(120)
  : eval()'d code on line 1</p>
</blockquote>

<p>my code:</p>

<pre><code>            $type1 = "row";
            $query1 = mysql_query("SELECT * FROM table");
            $textToEval = "mysql_fetch_{$type1}($query1);";
            $query = eval($textToEval);
</code></pre>

<p>And what is the correct mode??</p>

<p>Thanks ..</p>
