redirect - PHP project links being redirected to the wamp server page -
my apologies if has been posted
i've created php project , i'm using wamp i've got database set in phpmyadmin.
i able run website , view website, when click on link (my catalog different categories link display products). link redirects me wamp server page.
does have solution this, appreciated.
code:
<a href="/?page=catalogue-item&category=<?php echo $category['id']; ?>&id=<?php echo $row['id']; ?>"> <img src="<?php echo $image; ?>" alt="<?php echo helper::encodehtml($row['name'], 1); ?>" width="<?php echo $width; ?>" /> </a>
thanks in advance!
try this:
<a href="?page=catalogue-item&category=<?php echo $category['id']; ?>&id=<?php echo $row['id']; ?>"> <img src="<?php echo $image; ?>" alt="<?php echo helper::encodehtml($row['name'], 1); ?>" width="<?php echo $width; ?>" /> </a>
/
was actual problem making link point root instead of current page.
Comments
Post a Comment