PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm using an AJAX script to do auto-complete text field and it takes values from DB.
The problem that the code below give only the last value when I type inside the text field but when I print the result (print $names;) it gives all the values. The solution is that the varuable that holds the values should look like this:
AYYASH wrote:I'm using an AJAX script to do auto-complete text field and it takes values from DB.
The problem that the code below give only the last value when I type inside the text field but when I print the result (print $names;) it gives all the values. The solution is that the varuable that holds the values should look like this:
Sorry, age doesn't prevent brilliance. Some would argue its the best way to accomplish it, in fact.
Thanks Roja.
Well, age comes with huge responsibilities. If I'm 20 and all what I have is to study only. I would have bigger chance to learn than a 30 years old man who is married, have kids, have to work hard to feed them, pay all bills, etc...
Now I'm able to show the name in the text field but the trick now is how I can post the id instead of the name.
Ineed the name to appear in the text field and its id be sent to the db. T
his is how the text field looks like: