05-22-2016, 04:02 PM
I don't have a whole lot of context to go on, but from what I can tell.
Will always try to update the table leagues id field of 1. The 1 you are hard coding in there is the id on the table of leagues.
When you are writing your query out, you are passing in the leagueID properly. My gut says that the update query should be...
Does that work?
Code:
$db->update('leagues',1,$userfields);
Will always try to update the table leagues id field of 1. The 1 you are hard coding in there is the id on the table of leagues.
When you are writing your query out, you are passing in the leagueID properly. My gut says that the update query should be...
Code:
$db->update('leagues',$leagueID),$userfields);
Does that work?