I have this table row....
<tr>
<td><img src="../images/black_bear/bburdim.gif" width="594" height="250"></td>
</tr>
I need to be able to change the 594 and the 250 via php... we can concentrate on the 594 and I can figure it out from there...
I have this piece of code...
if ($_SESSION['res'] == '800') {
echo "200"
} elseif ($_SESSION['res'] == '1024') { echo "400"
}
So I tried:
<tr>
<td><img src="../images/black_bear/bburdim.gif" width= <?php>if ($_SESSION['res'] == '800') {
echo "200"
} elseif ($_SESSION['res'] == '1024') { echo "400"
}<php>
height="250"></td>
</tr>
Then istead of my pic resized it printed text.. what did I do wrong?
<tr>
<td><img src="../images/black_bear/bburdim.gif" width="594" height="250"></td>
</tr>
I need to be able to change the 594 and the 250 via php... we can concentrate on the 594 and I can figure it out from there...
I have this piece of code...
if ($_SESSION['res'] == '800') {
echo "200"
} elseif ($_SESSION['res'] == '1024') { echo "400"
}
So I tried:
<tr>
<td><img src="../images/black_bear/bburdim.gif" width= <?php>if ($_SESSION['res'] == '800') {
echo "200"
} elseif ($_SESSION['res'] == '1024') { echo "400"
}<php>
height="250"></td>
</tr>
Then istead of my pic resized it printed text.. what did I do wrong?