Hyluss

[PHP] CreateBlok

Jan 16th, 2018
280
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1.     function CreateBlock($id)
  2.     {
  3.         echo $id;
  4.         $xxx =$id.'';
  5.        
  6.         $query = "INSERT INTO content (id) VALUES (?)";
  7.        
  8.         if($stmt = $this->si->database->prepare($query))
  9.         {
  10.             echo 'gitangens';
  11.         }
  12.         else
  13.         {
  14.             echo 'o co tu chodzi'; 
  15.         }
  16.        
  17.         if ($stmt->bind_param('s',$xxx))
  18.         {
  19.             echo 'supi';
  20.         }
  21.         else
  22.         {
  23.             echo 'jp';
  24.         }
  25.         if($stmt->execute())
  26.         {
  27.             echo 'execute';
  28.         }
  29.         else
  30.         {
  31.             echo ' dupa ';
  32.         }
  33.  
  34.         $stmt->close();
  35.     }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment