if ($level == "picture"){ // first lets load the thumbnail of the picture at the correct size $sql = "SELECT *, UNIX_TIMESTAMP(`date_submitted`) AS `unix_date_submitted`, UNIX_TIMESTAMP(`EXIF_date_taken`) AS `unix_exif_date_taken` FROM `".$TABLE_PREFIX."pictures` WHERE id = $id"; $result = run_query($sql); $row = mysql_fetch_assoc($result); // generate a list of all image id-s so proper prev/next links can be created. This should be a // fast query, even for big albums. $image_list = array(); $sql = "SELECT id FROM `".$TABLE_PREFIX."pictures` WHERE parent_album = ".$row["parent_album"];
Why you don't create separate file called, for example, ebay.php and put just this code in it and then include it on place where you are putting relevance code now?
what is the different? the problem is, javascript in php. sytax for javascript is different to syntax for php. when i use the original relevance ad syntax for javascript, crashes the gallery.php, when i delete ' " dont work the javascript.
my knowhow in javascript and php is verry small. i have seen diverse adaptions for cms ( drupal ) and i try adjust for my site, but this dont work.
oh, oh,... i hope, you understand my german-english
Well, I thought that maybe problem is when js is in gallery.php, so if you put it in another file there will be no problem. I use Plogger 3 and with that way I put OpenAds code (also js).
By checking again you eBay code, I see that there is used ' while in AdSense there is " . Maybe this is problem, if you use some visual text editor enter whole code and see if it breaks with current eBay code (since in php, code in html you enter starts with ' and ends with ', for example: