![]() |
a tough query
I need help writing a query.
In the "user" table I have "planid" I want to link that to a table named "hosting_plans". In "hosting_plans" I have "subscriptionid". I want to link that to the table "subscriptionlog". Then I'll have to write up a cron that will check if the user still has the subscription which I also don't know how to write but I'll look at others for an idea. |
So um... what data do you need? Just the columns listed above? Are you showing users that ARE subscribed or those who are not? (etc)
This might get you started... need more info though: Code:
SELECT |
I want to show who are not subscribed. I edited the code to show "sl.status = 1" but it doesn't return any rows. I know that there is row in the "subscriptionlog" table with the "status" using the value "1".
What I want it to do is check if the user's subscription has expired. Code:
SELECT |
Not subscribed, as in they used to be? Add "&& sl.expirydate < " . TIMENOW . "
|
Thank you. Now I have to put it in PHP form but I can manage that.
|
All times are GMT. The time now is 09:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|