Autocomplete Search Record From Database Using Bootstrap 4, PHP, MySQLi & Ajax


[ad_1]
https://i.ytimg.com/vi/23QAc7PjpiI/hqdefault.jpg



Hello World! Today I’, showing you how to create an Autocomplete search record from the database using Bootstrap 4, PHP, MySQLi Object Oriented and Ajax.

If you like my works and my video tutorials then you can donate me some amount. You can donate through these links :

Paypal : https://www.paypal.me/wolfmania

Instamojo (Credit/Debit Card & UPI) : https://www.instamojo.com/@wolfmania

Thanks for watching this video. If you like this video then hit like button, share this video, And Subscribe my Channel. Also like my Facebook page for latest updates.

♥ Facebook Page – https://www.facebook.com/dcodemania
♥ Myself On FB – https://www.facebook.com/sahil4rock
♥ Instagram – https://www.instagram.com/sahil4rock
♥ Twitter – https://twitter.com/dcodemania

Original source


26 responses to “Autocomplete Search Record From Database Using Bootstrap 4, PHP, MySQLi & Ajax”

  1. @DCodeMania Sir can you please share the source code for this ……I need this for my final year project plz help me sir I have been searching for this from last 2 months plz share the code sir ..I will be very thankful to you nightcoremixneptune@gmail.com

  2. Sir can you please share the source code for this ……I need this for my final year project plz help me sir I have been searching for this from last 2 months plz share the code sir ..I will be very thankful to you theflash.ab101@gmail.com

  3. Hello can you help me with this error please
    Parse error: syntax error, unexpected '$query' (T_VARIABLE) in C:xampphtdocsauto_compaction.php on line 8

    Here is the source code for action.php:
    ===============================

    <?php

    $conn = new mysqli("localhost","root","","php_auto");

    if($conn->connect_error){

    die("Failed to connect!".$conn->connect_error);

    }

    if(isset($_POST['query'])){

    $inpText=$_POST['query']

    $query="SELECT country FROM auto_comp WHERE country LIKE '%$inpText%' ";

    $result = $conn->query($query);

    if($result->num_rows>0){

    while($row=$result->fetch_assoc()){

    echo "<a href='#' class='list-group-item list-group-item-action border-1'>".$row['country']."</a>";

    }

    }

    else{

    echo "<p class='list-group-item border-1'>No Record</p>";

    }

    }

    ?>

  4. bro an other question ,,,,,,, how to show new label tag with every fresh post dynamically for specific time ? it will be hide automatically when post get old like 1 day or after or 8 hours on our commands ,,,,,,,,,,,, ?????????? with timestamp ?

Leave a Reply