hello
i upgarded my php
but some of my script showes : Notice: Undefined index
what is mean of this notic and how can i slowing it?
Usually means you have an undefined portion of an array you are trying to use.
$array = array('foo' => 'bar'); echo $array['foo']; # Fine because it's defined echo $array['biz']; # Never defined.
thank you please see:
<?php if ($_GET["pn"]==1) { include "topt.php"; } else { include "topp.php"; } ?>
Notice: Undefined index: pn in search.php on line 15 line 15 : if ($_GET["pn"]==1) {
how will slove in this sample code?
[man]isset[/man] and [man]empty[/man]. Read up on those because they have two distinctly different meanings.
if(isset($_GET['pn']) && $_GET['pn'] == 1) { include "topt.php"; } else { include "topp.php"; }
thank you very much