php :select column in array with Undefined index error
<p>I want get column in PHP array
<code>$slider</code> is this : </p>

<pre><code>        array(6) {
  [0]=&gt;
  array(1) {
    ["image"]=&gt;
    string(32) "themes/public/slideshow/ads1.jpg"
  }
  [1]=&gt;
  array(1) {
    ["title1"]=&gt;
    string(1) "."
  }
  [2]=&gt;
  array(1) {
    ["image"]=&gt;
    string(32) "themes/public/slideshow/ads2.jpg"
  }
  [3]=&gt;
  array(1) {
    ["title1"]=&gt;
    string(1) "."
  }
  [4]=&gt;
  array(1) {
    ["image"]=&gt;
    string(32) "themes/public/slideshow/ads3.jpg"
  }
  [5]=&gt;
  array(1) {
    ["title1"]=&gt;
    string(1) "."
  }
}
</code></pre>

<p>when i want get column of this array php has error <code>Undefined index</code> !
this error is exist in server but isnt exist in localhost! </p>

<pre><code>    foreach ($slider as $slide)
    {

        $s = $slide['image'];

        ?&gt;


        &lt;div&gt;
            &lt;img u="image" src2="&lt;?php echo $url . "/$s" ?&gt; " /&gt;
        &lt;/div&gt;

        &lt;?php

    }

    ?&gt;
</code></pre>

<blockquote>
  <p>Undefined index: image  in this line : $s = $slide['image'];</p>
</blockquote>