Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How to connect MS SQL server using php

simsim Member Posts: 40
[b][red]This message was edited by the sim at 2002-7-7 23:52:29[/red][/b][hr]
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
"; exit; }
$result = pg_Exec($conn, "SELECT * FROM table1 WHERE surname '$NAME' ");

Thanks for the help.....

:-)


Comments

  • SouldrinkerSouldrinker Member Posts: 143
    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
    [email protected]

  • Shawn CarterShawn Carter Member Posts: 0

    _____ < http://forcoder.org /> free video tutorials and ebooks about { PHP, C++, Go, Swift, Objective-C, Ruby, Visual Basic, Assembly, Visual Basic .NET, Delphi, PL/SQL, Python, JavaScript, Scratch, MATLAB, C, C#, R, Perl, Java Fortran, Prolog, VBScript, ABAP, Lua, Scheme, Erlang, Transact-SQL, COBOL, Apex, ML, Julia, Ada, Scala, SAS, Crystal, Lisp, Hack, Dart, Kotlin, Clojure, Alice, F#, Rust, D, Bash, Awk, Logo, LabVIEW, FoxPro } _

Sign In or Register to comment.