First of all, you'll need to verify your connection string, make sure everything matches, and if it contains special characters, use '\' before it. (e.g.: $password = "p@ssw0rd!@#\'", the result password: P@ssw-rd!@#'.
Secondly, verify that the columns specified in the SQL commands and the table names match your database version, because the database that has the accounts table named 'dbo.Account' is Auth v2, and it uses 'username' instead of 'login_name'.
It'll be better if you provided more information for us, otherwise we'll keep mentioning frequent problems.
$result = @odbc_exec($conn,"SELECT login_name FROM Account WHERE login_name = '$username'") or die('Failed to verify is the provided user named already exists.');
PHP Code:
$server = "192.168.1.104"; $user = "sa"; $password= ""; $database = "Auth"; $conn = odbc_connect("Driver={SQL Server Native Client 11.0};Server=$server;Database=$database;", $user, $password); $result = odbc_exec($conn,"SELECT login_name FROM Account WHERE login_name = '$username'"); $checked_id = odbc_fetch_row($result); if( ($checked_id) == ("1") ) { echo "Failed to verify is the provided user named already exists."; } else { }
[Problem]Habe ein Problem und zwar spinnt mein VPC etwas(ohne Grund)?! 07/28/2011 - Metin2 Private Server - 10 Replies Also wie schon gesagt meins Server spinnt wodurch kiks usw. kommen :(
ich lade euch die Screens in den Anhang, mit der Hoffnung, dass ihr mir helfen könnt :) wäre echt sehr nice :)