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
Colombo
RidhMathraa ’26 🎶✨
Tmadhusanka
Updated:
Wednesday at 11:58 PM
Ad icon
Colombo
PXN V10 Pro Direct Drive Racing Wheel (Under Warranty)
Abdur Rahman
Updated:
Wednesday at 10:23 PM
Ad icon
USDT ණය සේවාව - USDT Loan Service
පුරවැසියා
Updated:
Wednesday at 4:54 PM
Ad icon
🎮 INDIAN PSN GIFT CARDS AVAILABLE NOW! 🎮
madukaperera
Updated:
Tuesday at 12:57 PM
🚀 Google AI PRO – 18 Months | Rs. 850 Only
lkkolla
Updated:
Monday at 4:56 PM
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