A
A
Alexey2016-11-08 18:03:02
PHP
Alexey, 2016-11-08 18:03:02

The page is not being created. What's my mistake?

Products are displayed on the catalog.php page. There is a list with categories. By clicking on the list item, a page should be generated. But I only get 404. What am I doing wrong?

<?php
$result = mysql_query("SELECT * FROM category WHERE type='gpu'",$link);
 If (mysql_num_rows($result) > 0)
{
$row = mysql_fetch_array($result);
do
{
    echo '   
  <li><a href="view_cat.php?cat='.strtolower($row["brand"]).'&type='.$row["type"].'">'.$row["brand"].'</a></li>
    ';
}
 while ($row = mysql_fetch_array($result));
} 
?>

ac7e60e4889641e7adc8310b90e2f048.pngdbcdb1c6f7824c1f91d63785c8800509.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
romy4, 2016-11-08
@romy4

and physically it is view_cat.php?

L
Lander, 2016-11-08
@usdglander

Apparently the view_cat.php file is missing

A
Archakov Dennis, 2016-11-08
@archakov06

or deal with.htaccess

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question