How could i make simple login using php and mssql 2000 all tutorials i can find are for mysql :/
anyway just simple login no need have uber security crypts and so on just ask for id and pw
Printable View
How could i make simple login using php and mssql 2000 all tutorials i can find are for mysql :/
anyway just simple login no need have uber security crypts and so on just ask for id and pw
Here's mine, extremely simple. Comes with login, logout, checklogin, and a login successful page ;)
I have no experience with mssql, but I believe all the commands are exactly the same with mysql. So you could just write a script as you would with mysql but with "mssql" as prefix instead of "mysql".
Nothing difficult of using mssql at all, look at php.net:
http://nl3.php.net/mssql
If you have problems connecting to the mssql database with php, you might have to use odbc connects. I cant remember atm if it is php on windows or php on linux which is more flakey in this regard, but I have had that problem and had to resort to odbc, which works, its just not my preference.
(php.net has code references for odbc connects too, easy to find)
As Madison says, always use ODBC if you absolutely have to use MS SQL, and I do recommend that you use MySQL if possible.
You may use www.w3schools.com to learn PHP, it's clearly faster and better explained than using php.net, where you'll have a hard time figuring where to go.
W3schools.com also explains ODBC shortly.