PHP error Notice Undefined offset


I have this code and it is working on a server from profider A, when I copy the files to an other profider it gives this error:
"Notice: Undefined offset: 1 in c:\hosting\webhost4life\member\netvanhagen\leasewebsite\sk_php\public_html\subcat.php on line 30"

Line 30 is:
$row[3] = $split[1];

This is a part of the script:
$cols = 3;
$rows = $num / $cols;
for ($i=0;$i<$rows;$i++) {
      echo "</tr>";
      for ($ie=0;$ie<$cols;$ie++) {
            echo "<td class=\"standard\">";
            if ($row = mysql_fetch_row($query)) {
                  if ($row[3] == "none") {
                        $img = "<img src=\"images/na.jpg\" border=\"0\">";
                  } else {
                        $split = explode("../", $row[3]);
                        $row[3] = $split[1];
                        $img = "<img src=\"$row[3]\" border=\"0\">";
                  echo "</tr><tr>";
                  echo '<td border="0" cellpadding="0" cellspacing="0" style="width:220px;height:25px;background-color:#FE9900;text-align:center; vertical-align:middle;" valign="middle"><a  href="articles.php?sid='.htmlspecialchars($row[0]).'" class="product">'.htmlspecialchars($row[2]).'</a><br>'."\n";
                  echo "<br>";
            } else {
                  echo "&nbsp;";
            echo "</td>\n";
      echo "<tr>";      

What is wronge???

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Isn't it easier to use:

$split = explode("../", $row[3]);
                    $row[3] = $split[1];

$row[3] = preg_replace('#^../#','',$row[3]);


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Guy Hengel [angelIII / a3]Billing EngineerCommented:
   $row[3] = $split[sizeof($split)];
WvRAuthor Commented:
Thanks, this is it!!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.