Search found 3 matches

by MountainXBGL
Sun Jun 29, 2008 3:27 pm
Forum: PHP - Code
Topic: Help with an UPDATE script-SOLVED
Replies: 2
Views: 162

Re: Help with an UPDATE script

Never mind....'$winner'...single quotes around the strings
by MountainXBGL
Sun Jun 29, 2008 11:06 am
Forum: PHP - Code
Topic: Help with an UPDATE script-SOLVED
Replies: 2
Views: 162

Re: Help with an UPDATE script

Also... $sql2 ="UPDATE ncaa_teams SET wins=wins+1 WHERE team_name=$winner"; mysql_query($sql2); $sql3 ="UPDATE ncaa_teams SET losses=losses+1 WHERE team_name=$loser"; mysql_query($sql3); If I wanted to add a field to be updated....would I do it with: ....SET wins=wins+1, games_pl...
by MountainXBGL
Sun Jun 29, 2008 10:27 am
Forum: PHP - Code
Topic: Help with an UPDATE script-SOLVED
Replies: 2
Views: 162

Help with an UPDATE script-SOLVED

Hello all, I recently started php and mysql and am learning as I go. I have gotten a lot accomplished in a short time more out of necessity than anything. Anyway...I have ran into a portion of my script that isn't working correctly and I am at a loss. The entire page script I will post but all is wo...