hyper link using php
I am trying to create a hyper link that will link to the id number of the sql item for every link.
im trying to make the "id" in a sql query link with the same number as the id
so like id = 1
create a hyper link that would make it localhost/?page=1
id = 2
and so on
but more complicated like a product number 4567-2443
so it would be localhost/?page=4567-2443
The goal is I will have 28,000 items in a table split by categories. when i click the product id i want to link to its page which will always be www.yourdomain.com/?product=<product id>
any suggestions help. This is the code I have so far to display the table and pagination.
echo '<p>', $query_row['id'] ,$query_row['name'] ,'</p>';
with your link
mysql extension is deprecated and will be removed in the future.
You should start using mysqli http://php.net/manual/en/book.mysqli.php
Most functions' names are the same ... you just need to replace mysql_ with mysqli_
|All times are GMT +1. The time now is 08:39 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.