Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Zapis danych z tablicy do bazy
Bondar91
post
Post #1





Grupa: Zarejestrowani
Postów: 102
Pomógł: 0
Dołączył: 16.01.2014

Ostrzeżenie: (0%)
-----


Witam,

mam tablicę i chciałbym ją zapisać do bazy, kminię w jaki sposób można to robić, czy ktoś może podpowiedzieć, byłbym wdzięczny smile.gif. Tak wygląda tablica
  1. array(2) {
  2. ["response"]=>
  3. array(2) {
  4. ["rows"]=>
  5. array(10) {
  6. [0]=>
  7. array(2) {
  8. ["id"]=>
  9. int(1)
  10. ["name"]=>
  11. string(4) "ktos"
  12. }
  13. [1]=>
  14. array(2) {
  15. ["id"]=>
  16. int(2)
  17. ["name"]=>
  18. string(15) "fasfsafa Tescik"
  19. }
  20. [2]=>
  21. array(2) {
  22. ["id"]=>
  23. int(3)
  24. ["name"]=>
  25. string(16) "aaasssds Tescik2"
  26. }
  27. [3]=>
  28. array(2) {
  29. ["id"]=>
  30. int(4)
  31. ["name"]=>
  32. string(0) ""
  33. }
  34. [4]=>
  35. array(2) {
  36. ["id"]=>
  37. int(5)
  38. ["name"]=>
  39. string(6) "Krys t"
  40. }
  41. [5]=>
  42. array(2) {
  43. ["id"]=>
  44. int(6)
  45. ["name"]=>
  46. string(18) "ss Testowe"
  47. }
  48. [6]=>
  49. array(2) {
  50. ["id"]=>
  51. int(7)
  52. ["name"]=>
  53. string(12) "dsa Testowe"
  54. }
  55. [7]=>
  56. array(2) {
  57. ["id"]=>
  58. int(8)
  59. ["name"]=>
  60. string(12) "vvvys Testowe"
  61. }
  62. [8]=>
  63. array(2) {
  64. ["id"]=>
  65. int(9)
  66. ["name"]=>
  67. string(12) "aaas Testowe"
  68. }
  69. [9]=>
  70. array(2) {
  71. ["id"]=>
  72. int(10)
  73. ["name"]=>
  74. string(9) "Test test"
  75. }
  76. }
  77. ["totalCount"]=>
  78. int(84)
  79. }
  80. ["errors"]=>
  81. array(0) {
  82. }
  83. }
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 01:00