![]() |
PHP script: query Reviewpost database, count # reviews, store result in 'user' table
What I'm trying to do is create a PHP script (that I'll run at regular intervals via vB cron) that will query a Reviewpost database and count how many reviews a user has made and then post the result for each user in a field in the user database.
I'm new to PHP so your help would be most appreciated. What I've managed to come up with so far is the mySQL query: Code:
SELECT Reviewpost databse name: reviews Forum database name: forums Forum database field: reviewsposted |
This should work.
Code:
UPDATE userstable AS u |
All times are GMT. The time now is 06:47 AM. |
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:
|