untuk modul 2 mata pelajaran : Membuat halaman web dinamis tingkat dasar SMK N 1 Banyuwangi, [download]
untuk modul mata pelajaran : Membuat halaman web dinamis tingkat dasar SMK N 1 Banyuwangi, [donwload]
There is nothing that could make me even happier this semester in Vocational High School 1 Banyuwangi except to see how much my students has grown into a fine programmer. I can’t stop my self smiling all the time checking out their project. this whole semester learn PHP and 3 weeks(or less) work out on the project is really paid off. I expect nothing less from you guys. I am so proud of you. Happy to be around you this whole time
And, here for you reader some of best project of all. they all did a great job working on it but I planned to give 5 of the best more credit because their hard work. and please put in mind that this is not the official site of any company or organization or government.
Agil Bayu Sagita the owner of http://testlib.p.ht
Ridho Andy Kurniawan the owner of http://ppdbsmkonline.id1945.com/
Ilham Setya Nugraha the owner of http://idev-net.p.ht/
more will be updated soon
if you want to check out other projects of my students you can visit http://rpl-online.p.ht/
Array is a variable that saves some of data. When a normal ‘$a’ variable (scalar variable) able to save a single value at a time, array variable capable of saving some values simultaneously in one time. Array can have many elements, each elements hold a single value. In PHP you’ll find that index in array is not only in number, but also in string (associative array).
as we learn that scalar variable ($a) saves a single value (PHP-intro), so if multiple values is inserted, $a variable will hold the last inserted values and delete all the previous values.
$a = 14; //$a saves 14
$a = 70; //$a saves 70, the previous values (14) is deleted.
as for array variable, it allows you to collect/save more than one values at a time. it is a collection of scalar variable. the values it self is saved into each elements of array.
for example there are several number that need to be saved,
just like the table displayed above, that’s exactly how array works. It saves the value into each indexed cell, the default cell will be indexed as ‘0’.
There are several ways to make and insert values into an array variable : Continue reading
I did tell you before that I am a PHP Girl rather than a Java woman. And this is love of my life.. 😀 they said we are soulmate, that’s why I fell for him since the first time I tried to spell W-E-B. I am happy to talk about you, PHP. I do… I really do. So don’t doubt me and my feeling for you is real. As real as my existence on the earth… muahahahahahahaaa
PHP stands for Hypertext Pre Processor (don’t ask me where the first P goes to, they never tell me anything) is a server side scripting language where the script executed in the server side and send the output as the html document on the user’s computers. The good things about web based program is you can embed your programming language into your HTML tags.
So.. why PHP??? When there is lots of programming language scattered on the world of internet??
Table comes in various styles, and the striped style is the most popular among them, normally when you make the table with pure HTML’s tags you could write the style down with CSS for each row. The idea is how to make the row’s background change dynamically according to the row. the odd rows has a different background color with the even one. Because we gonna make it from PHP code.
to make table above, first we have to define the color you’ll use. for example you will make a gray-white strip. so for gray we will use #EEEEEE color’s code and for white one, we just need to write ‘white’ or you can use code ‘#FFFFFF’. As we both know that table has both odd and even rows, so the plan is to make the odd rows has white background and the even one has the gray background. well, how do we know which one is even and which one is odd???? good question because we all know that PHP has modulus arithmetic operator ‘%’ .
the next step is Continue reading