Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 22nd, 2012  |  syntax: PHP  |  size: 0.27 KB  |  views: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. $sql1 = 'SELECT COUNT(`referid`) FROM `users` WHERE `ID` = :ID'
  3. $checknumber = $odb -> prepare($sql, array(PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY));
  4. $checknumber -> execute(array(':ID' = $_SESSION['ID']));
  5. $result = $checknumber->fetchAll();
  6. echo($result);
  7. ?>
clone this paste RAW Paste Data