|
172 | 172 | while ($row = mysqli_fetch_array($sql_clients)) {
|
173 | 173 | $client_id = intval($row['client_id']);
|
174 | 174 | $client_name = nullable_htmlentities($row['client_name']);
|
175 |
| - $location_phone = formatPhoneNumber($row['location_phone']); |
| 175 | + $location_phone_country_code = nullable_htmlentities($row['location_phone_country_code']); |
| 176 | + $location_phone = nullable_htmlentities(formatPhoneNumber($row['location_phone'], $location_phone_country_code)); |
176 | 177 | $client_website = nullable_htmlentities($row['client_website']);
|
177 | 178 |
|
178 | 179 | ?>
|
|
218 | 219 | $contact_id = intval($row['contact_id']);
|
219 | 220 | $contact_name = nullable_htmlentities($row['contact_name']);
|
220 | 221 | $contact_title = nullable_htmlentities($row['contact_title']);
|
221 |
| - $contact_phone = formatPhoneNumber($row['contact_phone']); |
| 222 | + $contact_phone_country_code = nullable_htmlentities($row['contact_phone_country_code']); |
| 223 | + $contact_phone = nullable_htmlentities(formatPhoneNumber($row['contact_phone'], $contact_phone_country_code)); |
222 | 224 | $contact_extension = nullable_htmlentities($row['contact_extension']);
|
223 |
| - $contact_mobile = formatPhoneNumber($row['contact_mobile']); |
| 225 | + $contact_mobile_country_code = nullable_htmlentities($row['contact_mobile_country_code']); |
| 226 | + $contact_mobile = nullable_htmlentities(formatPhoneNumber($row['contact_mobile'], $contact_mobile_country_code)); |
224 | 227 | $contact_email = nullable_htmlentities($row['contact_email']);
|
225 | 228 | $client_id = intval($row['client_id']);
|
226 | 229 | $client_name = nullable_htmlentities($row['client_name']);
|
|
272 | 275 | while ($row = mysqli_fetch_array($sql_vendors)) {
|
273 | 276 | $vendor_name = nullable_htmlentities($row['vendor_name']);
|
274 | 277 | $vendor_description = nullable_htmlentities($row['vendor_description']);
|
275 |
| - $vendor_phone = formatPhoneNumber($row['vendor_phone']); |
| 278 | + $vendor_phone_country_code = nullable_htmlentities($row['vendor_phone_country_code']); |
| 279 | + $vendor_phone = nullable_htmlentities(formatPhoneNumber($row['vendor_phone'], $vendor_phone_country_code)); |
276 | 280 | $client_id = intval($row['client_id']);
|
277 | 281 | $client_name = nullable_htmlentities($row['client_name']);
|
278 | 282 |
|
|
0 commit comments