PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1848
Number of posts: 5016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to connect MS SQL server using php Posted by sim on 7 Jul 2002 at 11:49 PM
This message was edited by the sim at 2002-7-7 23:52:29

Can anybody help me on how can I connect to my SQL server database using php.Can you inspect why this code will not work upon connecting to the SQL server database? I'm just new to php and I am practicing it right now.

php code ex:

$conn = pg_Connect("dbname=SQLSERVERDB port=80");
if(!$conn) { echo "Error in connecting to DB\n"; exit; }
$result = pg_Exec($conn, "SELECT * FROM table1 WHERE surname '$NAME' ");

Thanks for the help.....




Report
Re: How to connect MS SQL server using php Posted by Souldrinker on 8 Jul 2002 at 2:40 AM
dunno how it exactly works... rtfm www.php.net - search for "msql" in function reference, the documentation there is pretty good

best regards,

sebastian mohrenstecher
executive secretary
net::allies

www.net-allies.de
info@net-allies.de




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.