PHP Project

Status
Not open for further replies.

dumpster

WF Premium Member
Aug 12, 2010
490
4
0
Rating - 98.6%
72   1   0
Hi,

I have a small PHP project that I need completed. Basically, I have a site that is generated from a database of records. The site is fully functional but I need to add one more element. This element needs to display the previous five records and the next five records all hyper linked in an unordered list. For example, lets say my database is full different colored widgets all in this order: blue, red, green, yellow, pink, gray, black, white. I need additional code on the site so that if someone navigated to the yellow widgets page, there would be a list that looks like this:

<ul>
<li><a href="http://www.mainsite.com/page-generated-by-db-for-blue">Link to Blue widgets</a></li>
<li><a href="http://www.mainsite.com/page-generated-by-db-for-red">Link to Red widgets</a></li>
<li><a href="http://www.mainsite.com/page-generated-by-db-for-green">Link to Green widgets</a></li>
<li><a href="http://www.mainsite.com/page-generated-by-db-for-yellow">Link to Yellow widgets</a></li>
<li><a href="http://www.mainsite.com/page-generated-by-db-for-pink">Link to Pink widgets</a></li>
<li><a href="http://www.mainsite.com/page-generated-by-db-for-gray">Link to Gray widgets</a></li>
<li><a href="http://www.mainsite.com/page-generated-by-db-for-black">Link to Black widgets</a></li>
</ul>

This need to be dynamically generated by the previous five and next five records in the database which is in alphabetical order. Please respond with a skype or Gchat ID and we can discuss more specifics. Respond here if you have any questions.
 


Status
Not open for further replies.