I won't do your homework for you, but this is the process you'll need.
Make sure the index is index.php not index.html, otherwise you won't get any of the php to work.
You need to connect to the database, select the table you want, then perform your query. The query sounds like you just need a simple select statement.
You need then need to take your variable holding the results from the select statement and loop through it, printing out each row, probably in a table, or just a list depending on what you want.
Cookies can be cleared, so can html5 local cache, IP isn't reliable etc.
The only truely reliable way is with user accounts, I.E. with some unique record which prevents multiple votes when it's in some state. Without, the best you can do is stop most happening, but some users will easily find a workaround and exploit it.
Maybe I'm not being helpful, but making something from the ground up at least once is only going to help you in terms of understanding how other things like it will work. It might allow you to actually appreciate just how good the proper ones are.
It's pretty bad, but I don't think worse than mine. At least it looks like it took more than 5 minutes to make by someone who's only used a graphics program once or twice previously.
I won't do your homework for you, but this is the process you'll need.
Make sure the index is index.php not index.html, otherwise you won't get any of the php to work.
You need to connect to the database, select the table you want, then perform your query. The query sounds like you just need a simple select statement.
You need then need to take your variable holding the results from the select statement and loop through it, printing out each row, probably in a table, or just a list depending on what you want.
Scumbag redditor: mocks someone for not having a clue, uses Bing.
Cookies can be cleared, so can html5 local cache, IP isn't reliable etc.
The only truely reliable way is with user accounts, I.E. with some unique record which prevents multiple votes when it's in some state. Without, the best you can do is stop most happening, but some users will easily find a workaround and exploit it.
Some dick thinks he'll sound more intelligent by pretending to be the only person who hates X topic when the general consensus is every else likes it.
Would you employ a Redditor? Someone who does no work and browses Reddit most of the time?
If you don't like it, feel free to post there and get it deleted.
Maybe I'm not being helpful, but making something from the ground up at least once is only going to help you in terms of understanding how other things like it will work. It might allow you to actually appreciate just how good the proper ones are.
It's true ingenuity. I'm impressed.
Sounds like we've got a trilogy of films in the making.
Edit: Ok, I was wrong. I didn't realise it was a parody, and I don't even like family guy anyway.
This is why we can't have nice things.
"Use a pen, Sideshow Bob..."
I pirate because I don't want to pay for it. Funny, that.
Scumbag client, reviews design, insists you make it pop more
It's pretty bad, but I don't think worse than mine. At least it looks like it took more than 5 minutes to make by someone who's only used a graphics program once or twice previously.
A British company called confused.com, they let you compare quotes from insurance companies to get the 'best' deal (the prices are always bullshit).
They've redesigned their logo a bit now, added some shading and that, but it's still awful.
'fraid not.
Don't use lens flare, and you'll be fine.
Reminds me of reddit.
Nonce, in Britain, is a slang word for paedophile. Just FYI. :)
This is a PHP thread, what the fuck are you talking about?
End of this list.
Back to top