[Solved] How to get a post request URL parameter (php)? [closed]
[ad_1] use this code to get a post url parameter $_POST[‘param’] [ad_2] solved How to get a post request URL parameter (php)? [closed]
[ad_1] use this code to get a post url parameter $_POST[‘param’] [ad_2] solved How to get a post request URL parameter (php)? [closed]
[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
[ad_1] Remove the first else, add { and } and remove the ticks: <?php include ‘desciptions.php’; include ‘title.php’; $rand=rand(0,67); if($rand == 1) { $desciptions = $d1; $title = $m1; } else if($rand == 2) { $desciptions = $d2; $title = $m2; } else if($rand == 0) { $desciptions = $d0; $title = $m0; } ?> … Read more
[ad_1] You are using the wrong version of PHP. The version of PHP that you are using does not support the feature of trailing commas in parameter lists when making calls. This is a feature that was added in 7.3. The error proves this. For Laravel 8 you need PHP >= 7.3. PHP.net manual – … Read more
[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
[ad_1] Currently your two arrays are equal and just printed diffrently. The only difference, I could see is, that one array uses strings as values and the other not. To change this, you could explicitly cast the values with array_map. $int_array = array_map(function ($a) { return (string) $a; }, $array); If you just want the … Read more
[ad_1] This should do what you need: if (($time1-$time2) == 86400) { // Exactly 24 hours have passed. } 3 [ad_2] solved Comparing timestamps in PHP
[ad_1] Add <select name=”foo” onchange=”javascript:this.form.submit();”> [ad_2] solved Help needed in refining PHP search [closed]
[ad_1] To run schedule tasks on server use cron. With cron you can run php file that will read data from database and send email. [ad_2] solved A PHP platform to post messages on specific date [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
[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
[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
[ad_1] Replace $list_per[$item] = $nama; With $list_per[$nama[‘id_perusahaan’]] = $nama[‘name_perusahaan’]; 0 [ad_2] solved How to change this array key based on this mysql result
[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
[ad_1] I have in the past gathered errors into an array as the page is loading, then at the bottom of the page when the page is finished loading, if there are errors, the php script will write a jQuery script to the div container similar to this: <div id=”errors”></div> <?php //if something goes wrong … Read more