Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. if ($stmt_1->execute() && $stmt_2->execute()) {
  2. if ($suma >= 5 && $stmt_1->rowCount() !== 0 && $stmt_2->rowCount() !== 0) {
  3. $pdo->commit();
  4. $how = $wpdb->get_var("SELECT one FROM wp_open WHERE id='$user_ID'");
  5. $response = "Покупка совершена успешно $how";
  6. } else {
  7. $response = "Недостаточно денюшки на счету.";
  8. }
  9. } else {
  10. $response = print_r($stmt_1->errorInfo(), true);
  11. $response .= "\r\n";
  12. $response .= print_r($stmt_2->errorInfo(), true);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement