what is the right way to apply lightbox to this php code?
$output_content.= "<div id=\"slide\" class=\"4u 6u(medium)\"><a href=\"$script_url/$cam_dir$prefix$k.$ext\">
<img border=\"0\" src=\"$image_url_path/$prefix$k-thm.$ext?dontcache=".time()."\" alt=\"$cam_title - $timestat\" title=\" $cam_title - $timestat \" /></a><br />
<small>$timestat</small></div>";
You have to add the lightbox class or the class that fires lightbox to the div class=
or div id=
.
This is not a php issue I think it is a html issue.