Edit a customer

"; } } else { $ok = false; $error.="Error in number conversion: the variable 'pindex' is not any number
"; } } else { $ok = false; $error.="Error: The param 'pindex' are not passed
"; } if($ok) { $result = loadCustomerFromDB($pindex); if ($result->isError) { $error.=$result->error . PHP_EOL; $ok=false; } } if($ok) { echo count($result->arr) . '
'; $customer = $result->arr[0]; echo $customer->lastname; } else{ echo '' . PHP_EOL; echo $error . PHP_EOL; } ?>