-
Enthusiast
PHP -> SQL 2005 script new account
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.
Re: PHP -> SQL 2005 script new account
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.
-
Apprentice
Re: PHP -> SQL 2005 script new account
You do it.
Why do not you take it to share.
-
Member
Re: PHP -> SQL 2005 script new account
<?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";
?>
-
Apprentice
Re: PHP -> SQL 2005 script new account
I want to use php for web registration. plz+
-
Deny everything.
Re: PHP -> SQL 2005 script new account
Closed for becoming more and more of a request and begging thread.
Learn PHP and write this yourself.