Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 15 Hours, 29 Minutes ago.

Welcome, Guest
Please Login or Register.    Lost Password?

Where statements
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Where statements
#9953
Where statements 1 Year, 7 Months ago  
Great component. Absolutely a time saver when dealing with massive amounts of content/products.

I'm having a little trouble filtering, and I can't find any help on the "where" statement. Can you let me know what sort of operators I have access to when using where?

I found that where X_X != 0 worked, but I have tried LIKE "CONTENT" and not had it work.

Do you have any tutorial or help file for this?

Thanks!
Brian Read
Posts: 2
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#9957
Re: Where statements 1 Year, 7 Months ago  
You should be able to put any where statements in there that would also work in your normal mysql queries.
If you are trying to find fields that contains "CONTENT", you should do this:
X_X LIKE "%CONTENT%"
Without the % it is pretty much the sam as doing:
X_X = "CONTENT"
Peter van Westen
Admin
Posts: 9165
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#9980
Re:Where statements 1 Year, 6 Months ago  
Thanks! Perfect!

One more question. I import a lot of items and that can leave columns as null. I've tried to search for those items. Is there any way to do a replace of that within the current DB Replacer?
Brian Read
Posts: 2
User OfflineClick here to see the profile of this user
Last Edit: 2010/07/17 02:49 By gbreader.
The administrator has disabled public write access.
 
#9985
Re:Where statements 1 Year, 6 Months ago  
Momentarily it isn't possible to replace NULL values...
Peter van Westen
Admin
Posts: 9165
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#14461
Re:Where statements 11 Months, 1 Week ago  
Hi, this is a reply for the initial purpose of this thread about the WHERE filter.

I dont have any knowledge in DB statement and commands. I'm having a little problem understanding and applying the command presented in this thread.

I have a few questions... from an example:

As I understand it "TABLE","COLUMNS" and "WHERE" are filters. The latest needs to be adjusted in DB statement coding form.

I am looking for article titles that has the expression "guitar" in it.

From what I understand I should toggle "jos_content" in the first box, then "title" in the second box, but what statement should I put in the third box to look for the expression "guitar"?

Am I understanding this the wrong way?

Thanks a bunch,
Alex
Quebec Guitare
Posts: 14
User OfflineClick here to see the profile of this user
Last Edit: 2011/03/07 12:24 By quebecguitare.
The administrator has disabled public write access.
 
#14464
Re:Where statements 11 Months, 1 Week ago  
try:
`title` LIKE '%guitar%'
Peter van Westen
Admin
Posts: 9165
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#14508
Re:Where statements 11 Months, 1 Week ago  
Great! It worked! Many thanks!

Alex
Quebec Guitare
Posts: 14
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Peter van Westen
MaxCDN | Content Delivery Network | Accelerate your site to the max
Open Source Training | Online Joomla! Training and Support
hosting joomla