Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  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');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement