The requested URL was not found on this server - Please help!

Hi all.

I really need your help to solve a problem. I have created a online catalogue on my website and i am able to upload products. However, when i on my site goes to a product catagory I get this error:

The requested URL /project/products.php&cat=1 was not found on this server.

In my product.php i’ve created a table that request the URL. The code in my table looks like this:
[php]
{
echo “

”;
echo “”;
echo “” . $prodrow[‘name’] . “”;
echo “
”;
echo “”;
}
[/php]

I have no clue how to solve my problem.

Hope someone is able to help.

Thank you in advance!

You need to replace & with ? in your link, like this:
[php]echo “” . $prodrow[‘name’] . “

”;[/php]

Thank you a lot. It is now able to find the URL :smiley:

However, now i have a new problem. No matter what category i choose in the catalogue they all have the same URL. Somehow i believe that the cat=1 which i have defined in the table should be something else. ::slight_smile:

[php]
echo “” . $prodrow[‘name’] . “

”;
[/php]

Any idea?

Sure. Although I do not know your catalogue db field names, my best guess is:
[php]echo “<a href='products.php?cat=”.$prodrow[‘id’]."’>" . $prodrow[‘name’] . “

”;[/php]

Why did you remove 1 after cat= and why did you add the extra [php]$prodrow[‘name’] . “

”; [/php] to the code.

the ‘[id’] and [‘name’] should simply be substituted with whatever i called my catalogue db fields?

I just gave you an idea answering on your question about something else in replacement of cat=1.

I did not add extra
[php]$prodrow[‘name’] . “

”;[/php]
  • this was your original code, and I just copied/pasted it. Obviously it must be and not
Sponsor our Newsletter | Privacy Policy | Terms of Service