Does anyone know how to query a dropdown list to a website from SQL server 2012 in WebMatrix Using PHP? PLEASE HELP!

Recommended Answers

All 2 Replies

For non-mysql database, you will need to use PDO and then use prepared statement and bind parameter. Read this and this. Read my attached PDF file to learn this stuff.

I've read Here that the PDO extension doesn't work with PHP 5.3 on Windows anymore. So would I use PDO_SQLSRV extension instead?

Does the for the PDO_SQLSRV querying code differ from the PDF (PDO_DBLIB) that you posted?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.