05-22-2016, 05:55 AM
Hey I was wondering if anyone could tell me why...
<pre></pre>
..doesn't work. The field 'leagueCustom' exist and I know the values are being passed because
leaguesleagueCustomleaguesleagueID
works perfectly fine.
Thank you!
<pre>
Code:
$db = DB::getInstance();
$customMessage = Input::get('message');
$leagueID = Input::get('id');
$userfields=array('leagueCustom'=>$customMessage);
$db->update('leagues',1,$userfields);
..doesn't work. The field 'leagueCustom' exist and I know the values are being passed because
Code:
$query = $db->query("UPDATE
Code:
SET
Code:
= ? WHERE
Code:
.
Code:
= ?", array($customMessage,$leagueID));
works perfectly fine.
Thank you!