Insert INTO MS SQL

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
garethjennings
Forum Newbie
Posts: 1
Joined: Mon Aug 23, 2004 9:08 am

Insert INTO MS SQL

Post by garethjennings »

I'm currently building a php registration form but i'm pretty new to php and was wondering if anyone could give me a few pointers on how i insert into a ms sql database (not mysql) from a php form.

any help/example code would be much appreciated.

Thanks
lostboy
Forum Contributor
Posts: 329
Joined: Mon Dec 30, 2002 8:12 pm
Location: toronto,canada

Post by lostboy »

same way, just use the mssql functions. The only fields to watch are data fields...php / mysql like yyy-mm-dd, mssql is 'merkin' and likes mm-dd-yyyy so you need to switch them up....
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Post by liljester »

here you'll need this =) microsofts tsql language refrence.

http://msdn.microsoft.com/library/defau ... n_6lyk.asp
Post Reply