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&amp;category=<?php echo $category['id']; ?>&amp;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&amp;category=<?php echo $category['id']; ?>&amp;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

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -