Hello, I've tryed to make a simple register page with SQL2014, but it doesn't work, I've never had any problems with sql older versions, does it contains new sql connection, or I need to do something with xampp? Everything is running smoothly, I managed to make an account with query, so no problems with that.
Can someone suggest me, what should I do?
Sending error:
Fatal error: Uncaught Error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\register.php:46 Stack trace: #0 C:\xampp\htdocs\register.php(115): AddAccount('asdxxas', '123123', '123123') #1 {main} thrown in C:\xampp\htdocs\register.php on line 46
<!-- Simple style block for the form -->
<style type="text/css">
body { background-color: #ccc; }
input { width: 200px; background-color: #666; border: 1px solid #000; color: #fff; height: 25px; padding-left: 5px; margin-bottom: 3px; }
input:hover { background-color: #333; }
input[type=submit]:hover { cursor: pointer; }
</style>
<?php
function AddAccount($user, $pass, $pass2) {
# Config settings. Change it to your server, username, password and connection type.
$dbType = "sqlsrv"; # Types: sqlsrv (need drivers), odbc08 (SQL Server 2008 and below), odbc12 (SQL Server 2012)
$dbServer = "localhost"; # SQL Server Name / IP
$dbName = "account"; # Database name
$dbUser = "sa"; # SQL Server Username
$dbPass = "1234"; # SQ: Server Password
# DOn't touch unless you know what you are doing.
$adduser = "INSERT INTO USER_PROFILE (user_no,user_id,user_pwd,resident_no,user_type,lo gin_flag,login_tag,server_id) VALUES (?,?,?,'801011000000','1','0','Y','000')";
$getuser = "SELECT user_id FROM USER_PROFILE WHERE user_id = ?";
Darka1337 it is not the problem with MSSQL or php what you did the problem is with .dll on webserver side some new PHP core need different .dll on webservr side thats all go to google and try find "php 7.3 MSSQL dll" but i just guess where is the problem. because you not give what make a problem.
#solved.
Thank you friends for suggestions, I've fixed it and it is working perfectly without any problems.
Solution:
Added to php>ext> 2 needed .dll which needs to be linked with php version
Added to php.ini 2 extensions
Created a phpconnection for sqlsrv which should be linked with the database.
A bit of patience and it worked out
[Selling] Pre-registration reward for Summoners War: Rift of Worlds 1$ Pre-registration reward 12/15/2015 - Summoners War Trading - 0 Replies “Summoners War: The Rift of Worlds” is now available!
http://i.imgur.com/uZ71itv.png
<Download Summoners War>
http://m.withhive.com/b?i=9447&g=9446
<Get Pre-registration Reward>
Autobuy:
https://payivy.com/v/9a4ce
Phpbb3-Xauth Bridge [nutzt eure Foren Registration als In-Game User Registration] 12/02/2012 - Minecraft Guides & Strategies - 13 Replies Phpbb3-Xauth Bridge
Version 1.0 Alpa
Ich habe das PhpBB3 so verändert das ihr es mit xAuth verwenden könnt
Im Detail bedeutet das:
Eure User müssen sich dann in eurem Forum Registrieren um auf eurem Server spielen zu können. Nach der Foren Registration sind diese dann automatisch In-Game registriert das hat zum Vorteil, das die User zwar etwas länger für die Registration brauchen ihr aber all eure User im Forum und In-Game unter dem gleichen Namen findet.
Benötige Files
Das...
Warrock Korean Registration Guide 12/24/2007 - Foreign Games - 2 Replies So if you want to play it you should visit this site : http://entermatrix.net/warrock.php?guide=kor_kb#
Need Help with acc registration 07/17/2006 - Final Fantasy XI - 3 Replies Can someone please give me a guestpass key for FFXI? Or a download key for the game?
because i got an account and no DL key. And I don't have the CD's ^^;
Or can anybody please upload the PlayOnline Viewer at rapidshare
It's really important so please help me out.
Hidden