alifcintaibu

error_sum_mysql

Jun 11th, 2012
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. $ambil_jum_stem = "SELECT SUM(jum_stem) AS total_jum_stem FROM `evaluasi_tala` LIMIT 0,2";//baris ini menghitung jumlah record seluruhnya,padahal sudah saya limit 0,2
  2. $result_ambil_jum_stem = mysql_query($ambil_jum_stem) or die (mysql_error());
  3. $ambil_arrar_jum_stem = mysql_fetch_array($result_ambil_jum_stem);
  4. $total_jum_stem = round($ambil_arrar_jum_stem['total_jum_stem']);
Advertisement
Add Comment
Please, Sign In to add comment