becomestry { $result = rpm_req('CustomerAdd',' "Customer": { "Name": "'.$customer['name'].'", "Website": "'.$customer['website'].'", "Address": "'.$customer['address'].'", "City": "'.$customer['city'].'", "StateProvince": "'.$customer['stateprovince'].'", "Country": "United States", "ZipPostalCode": "'.$customer['zippostalcode'].'", "PrimaryContact": { "Salutation": "'.$customer['salutation'].'", "FirstName": "'.$customer['first name'].'", "LastName": "'.$customer['last name'].'", "Title": "'.$customer['title'].'", "Email": "'.$customer['email'].'", "PhoneBusiness": { "Number":"'.$customer['phone'].'"} } '.$customer_fields.' } '); echo 'Customer added'; } catch (Exception $e) { echo $e->getMessage(); }
eval { $result = rpm_req( 'CustomerAdd', ' "Customer": { "Name": "' . $customer{'name'} . '", "Website": "' . $customer{'website'} . '", "Address": "' . $customer{'address'} . '", "City": "' . $customer{'city'} . '", "StateProvince": "' . $customer{'stateprovince'} . '", "Country": "United States", "ZipPostalCode": "' . $customer{'zippostalcode'} . '", "PrimaryContact": { "Salutation": "' . $customer{'salutation'} . '", "FirstName": "' . $customer{'first name'} . '", "LastName": "' . $customer{'last name'} . '", "Title": "' . $customer{'title'} . '", "Email": "' . $customer{'email'} . '", "PhoneBusiness": { "Number":"' . $customer{'phone'} . '"} } ' . $customer_fields . ' } ' ); } or warn $@;
In reply to Re: PHP -> Perl question
by Anonymous Monk
in thread PHP -> Perl question
by ultranerds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |