Sat, June 10, 2023
https://devcodepro.comdevcodepro
Home · Latest · Trends
1

PHP 8 join(): Argument #1 ($pieces) must be of type array, string given

$id = join(',',$val);

##replace with

if (!empty($val)) {
 $id = join(',', $val);
}else{
 $id = join(',', array_filter(array(@$val)));
}
AD ยท www.interserver.net/r/240055 

Interserver | Standard & VPS Cloud Hosting | $2.50 /Month

Flexible VPS hosting platform to deploy your online projects. Economical and balanced between processor cores, memory and storage
rated 1 times (1) (0)
comments: 1 / hits: 2567  / 2 years ago, sun, may 2, 21, 03:34:47
More From » PHP
 

Comments

0
I have the same problem, Hoe someone giving help for it
[#61] Thursday, June 9, 2022, 4:22:53
 
Ferdinand Juko Randrianirimiadana
commented 1 year ago
Only authorized users can post. Please sign in first, or register a free account
Login with Google
 
Share
Posted
go
Member since May 1, 2021
Total Code Snippets: 2
Total Comments: 0
Location: n/a
go snippets
2 years ago, sat, may 1, 21, 5:53:49
<?php include ('classes/adodb.inc.php'); $dbdriver = 'mysqli'; $server = 'localhost'; $user = 'root'; $password = 'testpass'; $database = 'dbname'; $conn = ADONewConnection($dbdriver); $conn->Connect($server, $user, $password, $database); if (!$conn->isConnected()): echo 'No Connected'; die(); else: echo 'Connected'; endif; ?>
comments: 0 / hits: 565
PHP