Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function RequestAction(){
- if ( $this->session->has('sid') ){
- $co = $this->session->get('sid') ;
- $user = Customers::findFirst("cid = '$co'") ;
- if ( $this->request->isPost() ){
- $request = $this->request->getPost("request") ;
- $crm = CrmOfficer::findFirst()->oid;
- $this->response->redirect('user/added') ;
- $rand =rand(10000000,99999999);
- $strrand = (string)$rand;
- $strasset = (string)$asset;
- $intp = (int)$assetprice;
- $servername = "localhost";
- $username = "root";
- $password = "";
- $dbname = "mydb";
- $conn = new mysqli($servername, $username, $password, $dbname);
- $sql = "INSERT INTO carry_request VALUES ('$co','$crm','$strrand','$request')";
- $conn->query($sql);
- }
- }else {
- var_dump("Don't User") ;
- exit() ;
- }
- }
Add Comment
Please, Sign In to add comment