Error with Arrays
| From: | Nitesh Shah \(QualiSpace\) | Date: | Tue, 30 May 2006 13:29:10 +0000 |
| Subject: | Error with Arrays | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-31660@lists.php.net to get a copy of this message | ||
Hello,
I get the following error while running a PHP script on my server.
The error message is as below
Warning: array_merge() [
<http://monitor.qualispace.com/admin/function.array-merge>
function.array-merge]: Argument #2 is not an array in
/phpservmonv3/admin/update.php on line 83
The extract of the code is given below
<?PHP
} else if ($finalupdate == "YES") {
$servername = $_SESSION['servname'];
$serverip = $_SESSION['serverip'];
$serverid = $_SESSION['serverid'];
$oldservices = $_SESSION['oldservices'];
$nservices = $_POST['nservices'];
$allservices = array_merge($nservices,$oldservices); // This is
the line number 83 which throws the error
$total_services = count($allservices);
#$total_services = count($oldservices) + count($nservices);
echo "Updating <b> $servername </b> with <b> $total_services
</b>
Services <BR> ";
Can you please help me find the solution to this error message?
Warm Regards,
Nitesh Shah
System Admin
Technical Desk
QualiSpace - A QuantumPages Enterprise
===========================
Tel India: +91 (22) 6792 - 1480
Tel US: +1 (614) 827 - 1224
Fax India: +91 (22) 6792 - 1484
URL: <blocked::http://www.qualispace.com/> http://www.qualispace.com
===========================
For Any Technical Query Please Use:
<blocked::http://helpdesk.qualispace.com/> http://helpdesk.qualispace.com
QualiSpace Community Discussion forum:
<blocked::http://forum.qualispace.com/> http://forum.qualispace.com