[Solved] How to store users transactions history on database and how to show the transaction history whenever a user wants to view their transactions

[ad_1] How to store users transactions history on database and how to show the transaction history whenever a user wants to view their transactions [ad_2] solved How to store users transactions history on database and how to show the transaction history whenever a user wants to view their transactions

[Solved] PHP version unsupported [closed]

[ad_1] I am not sure what scanner you are using, but the PHP versions on both of your servers are no longer supported since 2017. It would be prudent to upgrade the PHP version on both of your servers to at least PHP 7.3 Using old versions is insecure and could lead to hacks and … Read more

[Solved] String concatenation and JSON value cause error in PHP [closed]

[ad_1] You have a string concatenation (.=) syntax error. Change $xml. = “<Contact> to $xml .= “<Contact> I’m strictly answering the question about the “string concatenation” PHP error. No downvotes for anything except this point, please. But yes, try not to generate XML manually. I closed </Contact>s for you below. $xml=”<Contacts>”; for ($i = 0; … Read more

[Solved] How to get top five calculations only to appear

[ad_1] Three problems. ORDER BY dogs.affix LIMIT 5 returns bottom 5 not top. It should be ORDER BY dogs.affix DESC LIMIT 5 to get the top. affix returns either null or an emprty string and that’s why you are getting the first error. Define this field as int not null default 0 in your database. … Read more

[Solved] What to do with mysqli problems? Errors like mysqli_fetch_array(): Argument #1 must be of type mysqli_result and such

[ad_1] TL;DR Always have mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); in your mysqli connection code and always check the PHP errors. Always replace every PHP variable in the SQL query with a question mark, and execute the query using prepared statement. It will help to avoid syntax errors of all sorts. Explanation Sometimes your MySQLi code produces an … Read more

[Solved] Parse error: syntax error unexpected T_CONSTANT_ENCAPSED_STRING [closed]

[ad_1] This is mostly syntax errors. If you want to declare an array, you either use array() or the shorthand []: $Config[‘URL’] = array( ‘Default’ => array( ‘Require.www’ => false, // www.example.com ‘SSL.enabled’ => true, // https:// ‘Server’ => ‘***’, // public server ‘Lang’ => ‘en_US’ // GLOBAL. ) , ‘Other’ => ” //’example.com’ => … Read more