Why is the link not working?

Registered in the menu links

echo "<li><a href='/bol/admin/index.php?&id={$row['id']}'>{$row['name']}</a><ul>";

But in the transition it gives this path

http://localhost/admin/index.php?id=4

Why is it stepping over the bol folder?

Added.

Here’s a piece where I’m trying to check if a single link was clicked. Maybe I wrote something wrong?

require_once "menu_admin.php";
$id=0;
if ($_GET['id']) $id=$_GET['id'];
if ($id==4){
    $content="Ok";
}
$site=str_replace(array('{CONTENT}','{menu}'),array($content,$menu),file_get_contents("index.tpl"));
echo "{$site}";
exit;

Here is Mazilla’s answer

The link on the http://localhost/bol/admin/ seems to be wrong or outdated. Please inform the author of http://localhost/bol/admin/ about the error.

If you think this is a server error, please contact the [email protected]

Error 404
localhost
09/06/11 22:10:01 Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1

and what could be the problem?


Answer 1, authority 100%

Regarding the first question – apparently, they wrote it somewhere in the wrong place (in the sense that the code you provided does not work), since it gives out '/admin/index.php?id=2'. The /bol/is gone and the ampersand before idis gone, but there are no miracles.

There is, of course, purely theoretically, a rare option – that the output is buffered by something and strangely processed like this, but I strongly doubt its reality.

For the second question, they tell you that the URL /bol/admin/doesn’t exist. I dare to suggest that, perhaps, you are editing files on the wrong server / vhost? 😉 And somewhere you have an old copy that Apache gives you.


Answer 2

Your code is not running the way you wrote it.
The page where you generate these links to the studio.