I'm trying to write a SQL command to update some information in a database table, I'm using basic PHP variables to add this information into the correct columns.
I've written plenty of similar commands without any issue but for the life of me I cannot figure out why this keeps producing an error message.
Here's the query..
$sql = "UPDATE nexnum SET regexp = '{$regexp2}', regstatus = '{$regstatus}', expflag = '{$expflag}' WHERE duns = {$duns}";
I've tried this with and without the quotes surrounding the variables, I've tried breaking this up into three separate commands / queries. The variables all work correctly in my PHP code. Is this a syntax issue?