jquery.backstretch.min.js pulling image from databse or variable
<p>here the problem that nobody seems to know the answer, </p>

<p>i got </p>

<p>i want use jquery.backstretch.min.js to resize image variable from database  ,but it's not working???</p>

<p><strong>PHP</strong></p>

<pre><code>$usr = $_SESSION['user'];
$q10 = "SELECT * FROM `users`  WHERE `user` = '$usr'";
$result10 = @mysql_query ($q10);
$row10 = mysql_fetch_assoc ($result10);
$avatar = $row10['avatar'];

$myimg = "&lt;img src=\"$avatar\"&gt;";
</code></pre>

<p><strong>Javascript</strong></p>

<pre><code>$.backstretch("&lt;?php echo $myimg ?&gt;");
</code></pre>
