I am using a key to connect with it's node nid but when I click on Next it gives path
/node/node/256 instead of
node/256. Here is my code:
$key = array_search($nid , $nids); print $key; $next = ($key + '1'); $previous = ($key - 1); $total=count($nids); $next_link = "<a href='node/$nids[$next]'>Next</a>"; $previous_link = "<a href='node/$nids[$previous]'>Previous</a>";
$nids is an array. How to handle this situation?