pasargad Posted December 11, 2022 Share Posted December 11, 2022 Hello everyone I have a Telegram module. It's working in PHP 7.4 but after update to WHMCS 8.6.1 and change PHP version to 8.1 it's not working. problem is on: $getAdminUsername = full_query("SELECT * FROM `tbladmins` WHERE `id`='{$adminid}'"); $getAdminUsername = mysql_fetch_assoc($getAdminUsername); After I change mysql_fetch_assoc to mysqli_fetch_assoc it returns nothing. What is the problem? Thank you 0 Quote Link to comment Share on other sites More sharing options...
0 AladdinJ Posted December 11, 2022 Share Posted December 11, 2022 you shoud use this way to interact with databasehttps://developers.whmcs.com/advanced/db-interaction/ 0 Quote Link to comment Share on other sites More sharing options...
Question
pasargad
Hello everyone
I have a Telegram module.
It's working in PHP 7.4 but after update to WHMCS 8.6.1 and change PHP version to 8.1 it's not working.
problem is on:
$getAdminUsername = full_query("SELECT * FROM `tbladmins` WHERE `id`='{$adminid}'"); $getAdminUsername = mysql_fetch_assoc($getAdminUsername);After I change mysql_fetch_assoc to mysqli_fetch_assoc it returns nothing.
What is the problem?
Thank you
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.