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?

(SOLVED) Breezing Forms - how to get one user info
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: (SOLVED) Breezing Forms - how to get one user info
#42036
(SOLVED) Breezing Forms - how to get one user info 11 Years, 5 Months ago Karma: 0
I will come back and post my answer here.


I want to create a table but with only one user's record.

I used Join in my Select statement to connect the #__users table and the #__facileforms_subrecords table.

But to get all the #__facileforms_subrecords records that match one user, I need to know the #__facileforms_subrecords.recordk and the #__users table does not use that value in any of it's fields (so I can't join with that field).

So I need to first find the value of #__facileforms_subrecords.record for the current user, then use that value to find the rest of the records.

I can find the #__facileforms_subrecords.record for the current user by doing this select statement.

SELECT
#__facileforms_subrecords.value,
#__facileforms_subrecords.title,
#__facileforms_subrecords.record,
#__users.name,
#__users.id
FROM #__users
RIGHT JOIN #__facileforms_subrecords
ON #__users.name=#__facileforms_subrecords.value
WHERE #__users.id = {$UserId}


I want a report that includes:


WHERE #__facileforms_subrecords.name IN ("sparkname", "name", "Week1ChalPts", .....)
Order By Case #__facileforms_subrecords.name
When "sparkname" Then 1
When "name" Then 2
When "Week1ChalPts" Then 3
,,,,,,
Else n End

But if I do both WHERE parts as one WHERE with an AND, I only get the element that has the users.name value in it.
If I do an OR, I get all the records including ones that don't belong to the user running the report.

How do I get a record ID for the current user, using the first SELECT and then find all the records that belong to that user using the WHERE declared just above?

Can I store a variable from the first Select then use that variable? I tried this and got errors, so please give exact syntax if this is possible.
Is there another way to create a report for just one user?

Thanks, Jane
Last Edit: 2013/06/15 09:22 By BussupARI.
The administrator has disabled public write access.
 
#42040
Re:(SOLVED) Breezing Forms - how to get one user info 11 Years, 5 Months ago Karma: 760
Hello,

Send SQL dump of tables which are used in the query or provide a link to a page where we can see the problem and a temporary access to your J! backend by email so we can investigate the problem.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#49121
Re:(SOLVED) Breezing Forms - how to get one user info 10 Years, 7 Months ago Karma: 0
i have this problam please guide me.
i want display records of user
Last Edit: 2014/04/27 08:10 By saso.
The administrator has disabled public write access.
 
#49122
Re:(SOLVED) Breezing Forms - how to get one user info 10 Years, 7 Months ago Karma: 760
Hello,

Send your order number by email please.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#49123
Re:(SOLVED) Breezing Forms - how to get one user info 10 Years, 7 Months ago Karma: 0
record for users only display for user
I want select records that have same value and one user of joomla add it in database table
Last Edit: 2014/04/27 08:19 By saso.
The administrator has disabled public write access.
 
#49124
Re:(SOLVED) Breezing Forms - how to get one user info 10 Years, 7 Months ago Karma: 760
Send your order number.

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