I am currently getting this MSSQL Error I cannot for the life of me figure out... The error is:
This is the query:
The thing is, if I do that query in Microsoft SQL Server Management Studio, I get no errors at all... but if I use it with PHP's mssql_query, thats where the error comes in.
Incorrect syntax near '127'.
Code:
INSERT INTO [dbo].smf_log_errors ([id_member], [log_time], [ip], [url], [message], [session], [error_type], [file], [line]) VALUES (0, 1230104368, SUBSTRING('127.0.0.1', 1, 16), SUBSTRING('?http://localhost/mssql/smf/', 1, 65534), SUBSTRING('Database Error: Incorrect syntax near ''127''.', 1, 65534), '70adcf6f3d36b592f5ea01046fd4e34d', 'database', SUBSTRING('C:/xampp/htdocs/mssql/smf/Sources/Security.php', 1, 255), 303)
Comment