Witam,
Mam problem z pobraniem tablic format tablic jest taki
Array ( [0
] => Array ( [id
] => 615c9da1938709beb0cc3126
[first_name
] => Paweł
[last_name
] => D
[phone_number
] => zastrzezony numer
[email
] => adres e
-mail klienta
[gender
] => male
[city
] => [country
] => Poland
[date_created
] => 2021
-10
-05T20
:46
:57
+02
:00
[date_updated
] => 2021
-10
-05T20
:46
:57
+02
:00
[description
] => [groups
] => Array ( [0
] => Array ( [id
] => 61583ac8938709beb0dd8c18
[name
] => default [date_created
] => 2021
-10
-02T12
:56
:08
+02
:00
[date_updated
] => 2021
-10
-02T12
:56
:08
+02
:00
[description
] => [created_by
] => paweld1990
@gmail
.com
[idx
] => [contact_expire_after
] => [contacts_count
] => ) ) ) [1
] => Array ( [id
] => 615cb107938709beb0cc3213
[first_name
] => Paweł
[last_name
] => D
[phone_number
] => top sekret
[email
] => adres e
-mail klienta
[gender
] => male
[city
] => [country
] => Poland
[date_created
] => 2021
-10
-05T22
:09
:43
+02
:00
[date_updated
] => 2021
-10
-05T22
:09
:43
+02
:00
[description
] => [groups
] => Array ( [0
] => Array ( [id
] => 61583ac8938709beb0dd8c18
[name
] => default [date_created
] => 2021
-10
-02T12
:56
:08
+02
:00
[date_updated
] => 2021
-10
-02T12
:56
:08
+02
:00
[description
] => [created_by
] => paweld1990
@gmail
.com
[idx
] => [contact_expire_after
] => [contacts_count
] => ) ) ) ) 2Array
( [0
] => Array ( [id
] => 615c9da1938709beb0cc3126
[first_name
] => Paweł
[last_name
] => Danielewski
[phone_number
] => 48693877150
[email
] => danielpaw1
@wp
.pl
[gender
] => male
[city
] => [country
] => Poland
[date_created
] => 2021
-10
-05T20
:46
:57
+02
:00
[date_updated
] => 2021
-10
-05T20
:46
:57
+02
:00
[description
] => [groups
] => Array ( [0
] => Array ( [id
] => 61583ac8938709beb0dd8c18
[name
] => default [date_created
] => 2021
-10
-02T12
:56
:08
+02
:00
[date_updated
] => 2021
-10
-02T12
:56
:08
+02
:00
[description
] => [created_by
] => paweld1990
@gmail
.com
[idx
] => [contact_expire_after
] => [contacts_count
] => ) ) ) [1
] => Array ( [id
] => 615cb107938709beb0cc3213
[first_name
] => Paweł
[last_name
] => Danielewski
[phone_number
] => 48547125654
[email
] => danielpaw1
@o2
.pl
[gender
] => male
[city
] => [country
] => Poland
[date_created
] => 2021
-10
-05T22
:09
:43
+02
:00
[date_updated
] => 2021
-10
-05T22
:09
:43
+02
:00
[description
] => [groups
] => Array ( [0
] => Array ( [id
] => 61583ac8938709beb0dd8c18
[name
] => default [date_created
] => 2021-10-02T12
:56:08
+02
:00
[date_updated
] => 2021-10-02T12
:56:08
+02:00 [description
] => [created_by
] => adres email twórcy
[idx
] => [contact_expire_after
] => [contacts_count
] => ) ) ) )
I kiedy robię to tak
for( $x = 0; $x < count($lista_pol); $x++ ) foreach ( $lista_pol as $list ) {
echo"<td>".$list[$x]['first_name']." ".$list[$x]['last_name']."</td>"; echo"<td>".$list[$x]['phone_number']."</td>"; echo"<td>".$list[$x]['email']."</td>"; echo"<td><a href='".POWIADOMIENIA_SMS_URL
."?page=powiadomienia_sms_edit&id=".$list[$x]['id']."'><img src='".POWIADOMIENIA_SMS_PATH
."/assets/images/edit.png' title='".__
('Edytuj','powiadomienia_sms')."'> </a>|"; echo"<a href='".POWIADOMIENIA_SMS_URL
."?page=powiadomienia_sms_lista&action=kasuj&id=".$list[$x]['id']."' onclick=\"return confirm('".__
('Czy chcesz usunąć kontak z bazy', 'powiadomienia_sms')."');\"><img src='".POWIADOMIENIA_SMS_PATH
."/assets/images/delete.png' title='".__
('Skasuj','powiadomienia_sms')."'> </a>";
}
To mam 2 tabele puste i 2 tabele z danymi z tablic a ja chce, aby pobrać tablice zawartością klientów z bazy smsapi nie wiem w czym robię błąd.
Ten post edytował pawel06281990 26.01.2022, 10:31:08