SHARE
TWEET

Untitled

a guest Feb 19th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $countQuery = "SELECT COUNT(id) FROM donations";
  2. $outcomeQuery = mysql_query($countQuery);
  3. $countUp = mysql_fetch_array($outcomeQuery);
  4. $plusOne = 1;
  5. $outcome = $countUp;
  6. echo $outcome[0]
  7.     or die(mysql_error());
  8.    
  9. $countQuery = mysql_query("SELECT id FROM donations");
  10. $count=mysql_num_rows($countQuery);
  11. $count+=1;
  12.    
  13. SELECT COUNT(id)+1 as IDCount FROM donations
  14.    
  15. insert into tableName (ID,Name) values (null, 'Fluffeh');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top