I am trying to insert data into a table in mssql and am using an autoincremented ID field for the records as they go in.
can someone give me the proper PHP for doing this insert?
I can do it with SQL Query Analyzer, but in PHP there seems to be a hitch.
INSERT INTO TABLE BLAH (ID, FNAME, LNAME) VALUES ( 'Bob', 'Jones')
will work in SQL Query Analyzer, where you just leave a space at the place where you would have an ID number, but in PHP, I have tried everything I know to try...in MySQL I would have done:
INSERT INTO TABLE BLAH (ID, FNAME, LNAME) VALUES (\" \", \"Bob\", \"Jones\");
but this doesn't insert the data into mssql, but does in mysql.