Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP rebuild a big array
    primarykey
    data
    text
    <pre><code>array (size=10) 'image' =&gt; array (size=3) 0 =&gt; string 'BlackLingerie(42).jpg' (length=21) 1 =&gt; string 'BlackLingerie(43).jpg' (length=21) 2 =&gt; string 'BlackLingerie(44).jpg' (length=21) 'text' =&gt; array (size=3) 0 =&gt; string '' (length=0) 1 =&gt; string '' (length=0) 2 =&gt; string '' (length=0) 'author' =&gt; array (size=3) 0 =&gt; string '' (length=0) 1 =&gt; string '' (length=0) 2 =&gt; string '' (length=0) 'date' =&gt; array (size=3) 0 =&gt; string '' (length=0) 1 =&gt; string '' (length=0) 2 =&gt; string '' (length=0) 'verImage' =&gt; array (size=3) 0 =&gt; string 'upload' (length=6) 1 =&gt; string 'upload' (length=6) 2 =&gt; string 'upload' (length=6) 'imagePicsPath' =&gt; array (size=3) 0 =&gt; string 'http://127.0.0.1/develop/mvc/public/images/pics/BlackLingerie(42).jpg'/' (length=77) 1 =&gt; string 'http://127.0.0.1/develop/mvc/public/images/pics/BlackLingerie(43).jpg'/' (length=77) 2 =&gt; string 'http://127.0.0.1/develop/mvc/public/images/pics/BlackLingerie(44).jpg'/' (length=77) 'imageThumbPath' =&gt; array (size=3) 0 =&gt; string 'http://127.0.0.1/develop/mvc/public/images/thumbs/BlackLingerie(42).jpg'/' (length=79) 1 =&gt; string 'http://127.0.0.1/develop/mvc/public/images/thumbs/BlackLingerie(43).jpg'/' (length=79) 2 =&gt; string 'http://127.0.0.1/develop/mvc/public/images/thumbs/BlackLingerie(44).jpg'/' (length=79) 'imagePath' =&gt; array (size=3) 0 =&gt; string 'http://127.0.0.1/develop/mvc/public/images/pics/BlackLingerie(42).jpg'/' (length=77) 1 =&gt; string 'http://127.0.0.1/develop/mvc/public/images/pics/BlackLingerie(43).jpg'/' (length=77) 2 =&gt; string 'http://127.0.0.1/develop/mvc/public/images/pics/BlackLingerie(44).jpg'/' (length=77) 'imageID' =&gt; array (size=3) 0 =&gt; string '0' (length=1) 1 =&gt; string '1' (length=1) 2 =&gt; string '2' (length=1) 'submitUploadImages' =&gt; string 'Ladda upp bilder till databas' (length=29) </code></pre> <p>Want to rebuild this array to an more useful array. Like this</p> <pre><code>array ( [image0] ( 'name' =&gt; 'text' =&gt; 'author' =&gt; 'date' =&gt; 'verImage' =&gt; 'imagePicsPath' =&gt; 'imageThumbPath' =&gt; 'imagePath' =&gt; 'imageID' =&gt; ) [image1] ( 'name' =&gt; 'text' =&gt; 'author' =&gt; 'date' =&gt; 'verImage' =&gt; 'imagePicsPath' =&gt; 'imageThumbPath' =&gt; 'imagePath' =&gt; 'imageID' =&gt; ) </code></pre> <p>And so on depending on how many pictures there is, the keys inside the image array holds the values for each image. Like name, path so on. The incoming array is a $_POST that holds multiple form input data. Need some help to crack this one guys. Need to iterate trough the $_POST array, get the contents and transform to a new array ?</p> <p>I want unique image arrays that holds the image information before doing my stuff with the database =)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload