Quote phenomenon in Recordset SQL
Why I try this in one database and it doesn't work:
$query_Recordset1 = sprintf("SELECT * FROM change WHERE change.Changes_made LIKE %s", GetSQLValueString("%" . $colname_Recordset1 . "%", "text"));
but why i put quotes then it works
$query_Recordset1 = sprintf("SELECT * FROM `change` WHERE `Changes_made` LIKE %s", GetSQLValueString("%" . $colname_Recordset1 . "%", "text"));
I tried this on another database and the query works without the quote. Can anyone explain this strange phenomenon?
