Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2009
    Thanked 0 Times in 0 Posts

    Multiple values async from database with php

    Hi Guys,
    I have a search feature that displays the number of results onblur. i.e. you type the query string and it would display "15 results available click search" using ajax, php and mysql.

    I now want to add categorisation so in addition to showing how many results are available it should also say i.e.
    "6 available in cat a"
    "2 available in cat b" and so on upto 6 as well as total results available.

    I cant seem to get ajax to pass more than one database result!
    I cant find a solution using jquery any ideas appreciated.


  2. #2
    Senior Coder
    Join Date
    Feb 2009
    Ilkley, West Yorkshire, UK
    Thanked 727 Times in 721 Posts
    You need to pass your data back as json encoded - which will allow multiple values. Google will find you numerous examples.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts