Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Puffin Rock Characters Plush Toy Set
anil1961
Updated:
Saturday at 3:51 PM
Toyota Vitz scp10 For Sale
Lakmal Bandara
Updated:
Nov 4, 2026
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Nov 2, 2026
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Nov 1, 2026
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
PHP image code help pls
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="wdishan" data-source="post: 18534266" data-attributes="member: 90099"><p>Here is the code mall but your all images are should be in one size </p><p></p><p><?php </p><p> /*</p><p> **Identify Image name with index and image src </p><p> */</p><p> // Following code mus run under loop while dispalying database codes</p><p> </p><p> $index = "label1"; // Index number or some uniqure number </p><p> $imagesrc ="click.jpg"; // Image thumbnail and click here to be shown</p><p> $tobeopen_imagelink = "click-openimage.jpg"; // On the database need to set the field here to be open n new window</p><p> switch($index){</p><p> case "label1" : echo "<div style='background:url(".$imagesrc.") no-repeat;position:relative;width:460px;height:323px;'><a style='display:block;position:absolute;width:174px;height:46px;right:90px;top:64px' href=".$tobeopen_imagelink."></a></div>"; </p><p> break; </p><p> }</p><p>?></p><p></p><p>Tested and Run all ok</p></blockquote><p></p>
[QUOTE="wdishan, post: 18534266, member: 90099"] Here is the code mall but your all images are should be in one size <?php /* **Identify Image name with index and image src */ // Following code mus run under loop while dispalying database codes $index = "label1"; // Index number or some uniqure number $imagesrc ="click.jpg"; // Image thumbnail and click here to be shown $tobeopen_imagelink = "click-openimage.jpg"; // On the database need to set the field here to be open n new window switch($index){ case "label1" : echo "<div style='background:url(".$imagesrc.") no-repeat;position:relative;width:460px;height:323px;'><a style='display:block;position:absolute;width:174px;height:46px;right:90px;top:64px' href=".$tobeopen_imagelink."></a></div>"; break; } ?> Tested and Run all ok [/QUOTE]
Insert quotes…
Verification
Hata thunen beduwama keeyada? (60 bedeema thuna)
Post reply
Top
Bottom