In that thread you said you’ve been programming for years, but you seem to be confused about how to put the value of a variable into a string. Basically, the string “fname” is not the same as the variable fname. It’s just like how the string “1” is not the same as the integer 1. You don’t literally want the letters “fname” in your SQL command, you want the value of the variable fname; that’s what string concatenation is for. [import]uid: 12108 topic_id: 8125 reply_id: 28946[/import]