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.
Printable View
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.
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.
You do it.
Why do not you take it to share.
<?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";
?>
I want to use php for web registration. plz+
Closed for becoming more and more of a request and begging thread.
Learn PHP and write this yourself.