0
작동하지 않습니다. 코드의JQuery와 colorbox 정말 기본 colorbox 스크립트가 PHP/MySQL을
예 :
<a class="InternalIMG" href="/data/images/gallery/testing/UK.png" title="Absolutní schéma">
<div class="image_left" style="background-image: url('data/images/gallery/testing/UK.png');"></div>
</a>
하지만 PHP 변수에 사용하는 경우, 단순히 작동하지 않습니다
$gal_query = mysql_query("SELECT * FROM gomi_galerie_fotky WHERE section=" . $_GET['id'], $link);
if (mysql_num_rows($gal_query) != 0) {
while($gal_result=mysql_fetch_assoc($gal_query)) {
if ($gallery_count % 3 == 0) {$gallery_rows .= '</tr><tr valign="middle" align="center">';};
$gallery_rows .= '<td width="150px" height="150px" align="center" valign="middle" style="overflow: hidden;"><a class="InternalIMG" href="/data/images/gallery/testing/UK.png" title="Absolutní schéma"><div class="image_left" style="background-image: url(/data/images/gallery/thumbs/' . $gal_result['id'] . '.' . $gal_result['type'] . ');" title="' . $gal_result['body'] . '"></div></a></td>';
$gallery_count++;
}
$gallery = '<table align="center" border="0" width="150px" height="150px" style="table-layout:fixed"><tr valign="middle" align="center">' . $gallery_rows . '</tr></table>';
아마 PHP 파일에 문제가 (이 PHP 변수에 다른 [포함] PHP 파일).
도움 주셔서 감사합니다.
또한'a' 태그 안에'div'를 사용할 수 없습니다. – putvande
putvande : 정적 페이지에서 작동합니다. 왜 이것이 문제 일 수 있다고 생각하니? Skippy : 이는 전역 변수입니다. 하나의 PHP 파일 (index.php)은 CSS를 제외한 모든 디자인 (동적 인 내용 인 곳은 기본적으로 HTML 파일입니다)과 동적 인 것들을위한 특별한 PHP 파일입니다. – Gomi