
February 6th, 2003, 08:29 PM
|
|
|
|
Join Date: Apr 2007
Location: Stockholm, Sweden
Posts: 10
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
It works fine with mysql but not with mssql, way?
Hey people!
Is there some one how can help me with this.
I have made i forum with a login in php and mysql.
Now i have to make it work with mssql but i get a error that says:
Warning: Use of undefined constant password - assumed 'password' in C  atawebbarwww.tradgard.orgroottradgardlogin.php on line 3
Warning: Undefined index: password in C  atawebbarwww.tradgard.orgroottradgardlogin.php on line 3
And here is the code:
php Code:
Original
- php Code |
|
|
|
<? if ($_POST[password]) { include("common.php"); $link = dbConnect(); $query="SELECT * FROM user"; $result=mssql_query ($query) or die(mssql_error ()); $row = mssql_fetch_array($result); if ($_POST[password] == $row[password]) {
I have never made anything with mssql so i dont know if the connection is right but what i understund from the php.net is that i have to change the mysql_query to mssql_query, i hope thats right.
Looking forward to see what i have done wrong.
Best regard
Micke
|