Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Search by hidden column
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Search by hidden column
#47776
Search by hidden column 10 Years, 9 Months ago Karma: 0
Hello Team,

Thank you for great application that is simple to install and very nice to use.

I have installed your module in my site: checkphone.org/

But cam across next problem. In my table there is a first column with mobile phone IMEI (TAC) number, I would like to search models by this number, but I don't want to show these numbers in column.

I means that if visitor types IMEI number and this number exists in database - it appears.

I switched first column to "Hidden" stage in your module settings and search does not work any more by this column.

Please prompt how I may have search available by hidden column.

Thank you very much for your effort.
The administrator has disabled public write access.
 
#47778
Re:Search by hidden column 10 Years, 9 Months ago Karma: 760
Hello,

The extension doesn't support this ability. A possible solution is creating a search form outside the module and send search string from the form to the module. It is possible to use request variables in "WHERE" of SQL query (if you show data from a database) or in filters (if data from a CSV file).

Variables are used in the following way:

{$REQUEST:VAR_NAME}

Where VAR_NAME is a name of request parameter.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#47993
Re:Search by hidden column 10 Years, 9 Months ago Karma: 0
Thank you very much for the quick answer.

I have done it, but still have a problem.

Like you you check checkphone.org/?TAC=0

returns right result, because TAC exists, but when I open page without any variables like this: checkphone.org/

It returns error:

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''%') LIMIT 0, 100' at line 1 SQL=select DISTINCT * from t8dsv_phones where TAC like CONCAT(,'%') LIMIT 0, 100

because there is no TAC variable and {$REQUEST:VAR_NAME} is empty.

this is an SQL request:

select DISTINCT * from t8dsv_phones where TAC like CONCAT({$REQUEST:TAC},'%') LIMIT 0, 100


Could you please advise.
The administrator has disabled public write access.
 
#47995
Re:Search by hidden column 10 Years, 9 Months ago Karma: 760
Use the following query:

select DISTINCT * from t8dsv_phones where TAC like CONCAT({$REQUEST:TAC|empty:''},'%') LIMIT 0, 100

Regards,
ARI Soft
The administrator has disabled public write access.
 
#48005
Re:Search by hidden column 10 Years, 9 Months ago Karma: 0
This works well ! Great thanks.
The administrator has disabled public write access.
 
Go to topPage: 1