A table with 30 columns huh?
|
Full Poll Results
|
SBR Book & Casino
|
|||||
| #1 5Dimes (SBR rating A+) | 294 Pts | #1 Soxwin | 4,000 Pts | SBR Sportsbook | ||
| #2 Pinnacle (SBR rating A+) | 264 Pts | #2 Mrexacta | 3,675 Pts | SBR Casino | ||
| #3 Bookmaker / BetDSI (A+) | 236 Pts | #3 Illmatick | 3,239 Pts | SBR Sportsbook | ||
| #4 Heritage (SBR rating A) | 203 Pts | #4 Jeff Grant | 3,135 Pts | SBR Sportsbook | ||
| #5 Bet365 (SBR rating A) | 78 Pts | #5 Matthew919 | 2,121 Pts | SBR Sportsbook | ||
It seems he's trying to update the old records using INSERT
illfuuptn, you need to use UPDATE and identify the rows to be updated. If you don't have some specific ID, you can use date, home, away as identifiers. So PHP code will look like this:
PHP Code:mysql_query("UPDATE mlbdata SET col25='$d[10]',col26='$d[11]',col27='$d[12]' WHERE date='$date' AND home='$home' AND away='$away'");
3-QUESTION
SBR TRIVIA WINNER 05/13/2013
3-QUESTION
SBR TRIVIA WINNER 05/09/2013
I suppose your scraper will be running and updating the table. Since the O(n) of UPDATE is probably not much worse than linear, you don't need to optimize the process. Most of the execution time will be spent on http connections unless you don't parallelise.Thank you for the reply. But, since there's a few hundred-thousand rows in my db, how do I do this? Is there a way to say via code "start at row 1 and continue on down."?
3-QUESTION
SBR TRIVIA WINNER 05/13/2013
3-QUESTION
SBR TRIVIA WINNER 05/09/2013
How many times do you need to be told the same fukking thing?
jgilmartin told you exactly what your options were. If you're not willing to learn the shit on your own, then fukk off. Nobody is going to do your work for you. And you have absolutely ZERO chance of creating any type of profitable model when you're not even willing to learn the basics of building a simple database on your own.
READ A MOTHERFUCKING BOOK, DUMBASS.
SBR
Bash 2012
Attendee
8/17/2012