[Only registered and activated users can see links. Click Here To Register...]
im not sure to this... :rtfm:
im not sure to this... :rtfm:
<?php
error_reporting(0);
include_once 'include/dbconn.php' ;
$id = ( isset( $_GET['id'] ) ) ? $_GET['id'] : $_POST['id'] ;
$pw = ( isset( $_GET['passwd'] ) ) ? $_GET['passwd'] : $_POST['passwd'] ;
$ver = ( isset( $_GET['ver'] ) ) ? $_GET['ver'] : $_POST['ver'] ;
$test = ( isset( $_GET['test'] ) ) ? $_GET['test'] : $_POST['test'] ;
$code = ( isset( $_GET['code'] ) ) ? $_GET['code'] : $_POST['code'] ;
$pcode = ( isset( $_GET['pcode'] ) ) ? $_GET['pcode'] : $_POST['pcode'] ;
$ip = $_SERVER['REMOTE_ADDR'] ;
$nation = $_GET['nation'] ;
# calling sqlsrv stored procedure
$tsql = "{call [dbo].[ROHAN4_Login](?,?,?,?,?,?,?,?,?,?,?,?,?)}";
$user_id = -1 ;
$sess_id = str_repeat(' ',36) ;
$run_ver = str_repeat(' ',20) ;
$bill_no = -1 ;
$grade = -1 ;
$ret = -1 ;
$tsql_params = array(
$id ,
md5($pw) ,
$nation ,
$ver ,
$test ,
$ip ,
$code ,
array(&$user_id , SQLSRV_PARAM_OUT ) ,
array(&$sess_id , SQLSRV_PARAM_OUT ) ,
array(&$run_ver , SQLSRV_PARAM_OUT ) ,
array(&$bill_no , SQLSRV_PARAM_OUT ) ,
array(&$grade , SQLSRV_PARAM_OUT ) ,
array(&$ret , SQLSRV_PARAM_OUT )
);
$res = sqlsrv_query($oConn,$tsql,$tsql_params);
if ($res === false ){
die( print_r( sqlsrv_errors(), true));
}
HttpResponse::setData( join( '|', array($sess_id,$user_id,$run_ver,$grade,$code) ) );
HttpResponse::send();
?>
Okey thank u. Finally i fix it. Tnxfor infos.Quote:
That's normal. To end this you can add the command error_reporting(0);
about this command:
[Only registered and activated users can see links. Click Here To Register...]
PHP Code:<?php
error_reporting(0);
include_once 'include/dbconn.php' ;
$id = ( isset( $_GET['id'] ) ) ? $_GET['id'] : $_POST['id'] ;
$pw = ( isset( $_GET['passwd'] ) ) ? $_GET['passwd'] : $_POST['passwd'] ;
$ver = ( isset( $_GET['ver'] ) ) ? $_GET['ver'] : $_POST['ver'] ;
$test = ( isset( $_GET['test'] ) ) ? $_GET['test'] : $_POST['test'] ;
$code = ( isset( $_GET['code'] ) ) ? $_GET['code'] : $_POST['code'] ;
$pcode = ( isset( $_GET['pcode'] ) ) ? $_GET['pcode'] : $_POST['pcode'] ;
$ip = $_SERVER['REMOTE_ADDR'] ;
$nation = $_GET['nation'] ;
# calling sqlsrv stored procedure
$tsql = "{call [dbo].[ROHAN4_Login](?,?,?,?,?,?,?,?,?,?,?,?,?)}";
$user_id = -1 ;
$sess_id = str_repeat(' ',36) ;
$run_ver= str_repeat(' ',20) ;
$bill_no= -1 ;
$grade= -1 ;
$ret = -1 ;
$tsql_params = array(
$id ,
md5($pw) ,
$nation ,
$ver ,
$test ,
$ip ,
$code ,
array(&$user_id , SQLSRV_PARAM_OUT ) ,
array(&$sess_id , SQLSRV_PARAM_OUT ) ,
array(&$run_ver , SQLSRV_PARAM_OUT ) ,
array(&$bill_no , SQLSRV_PARAM_OUT ) ,
array(&$grade , SQLSRV_PARAM_OUT ) ,
array(&$ret , SQLSRV_PARAM_OUT )
);
$res = sqlsrv_query($oConn,$tsql,$tsql_params);
if ($res === false ){
die( print_r( sqlsrv_errors(), true));
}
HttpResponse::setData( join( '|', array($sess_id,$user_id,$run_ver,$grade,$code) ) );
HttpResponse::send();
?>
Quote:
That's normal. To end this you can add the command error_reporting(0);
about this command:
[Only registered and activated users can see links. Click Here To Register...]
PHP Code:<?php
error_reporting(0);
include_once 'include/dbconn.php' ;
$id = ( isset( $_GET['id'] ) ) ? $_GET['id'] : $_POST['id'] ;
$pw = ( isset( $_GET['passwd'] ) ) ? $_GET['passwd'] : $_POST['passwd'] ;
$ver = ( isset( $_GET['ver'] ) ) ? $_GET['ver'] : $_POST['ver'] ;
$test = ( isset( $_GET['test'] ) ) ? $_GET['test'] : $_POST['test'] ;
$code = ( isset( $_GET['code'] ) ) ? $_GET['code'] : $_POST['code'] ;
$pcode = ( isset( $_GET['pcode'] ) ) ? $_GET['pcode'] : $_POST['pcode'] ;
$ip = $_SERVER['REMOTE_ADDR'] ;
$nation = $_GET['nation'] ;
# calling sqlsrv stored procedure
$tsql = "{call [dbo].[ROHAN4_Login](?,?,?,?,?,?,?,?,?,?,?,?,?)}";
$user_id = -1 ;
$sess_id = str_repeat(' ',36) ;
$run_ver = str_repeat(' ',20) ;
$bill_no = -1 ;
$grade = -1 ;
$ret = -1 ;
$tsql_params = array(
$id ,
md5($pw) ,
$nation ,
$ver ,
$test ,
$ip ,
$code ,
array(&$user_id , SQLSRV_PARAM_OUT ) ,
array(&$sess_id , SQLSRV_PARAM_OUT ) ,
array(&$run_ver , SQLSRV_PARAM_OUT ) ,
array(&$bill_no , SQLSRV_PARAM_OUT ) ,
array(&$grade , SQLSRV_PARAM_OUT ) ,
array(&$ret , SQLSRV_PARAM_OUT )
);
$res = sqlsrv_query($oConn,$tsql,$tsql_params);
if ($res === false ){
die( print_r( sqlsrv_errors(), true));
}
HttpResponse::setData( join( '|', array($sess_id,$user_id,$run_ver,$grade,$code) ) );
HttpResponse::send();
?>
<?php
include_once 'include/dbconn.php' ;
$id = ( isset( $_GET['id'] ) ) ? $_GET['id'] : $_POST['id'] ;
$pw = ( isset( $_GET['passwd'] ) ) ? $_GET['passwd'] : $_POST['passwd'] ;
$ip = $_SERVER['REMOTE_ADDR'] ;
# calling sqlsrv stored procedure
$tsql = "{call [dbo].[ROHAN3_SendCode](?,?,?,?)}";
$ret = -1 ;
$tsql_params = array(
$id ,
md5($pw) ,
$ip ,
array(&$ret , SQLSRV_PARAM_OUT )
);
$res = sqlsrv_query($oConn,$tsql,$tsql_params);
if ($res === false ){
die( print_r( sqlsrv_errors(), true));
}
$ret = -202;
HttpResponse::setData( $ret );
HttpResponse::send();
?>