Jump to content

Recommended Posts

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....)

 

btitsmoothboxnfoerr2ue2.png

 

 

please advise the proper PHP syntax / code to use.

thank you.

 

 

Reference:

 

smoothbox

http://gueschla.com/labs/smoothbox/

Link to comment
https://forums.phpfreaks.com/topic/56907-req-php-syntax-help-w-smoothbox/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.