Kutakizukari Posted August 31, 2010 Share Posted August 31, 2010 There are ten list or bookmarks from Prof. Horner's Bible-Reading System found (http://www.facebook.com/group.php?gid=46416541831) each having set number of books from the Bible. One is to read ten chapters a day, one chapter from each of the bookmarks. Type in what day you are on and the program will show you on each of the lists as to what chapter you are suppose to be on. Also want to show statistics that will display how many times the Bible has been read with a break down of all 66 books of the Bible. Started a git respo http://github.com/Kutakizukari/Prof-Horners-Bible-Reading-System Bookmark list as follows: //List 1 $Matthew = 28; $Mark = 16; $Luke = 24; $John = 21; //List 2 $Genesis = 50; $Exodus = 40; $Levitieus = 27; $Numbers = 36; $Deuteronomy = 34; //List 3 $Romans = 16; $I_Corinthians = 16; $II_Corinthians = 13; $Galatians = 6; $Ephesians = 6; $Philipians = 4; $Colossians = 4; $Hebrews = 13; //List 4 $I_Thessalonians = 5; $II_Thessalonians = 3; $I_Timothy = 6; $II_Timothy = 4; $Titus = 3; $Philemon = 1; $James = 5; $I_Peter = 5 ; $II_Peter = 3 ; $I_John = 5; $II_John = 1; $III_John = 1; $Jude = 1; $Revelation = 22; //List 5 $Job = 42; $Ecclesiastes = 12; $Songs_of_Solomon = 8; //List 6 $Psalms = 150; //List 7 $Proverbs = 31; //List 8 $Joshua = 24; $Judges = 21; $Ruth = 4; $I_Samuel = 31; $II_Samuel = 24; $I_Kings = 22; $II_Kings = 25; $I_Chronicles = 29; $II_Chronicles = 36; $Ezra = 10; $Nehemiah = 13; $Esther = 10; //List 9 $Isaiah = 66; $Jeremiah = 52; $Lamentations = 5; $Ezekiel = 48; $Daniel = 12; $Hosea = 14; $Joel = 3; $Amos = 9; $Obadiah = 1; $Jonah = 4; $Micah = 7; $Nahum = 3; $Habakkuk = 3; $Zephaniah = 3; $Haggai = 2; $Zechariah = 14; $Malachi = 4; so on day 1 it should readout Matthew Chapter 1 Genesis Chapter 1 Romans Chapter 1 I Thessalonians Chapter 1 Job Chapter 1 Psalms Chapter 1 Proverbs Chapter 1 Joshua Chapter 1 Isaiah Chapter 1 Acts Chapter 1 on the second day it should all say Chapter two but Matthew reaches day 28 it should move on to Mark Chapter 1 and so on and so on and with each bookmark list. Quote Link to comment https://forums.phpfreaks.com/topic/212136-first-php-application-well-after-hello-world-not-sure-the-best-way/ Share on other sites More sharing options...
fortnox007 Posted August 31, 2010 Share Posted August 31, 2010 I would use an array probably. A Switch Case would be nice too and more organized. If you need help let me know. This forum might just have your answers allready ; ) just look for the text in bold Good luck m8, Quote Link to comment https://forums.phpfreaks.com/topic/212136-first-php-application-well-after-hello-world-not-sure-the-best-way/#findComment-1105452 Share on other sites More sharing options...
jcbones Posted August 31, 2010 Share Posted August 31, 2010 Because I love the Bible, I will help you get started. Note, I only included the first 2 list, you will need to write the rest out yourself, just follow the guidelines, and make them the same as the first two. <?php //Build of the list array is: $list[ListNumber][MaxChapters] = 'Book Name'; //List1 $list[1][28] = 'Matthew'; $list[1][16] = 'Mark'; $list[1][24] = 'Luke'; $list[1][21] = 'John'; //List 2 $list[2][50] = 'Genesis'; $list[2][40] = 'Exodus'; $list[2][27] = 'Leviticus'; $list[2][36] = 'Numbers'; $list[2][34] = 'Deuteronomy'; $day = (isset($_GET['day'])) ? (int)$_GET['day'] : 1; $day_count = $day; foreach($list as $k => $v) { foreach($v as $kk => $vv) { @$count += $kk; if($day <= $count) { $todays_reading[] = $vv . ' ' . $day_count; break; } $day_count -= $kk; } $count = 0; $day_count = $day; } echo implode("<br />\n",$todays_reading); ?> <form action="" method="get"> <label for="day">Day Number</label><input type="text" name="day" value="" /></form> Quote Link to comment https://forums.phpfreaks.com/topic/212136-first-php-application-well-after-hello-world-not-sure-the-best-way/#findComment-1105466 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.