Hi,
I am facing an issue with my website which is running on a VPS. Yesterday, Some of the MySQL tables crashed and I got it repaired from my web hosting company. They also changed some of the parameters in my.cnf files. Since then, one of the conditions set in my coding for "adding language pairs" in user's profile has stopped working.
My website is an online marketplace for translators and translation clients. A free member can enter up to 2 language pairs(first table which got crashed) in his profile where as paid member can enter up to 18 language pairs. But, after my web hosting company resolved the issue of crashed tables in my database. This condition has stopped working i.e. whether a user is a free member or a paid member they are now able to enter "n" number of language pairs to their profile. However, a free member should only be allowed to enter 2 language pairs and paid member cannot enter more than 18 language pairs. However, when I run the same script on local server the condition works fine. How can I fix this issue and prevent it in future?
Q How language pair is added to user's profile?
A There is a "+" button available on user's profile page- by clicking + button a pop window with two drop downs open up, one drop down is for selecting "source language" and second drop down is for selecting "target language". After the user has selected languages in both drop down he clicks on submit button and the pop up window and main webpage(where language pair is displayed) are refreshed, and then the language pairs are displayed on user's profile and stored in the database.
I am facing an issue with my website which is running on a VPS. Yesterday, Some of the MySQL tables crashed and I got it repaired from my web hosting company. They also changed some of the parameters in my.cnf files. Since then, one of the conditions set in my coding for "adding language pairs" in user's profile has stopped working.
My website is an online marketplace for translators and translation clients. A free member can enter up to 2 language pairs(first table which got crashed) in his profile where as paid member can enter up to 18 language pairs. But, after my web hosting company resolved the issue of crashed tables in my database. This condition has stopped working i.e. whether a user is a free member or a paid member they are now able to enter "n" number of language pairs to their profile. However, a free member should only be allowed to enter 2 language pairs and paid member cannot enter more than 18 language pairs. However, when I run the same script on local server the condition works fine. How can I fix this issue and prevent it in future?
Q How language pair is added to user's profile?
A There is a "+" button available on user's profile page- by clicking + button a pop window with two drop downs open up, one drop down is for selecting "source language" and second drop down is for selecting "target language". After the user has selected languages in both drop down he clicks on submit button and the pop up window and main webpage(where language pair is displayed) are refreshed, and then the language pairs are displayed on user's profile and stored in the database.