Skitter Posted April 22, 2006 Share Posted April 22, 2006 im making a website for a college project that, for the most part, is going to be extremely complex, the idea of it is:a list of people, the top of the list is the person who has paid the most, the spots look like this:etc55p50p45p40p35p30p25p20p15p10p5pall the way to £10every month the list starts blank apart from the highest bidder, who stays at the top until someone removes them, then, for example, someone pays 5p, and their name is immediately in the 5p position, if someone else was in the 5p position, then the person must bid 6,7,8,or 9p to knock them off the bottom of the list and take their place, if someone at a higher position does this, then everyone below that person moves down a place, and whoever is at the bottom gets knocked off, and emailed immediately that they have been knocked off the bottom of the listhow would this be coded into a website? if at all?and if someone can run up some code for me if it is possible, they will get FULL credit for it on my website. Quote Link to comment https://forums.phpfreaks.com/topic/8129-desperate-website-help-needed/ Share on other sites More sharing options...
Orio Posted April 22, 2006 Share Posted April 22, 2006 You need to make a table with 3 columns- id(number), Name, Pounds paid (numbers only here).Then, When you want to do that list use this statement (lets say you want to show the 50 people who paid most):[!--sql--][div class=\'sqltop\']SQL[/div][div class=\'sqlmain\'][!--sql1--][span style=\'color:blue;font-weight:bold\']SELECT[/span] paid, name [color=green]FROM[/color] [color=orange]`people`[/color] LIMIT 50 [color=green]ORDER BY[/color] paid [!--sql2--][/div][!--sql3--]And the rest is Normal PHP/HTML/CSS programing.Orio. Quote Link to comment https://forums.phpfreaks.com/topic/8129-desperate-website-help-needed/#findComment-29641 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.