Is my update syntax correct in my php code?

I can’t believe I’m having such a hard time with this but, I’m trying to update code in my database using php here is the code. I don’t see any issues, I mean I have a php mysql book in front of me and it looks correct:

 
$sql = "UPDATE info SET firstname='$fn' WHERE user_id='$user'";
$Result2 = mysql_query($sql, $dbConnect) or die('Error updating database. Error L1.');

What could be the fricking problem! I’ve wasted so much time on this simple piece of code.

I’m connecting fine because before this line I’m doing a select statement which works. I’m using the same mysql_select_db().

I’ve also printed out the values for $fn and** $user** and they both have data.

Thanks