I have a problem with the following code. Need some help. The $isbn variable is NOT working for some reason in the code below:
<? $show = $query;
if ( $show > 0 ) {echo " <td><p><a href='http://images.alibris.com/isbn/<?php echo \".$isbn.\"; ?>.gif' border='0' alt='mccTextbooks.com' target='_blank'</a><img src='http://images.alibris.com/isbn/<?php echo $isbn; ?>.gif' width='75' height='95' border='0' alt='mccTextbooks.com'></a></p>" ; }
else {echo " <br>";}?>
You are trying to go into <?php mode when you're already in it.
<?php $show = $query; if ( $show > 0 ) { echo " <td><p><a href='http://images.alibris.com/isbn/$isbn.gif' border='0' alt='mccTextbooks.com' target='_blank'</a><img src='http://images.alibris.com/isbn/$isbn.gif' width='75' height='95' border='0' alt='mccTextbooks.com'></a></p>"; } else { echo " <br>"; } ?>
Yes, that was it. I am a newbie. Thank you for showing the errors of my ways.
Seriously, thank you very much.
David
No problem, and welcome to the forums.
Be sure to poke around the various forums, check out the "sticky" and FAQ posts, and before you know it you won't be a newbie any more. 😉