why doesnt statement 1 works and statement 2 doesnt in php during database access?
<p>Why doesnt statement 1 works and statement 2 doesnt in php during database access?</p>

<p>Statement 1 :</p>

<pre><code>$query="select * from $table_id where name=".$integer2;
</code></pre>

<p>Statement 2 :</p>

<pre><code>$query="select * from $table_id where name='$integer2'";
</code></pre>
