1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

php live search product ?

Discussion in 'PHP' started by gether, Jul 13, 2013.

  1. #1
    how do i implement a php live search in an html page ...

    so that it can check my products in stock ?
     
    gether, Jul 13, 2013 IP
  2. stelthius

    stelthius Member

    Messages:
    34
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    38
    #2
    i think that would be the use of ajax & database? i maybe wrong though.
     
    stelthius, Jul 13, 2013 IP
  3. gether

    gether Member

    Messages:
    87
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #3
    [​IMG]

    [​IMG]

    i want a search like that ...i check the stock .. make it available ...and i am not sure how to do that ...
     
    gether, Jul 13, 2013 IP
  4. gether

    gether Member

    Messages:
    87
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #4
    [​IMG]

    i want the option to keep showing up .. as soon as i start typing letters ...
     
    gether, Jul 13, 2013 IP
  5. stelthius

    stelthius Member

    Messages:
    34
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    38
    #5
    As i said i think you would need to make use of ajax, mysql & php :)
     
    stelthius, Jul 14, 2013 IP
  6. gether

    gether Member

    Messages:
    87
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #6
    [​IMG]

    [​IMG]

    i have to make use of html php mysql and ajax ?

    on form submit it sends it to the php script and the ajax script ?
    ok.. so ajax is javascript .. now i need to install the software for javascript ..



    <html>
    <head>
    <?php
    <script>
     
    Last edited: Jul 14, 2013
    gether, Jul 14, 2013 IP
  7. stelthius

    stelthius Member

    Messages:
    34
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    38
    #7
    the ajax is to display the live results as you type in a variable from the database.

    http://www.w3schools.com/php/php_ajax_livesearch.asp
    http://blog.ninetofive.me/blog/build-a-live-search-with-ajax-php-and-mysql/


    Google will certainly be your god in this case ;)


    https://www.google.co.uk/search?q=ajax+live+search&oq=ajax+live+search&aqs=chrome.0.69i57j5j0l2j69i62l2.2818j0&sourceid=chrome&ie=UTF-8
     
    stelthius, Jul 14, 2013 IP
  8. stelthius

    stelthius Member

    Messages:
    34
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    38
    #8
    actually i just re-read your OP do you just want to include the php search engine or actually make a live search ? please clarify.
     
    stelthius, Jul 14, 2013 IP
  9. gether

    gether Member

    Messages:
    87
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #9
    ok .. do i need a javascript live search ?
    or a php live search ?


    <html>
    <script>
    >%%%%%%%

    <?php

    >%%%%%%%

    which is the most easiest to implement ?
     
    Last edited: Jul 14, 2013
    gether, Jul 14, 2013 IP
  10. stelthius

    stelthius Member

    Messages:
    34
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    38
    #10
    you didnt answer my question so its hard to say really. Are you trying to implement an already existing search or making your own
     
    stelthius, Jul 14, 2013 IP
  11. gether

    gether Member

    Messages:
    87
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #11
    it would be better if i can make my own in php language... since i am a bit familiar with that language ... and am not familiar with the javascript equivalent of fetch

    [​IMG]

    if its javascript ?

    [​IMG]

    [​IMG]
    [​IMG]
    ...
     
    Last edited: Jul 14, 2013
    gether, Jul 14, 2013 IP