3 Improved grammar.
source | link

iI am using a key to connect with its node nidit's node nid but when i am clickingI click on next they giveNext it gives path /node/node/256/node/node/256 instead of node/256 node/256.here 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$nids is an array ,how. How to handle this situation?

i am using a key to connect with its node nid but when i am clicking on next they give 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 array ,how handle this situation?

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?

2 edited tags
| link
1
source | link

How to correct url path

i am using a key to connect with its node nid but when i am clicking on next they give 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 array ,how handle this situation?