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
NURSING , CAREGIVER , HOTEL & BEAUTY COURSES
IVA Para Medical Campus
Updated:
Yesterday at 9:24 AM
Handmade Character Soft Toys Peppa Pig Family
anil1961
Updated:
Wednesday at 9:58 PM
Ad icon
Video Content Creator
pramukag
Updated:
Sunday at 6:10 AM
Ad icon
QA Engineer Intern
pramukag
Updated:
Sunday at 6:07 AM
Ad icon
Sell your Land, House on idamata.lk for FREE
sajith.xp.pk
Updated:
Jun 25, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
php dana katiya ikmanin help ekak dena
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="sudu hawa" data-source="post: 13689754" data-attributes="member: 382989"><p>yaluwane mama admin panel ekakin monava hari damahama mehema wetenwa ( a kiyanne yatata ) mata one meka left ekata row kara ganna anne danna katiya mata help ekak dennnaa</p><p></p><p><img src="http://s8.postimage.org/78c52ld9v/image.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>mena code eka full </p><p></p><p></p><p>[HTML]<?php </p><p>// Run a select query to get my letest 6 items</p><p>// Connect to the MySQL database </p><p>include "storescripts/connect_to_mysql.php"; </p><p>$dynamicList = "";</p><p></p><p>$sql = mysql_query("SELECT * FROM products ORDER BY date_added DESC LIMIT 6");</p><p>$productCount = mysql_num_rows($sql); // count the output amount</p><p>if ($productCount > 0) {</p><p> while($row = mysql_fetch_array($sql)){ </p><p> extract($row); </p><p> $id = $row["id"];</p><p> $product_name = $row["product_name"];</p><p> $price = $row["price"];</p><p> $date_added = strftime("%b %d, %Y", strtotime($row["date_added"]));</p><p> $dynamicList .= '<table width="100%" border="0" cellspacing="0" cellpadding="6"></p><p> <tr></p><p> <td width="17%" valign="top"><a href="product.php?id=' . $id . '"><img style="border:#666 1px solid;" src="inventory_images/' . $id . '.jpg" alt="' . $product_name . '" width="77" height="102" border="1" /></a></td></p><p> <td width="83%" valign="top">' . $product_name . '<br /></p><p> $' . $price . '<br /></p><p> <a href="product.php?id=' . $id . '">View Product Details</a></td></p><p> </tr></p><p> </table>';</p><p> }</p><p>} else {</p><p> $dynamicList = "We have no products listed in our store yet";</p><p>}</p><p>mysql_close();</p><p>?></p><p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></p><p><html xmlns="http://www.w3.org/1999/xhtml"></p><p><head></p><p><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></p><p><title>Store Home Page</title></p><p><link rel="stylesheet" href="style/style.css" type="text/css" media="screen" /></p><p></head></p><p><body></p><p><div align="center" id="mainWrapper"></p><p> <?php include_once("template_header.php");?></p><p> <div id="pageContent"></p><p> <table width="100%" border="0" cellspacing="0" cellpadding="10"></p><p> <tr></p><p> <td valign="top"><h3>Latest Designer Fashions </p><p> </p></p><p> </h3></p><p> <p><?php echo $dynamicList; ?><br /></p><p> </p></p><p> <p><br /></p><p> </p></td></p><p> </tr></p><p></table></p><p></p><p> </div></p><p> <?php include_once("template_footer.php");?></p><p></div></p><p></body></p><p></html>[/HTML]</p></blockquote><p></p>
[QUOTE="sudu hawa, post: 13689754, member: 382989"] yaluwane mama admin panel ekakin monava hari damahama mehema wetenwa ( a kiyanne yatata ) mata one meka left ekata row kara ganna anne danna katiya mata help ekak dennnaa [IMG]http://s8.postimage.org/78c52ld9v/image.jpg[/IMG] mena code eka full [HTML]<?php // Run a select query to get my letest 6 items // Connect to the MySQL database include "storescripts/connect_to_mysql.php"; $dynamicList = ""; $sql = mysql_query("SELECT * FROM products ORDER BY date_added DESC LIMIT 6"); $productCount = mysql_num_rows($sql); // count the output amount if ($productCount > 0) { while($row = mysql_fetch_array($sql)){ extract($row); $id = $row["id"]; $product_name = $row["product_name"]; $price = $row["price"]; $date_added = strftime("%b %d, %Y", strtotime($row["date_added"])); $dynamicList .= '<table width="100%" border="0" cellspacing="0" cellpadding="6"> <tr> <td width="17%" valign="top"><a href="product.php?id=' . $id . '"><img style="border:#666 1px solid;" src="inventory_images/' . $id . '.jpg" alt="' . $product_name . '" width="77" height="102" border="1" /></a></td> <td width="83%" valign="top">' . $product_name . '<br /> $' . $price . '<br /> <a href="product.php?id=' . $id . '">View Product Details</a></td> </tr> </table>'; } } else { $dynamicList = "We have no products listed in our store yet"; } mysql_close(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Store Home Page</title> <link rel="stylesheet" href="style/style.css" type="text/css" media="screen" /> </head> <body> <div align="center" id="mainWrapper"> <?php include_once("template_header.php");?> <div id="pageContent"> <table width="100%" border="0" cellspacing="0" cellpadding="10"> <tr> <td valign="top"><h3>Latest Designer Fashions </p> </h3> <p><?php echo $dynamicList; ?><br /> </p> <p><br /> </p></td> </tr> </table> </div> <?php include_once("template_footer.php");?> </div> </body> </html>[/HTML] [/QUOTE]
Insert quotes…
Verification
Dawasata paya keeyak thibeda?
Post reply
Top
Bottom