Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: ArturoRobles

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
A suggest control "customerName" which the underlining sql is simply selecting customer_id and customer_name from MySQL

For the moment I am using the following logic to detect whether something is found from the database and I am curious on how the others do it with PM?
Code: Select all
if ($("#customerName").getValue() == $("#customerName").getText()) {
// code for result NOT found
} else {
// code for result found
Sorry for the confusion. The query is simply "SELECT CUSTOMER_ID, CUSTOMER_NAME FROM CUSTOMER"

Let's say the table "CUSTOMER" contains records below

1, 'Steve'
2, 'Mary'
3, 'John'

Name of the Suggest control is customerName

If user input and select 'Steve' on the control $("#customerName").getValue() will return 1 and $("#customerName").getText() returns 'Steve', meaning that the two does not matches.

However, if I input 'Nicholas', both $("#customerName").getValue() and $("#customerName").getText() return 'Nicholas'

nothing will be found and below condition if ($("#customerName").getValue() == $("#customerName").getText()) { will be fullfilled

COME ONNNNNN GUYS :oops: Is there really no one […]

Configuracion env.ini

Hi, The default value for upload_attempts_limit_pe[…]

Hi, Please check the following links: http://pml[…]


Téléchargez des sonneries SMS, des s[…]