I'm pretty sure I have a syntax error in my PHP code.
can anyone please enlighten me?
Scenario:
I am attempting to implement an AJAX overlay of an existing PHP page that requires a variable to function.
the page will be shown using Smoothbox.
Code:
here's the code that Smootbox suggests to use for inline content:
<a href="ajaxOverFlow.htm?keepThis=true&TB_iframe=true&height=250&width=400" title="add a caption to title attribute / or leave blank" class="smoothbox">Example 1</a>
I used this code within the PHP file:
print("<tr><td align=right class=\"header\"> NFO:</td><td align=center class=\"lista\" ><img src='/img/nfo.gif' border='0'> <a href='viewnfo2.php?info_hash='" . $row["info_hash"]. "'?KeepThis=true&TB_iframe=true&height=100&width=100' title='View NFO' class='smoothbox'><b>View NFO</b></a></td></tr>\n");
the normal View NFO link looks like this:
print("<tr><td align=right class=\"header\"> NFO:</td><td align=left class=\"lista\" ><a href=viewnfo.php?info_hash=" . $row["info_hash"]. "><b>View NFO</b></a></td></tr>\n");
Screenshot:
(now there is no info in the NFO box because the code is not parsed correctly....)
please advise the proper PHP syntax / code to use.
thank you.
Reference:
smoothbox
http://gueschla.com/labs/smoothbox/