Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

PHP -> SQL 2005 script new account

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jul 12, 2010
Messages
31
Reaction score
0
anyone have some script php with connection Sql 2005 for make new accounts ?
or can talk how make 1 simple.
i tried make but i have results.
 
Deny everything.
Joined
Jun 17, 2005
Messages
488
Reaction score
110
You either use PHP's ODBC features to create a ODBC connection and use odbc_exec to call ini3_py_account's SP_PANGYA_REGIST procedure or you use Microsoft's new sqlsrv PHP driver and use sqlsrv_execute instead. So basically... it's the same no matter what you do.

Parse the return values for the stored procedure to ensure an account has been created and you'll be fine.
 
Newbie Spellweaver
Joined
Dec 29, 2008
Messages
92
Reaction score
52
<?php

$odbc_dsnname = "ini3_py_account";
$odbc_dsnuser = "sa";
$odbc_dsnpass = "passwordSA";



$connection = odbc_connect($odbc_dsnname, $odbc_dsnuser, $odbc_dsnpass);

if(!($connection))
{
echo ".";
}
else
{
echo "";

Script config.php,
just give an include
Example:
<?php
include "config.php";
?>
 
Status
Not open for further replies.
Back
Top