ElaKiri Community
Downloads
Go Back   ElaKiri Community > General > ElaKiri Talk!
Reload this Page PHP හෙල්ප්
Reply
 
Thread Tools
(#1)
Old
ArunaTelshan's Avatar
ArunaTelshan ArunaTelshan is online now
Senior Member
ArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of light
 
Posts: 2,027
Join Date: Nov 2013
Location: Biyagama
PHP හෙල්ප් - 03-13-2018, 01:43 PM

ඇයි මේක වැඩ කරන්නේ නැත්තේ? කොච්චර කලත් සර්ච් වෙන්නේ නැනේ රෙද්ද



image
Reply With Quote
(#2)
Old
Lakshan-Seram's Avatar
Lakshan-Seram Lakshan-Seram is offline
Senior Member
Lakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to behold
 
Posts: 15,758
Join Date: May 2011
Location: 127.0.0.1:8080/Kandy
Send a message via ICQ to Lakshan-Seram Send a message via AIM to Lakshan-Seram Send a message via MSN to Lakshan-Seram Send a message via Yahoo to Lakshan-Seram Send a message via Skype™ to Lakshan-Seram
03-13-2018, 01:53 PM

Form eka submit wenne na ne?

PHP Code:
<input type="submit"
or

PHP Code:
<button type="submit"></button

Last edited by Lakshan-Seram; 03-13-2018 at 01:57 PM.
Reply With Quote
(#3)
Old
lahiru1223 lahiru1223 is offline
Senior Member
lahiru1223 will become famous soon enough
 
Posts: 206
Join Date: Sep 2009
03-13-2018, 02:02 PM

Form eka vada karanda input type eka 'submit' wenda one.

<input type="submit" value="Search" name="submit" />

anika

if(isset($_POST["submit"])) >> balanda epa eka hama welema true moko value="Search" hama welema set wela thiyana nisa


if(isset($_POST["search"])) baluwanam neda hoda
Reply With Quote
(#4)
Old
Lakshan-Seram's Avatar
Lakshan-Seram Lakshan-Seram is offline
Senior Member
Lakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to beholdLakshan-Seram is a splendid one to behold
 
Posts: 15,758
Join Date: May 2011
Location: 127.0.0.1:8080/Kandy
Send a message via ICQ to Lakshan-Seram Send a message via AIM to Lakshan-Seram Send a message via MSN to Lakshan-Seram Send a message via Yahoo to Lakshan-Seram Send a message via Skype™ to Lakshan-Seram
03-13-2018, 02:05 PM

Quote:
Originally Posted by lahiru1223 View Post
Form eka vada karanda input type eka 'submit' wenda one.

<input type="submit" value="Search" name="submit" />

anika

if(isset($_POST["submit"])) >> balanda epa eka hama welema true moko value="Search" hama welema set wela thiyana nisa


if(isset($_POST["search"])) baluwanam neda hoda
Form eka submit da kiyala hoyala balala ithuru tika karapan. Oka wedagathma check ekak.
Reply With Quote
(#5)
Old
CloudX64's Avatar
CloudX64 CloudX64 is offline
Senior Member
CloudX64 is a name known to allCloudX64 is a name known to allCloudX64 is a name known to allCloudX64 is a name known to allCloudX64 is a name known to allCloudX64 is a name known to allCloudX64 is a name known to allCloudX64 is a name known to allCloudX64 is a name known to allCloudX64 is a name known to allCloudX64 is a name known to all
 
Posts: 3,668
Join Date: Nov 2014
Location: ❤️🅦🅔🅢🅣නාහිර
03-13-2018, 02:06 PM

bump
Reply With Quote
(#6)
Old
HKavinda's Avatar
HKavinda HKavinda is offline
Senior Member
HKavinda has a brilliant futureHKavinda has a brilliant futureHKavinda has a brilliant futureHKavinda has a brilliant futureHKavinda has a brilliant futureHKavinda has a brilliant futureHKavinda has a brilliant futureHKavinda has a brilliant futureHKavinda has a brilliant futureHKavinda has a brilliant futureHKavinda has a brilliant future
 
Posts: 34,689
Join Date: Dec 2013
Location: 🅸🅽🆃🅴🆁🅽🅴🆃
03-13-2018, 02:06 PM

ම්පි
Reply With Quote
(#7)
Old
ArunaTelshan's Avatar
ArunaTelshan ArunaTelshan is online now
Senior Member
ArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of light
 
Posts: 2,027
Join Date: Nov 2013
Location: Biyagama
03-13-2018, 03:50 PM

Quote:
Originally Posted by Lakshan-Seram View Post
Form eka submit wenne na ne?

PHP Code:
<input type="submit"
or

PHP Code:
<button type="submit"></button
Quote:
Originally Posted by lahiru1223 View Post
Form eka vada karanda input type eka 'submit' wenda one.

<input type="submit" value="Search" name="submit" />

anika

if(isset($_POST["submit"])) >> balanda epa eka hama welema true moko value="Search" hama welema set wela thiyana nisa


if(isset($_POST["search"])) baluwanam neda hoda
Quote:
Originally Posted by Lakshan-Seram View Post
Form eka submit da kiyala hoyala balala ithuru tika karapan. Oka wedagathma check ekak.
Quote:
Originally Posted by CloudX64 View Post
bump
Quote:
Originally Posted by HKavinda View Post
ම්පි

තැන්කූ හැමෝටම 6+

button එකේ type=submit කියල දුන්නම වැඩේ හරි ගියා
Reply With Quote
(#8)
Old
ArunaTelshan's Avatar
ArunaTelshan ArunaTelshan is online now
Senior Member
ArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of light
 
Posts: 2,027
Join Date: Nov 2013
Location: Biyagama
03-13-2018, 03:58 PM

Quote:
Originally Posted by lahiru1223 View Post
Form eka vada karanda input type eka 'submit' wenda one.

<input type="submit" value="Search" name="submit" />

anika

if(isset($_POST["submit"])) >> balanda epa eka hama welema true moko value="Search" hama welema set wela thiyana nisa


if(isset($_POST["search"])) baluwanam neda hoda




නිකන් තියෙද්දී මේ වගේ එන්නේ උබ ඒ කිවුව එක නිසාද බං


මේ මගේ code එක


Code:
<div class="container pt-5">
    <div class="row mb-4">
        <div class="col-sm-10 col-xs-10 col-md-12 col-lg-12">
            
        <form action="index.php" method="post">
            

        <div class="input-group mb-3">
            
          <input type="text" class="form-control" placeholder="Search by Employee Name or ID" name="search">
            
          <div class="input-group-append">
            <input class="btn btn-outline-primary" type="submit" name="s_by_name" value="Name">
            <input class="btn btn-outline-primary" type="submit" name="submit" value="ETF No">
          </div>
            
        </div> 
        </form>
        </div>
          
<?php
    $min_no = 3;
    $min_name = 2;
        
        
if(isset($_POST['submit'])) {
     
$search = $_POST['search'];
$data = "SELECT * FROM employee WHERE etf_no = '$search'";
$result=mysqli_query($connection,$data);

    while($rows=mysqli_fetch_array($result)) {
           
     $etf = $rows['etf_no'];
     $name = $rows['name'];
     $address = $rows['address'];
     $nic = $rows['nic']; 
     
    }
}       
    

?>
        
        
       
</div>
    

<table class="table">
    <tbody>
        <tr>
          <th>ETF No :</th>
            <td><?php echo $etf ?></td>
        </tr>
        <tr>
          <th>Full Name :</th>
            <td><?php echo $name ?></td>
        </tr>
        <tr>
          <th>Address :</th>
            <td><?php echo $address ?></td>
        </tr>
      <tr>
          <th>NIC :</th>
            <td><?php echo $nic ?></td>
        </tr>
      <tr>
          <th>Birthday :</th>
            <td><?php echo $name ?></td>
        </tr>
      <tr>
          <th>Join Date :</th>
            <td><?php echo $name ?></td>
        </tr>
    </tbody>
</table>
Reply With Quote
(#9)
Old
LazyLizard's Avatar
LazyLizard LazyLizard is online now
Senior Member
LazyLizard has much to be proud ofLazyLizard has much to be proud ofLazyLizard has much to be proud ofLazyLizard has much to be proud ofLazyLizard has much to be proud ofLazyLizard has much to be proud ofLazyLizard has much to be proud ofLazyLizard has much to be proud ofLazyLizard has much to be proud ofLazyLizard has much to be proud ofLazyLizard has much to be proud of
 
Posts: 45,676
Join Date: Aug 2015
Location: කටුකරෝලගම
Send a message via ICQ to LazyLizard
03-13-2018, 04:06 PM

Quote:
Originally Posted by ArunaTelshan View Post


නිකන් තියෙද්දී මේ වගේ එන්නේ උබ ඒ කිවුව එක නිසාද බං


මේ මගේ code එක
සබ්මිට් කරන්න කලින් විස්තර පෙන්නන්න ඕනේ නෑ නේද ෆෝම් එක සබ්මිට් නං විතරක් විස්තර පේන්න දාන්න.
Reply With Quote
(#10)
Old
ArunaTelshan's Avatar
ArunaTelshan ArunaTelshan is online now
Senior Member
ArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of lightArunaTelshan is a glorious beacon of light
 
Posts: 2,027
Join Date: Nov 2013
Location: Biyagama
03-13-2018, 04:21 PM

Quote:
Originally Posted by LazyLizard View Post
සබ්මිට් කරන්න කලින් විස්තර පෙන්නන්න ඕනේ නෑ නේද ෆෝම් එක සබ්මිට් නං විතරක් විස්තර පේන්න දාන්න.
එක හදාගත්ත මුළු table එකම echo එකක් ඇතුලට දාල.. මන් ඒ කරපු දේ හරිද දන්නේ නෑ තැන්කු idea ekata ..

ElaKiri.com Message
You must spread some Reputation around before giving it to LazyLizard again.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright © 2006 - 2011 ElaKiri™ Beta2.Evo vBulletin, vBa iBproArcade Subdreamer I-Magic MKv

Page generated in 0.02794 seconds with 11 queries