SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | include 'koneksi.php'; | |
3 | $email = $_SESSION['email']; | |
4 | $userstorage = mysql_fetch_assoc(mysql_query("SELECT sum(size_statistik) AS total FROM file WHERE email = '$email'")); | |
5 | $userstorage = $userstorage['total']; | |
6 | ||
7 | if($userstorage >= 10737418240){ | |
8 | - | echo"<button class='btn btn-success' disabled='disabled'>Simpan</button>"; |
8 | + | echo"<button class='btn btn-success' disabled type='button'>TIDAK BISA SIMPAN</button>"; |
9 | }else{ | |
10 | $onclick ="$('#upload_file').uploadify(''upload','*');"; | |
11 | echo"<button onclick= '$onclick' class='btn btn-success'>Simpan</button>"; | |
12 | } | |
13 | ?> |