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?

1 column variable, 2nd column range of variables
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: 1 column variable, 2nd column range of variables
#48589
1 column variable, 2nd column range of variables 10 Years, 8 Months ago Karma: 0
Hi!
I think I'm close, but can't seem to make the final piece fit. I have a column with months and days (birthday) I want to run a report where the user can put in the month and a date range and pull the month and date range for the birthdays.

This is what I have so far for my article:
<form action="#" method="post">
Month:<input name="start" type="cb_birthmonth" /><br />
Day Start:<input name="start2" type="cb_birthd" /><br />
Day End:<input name="End2" type="cb_birthd" /><br />
<input type="submit" />&nbsp;</form>

This is what I have for my query:
SELECT firstname AS FirstName, lastname AS LastName,
cb_birthmonth AS BirthMonth, cb_birthd AS BirthDay
FROM
joom_comprofiler
WHERE
({$REQUEST:start|empty:''} = '' OR cb_birthmonth >= {$REQUEST:start|empty:''}) AND
({$REQUEST:start2|empty:''} = '' OR cb_birthd < {$REQUEST:End2|empty:''})
ORDER by cb_birthd ASC


You helped me before figure out the start|end, but I think I have messed it up. Any help is greatly appreciated.
Thanks!
The administrator has disabled public write access.
 
#48590
Re:1 column variable, 2nd column range of variables 10 Years, 8 Months ago Karma: 760
Hello,

Try the following query:

Code:


SELECT 
  firstname AS FirstName, 
  lastname AS LastName,
  cb_birthmonth AS BirthMonth, 
  cb_birthd AS BirthDay
FROM
  joom_comprofiler
WHERE
  ({$REQUEST:start|empty:''} = '' OR cb_birthmonth >={$REQUEST:start|empty:''})   
   AND
  ({$REQUEST:start2|empty:''} = '' OR cb_birthd >= {$REQUEST:start2|empty:''})
  AND
  ({$REQUEST:End2|empty:''} = '' OR cb_birthd <= {$REQUEST:End2|empty:''})
ORDER BY 
  cb_birthd ASC



Regards,
ARI Soft
The administrator has disabled public write access.
 
#48598
Re:1 column variable, 2nd column range of variables 10 Years, 8 Months ago Karma: 0
Thank you! Thank you ! Thank you!

One last questions
Is there a way to remove the search box in the top of the table and the "Showing entries" at the bottom of the table and still have a nice looking table?
Thanks!
Last Edit: 2014/03/26 15:11 By tknight.
The administrator has disabled public write access.
 
#48602
Re:1 column variable, 2nd column range of variables 10 Years, 8 Months ago Karma: 760
Add the following code to "CSS Styles" parameter in module settings:

{$id}_filter {display:none}

and set "Choose table type -> ARI Data Table -> Table information" parameter to "No".

Regards,
ARI Soft
The administrator has disabled public write access.
 
#48604
Re:1 column variable, 2nd column range of variables 10 Years, 8 Months ago Karma: 0
Thank you!
Always one last thing with me
Sorry.

I have my report and it runs great as an article in the front end of the website for registered users. Is there a way to put the article in the administrator - or back end of the website in the Cpanel or on a dropdown menu?

I've tried in the admin adding a custom HTML module to the Cpanl and the I can see the text, but it doesn't pull any data. I've tried with only pulling the data and not any request fields, and that didn't work either.

Any thoughts or ideas?
Thank you so much!
The administrator has disabled public write access.
 
#48606
Re:1 column variable, 2nd column range of variables 10 Years, 8 Months ago Karma: 760
"ARI Data Tables" is a frontend extension.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12