Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'koneksi.php';
- $email = $_SESSION['email'];
- $userstorage = mysql_fetch_assoc(mysql_query("SELECT sum(size_statistik) AS total FROM file WHERE email = '$email'"));
- $userstorage = $userstorage['total'];
- if($userstorage >= 10737418240){
- echo"<button class='btn btn-success' disabled type='button'>TIDAK BISA SIMPAN</button>";
- }else{
- $onclick ="$('#upload_file').uploadify(''upload','*');";
- echo"<button onclick= '$onclick' class='btn btn-success'>Simpan</button>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment