Selamat Datang Di Blog Aldot :)

Blog ini berisikan seputar tentang kehidupan saya,pengalaman saya,pengetahuan saya dan beberapa artikel yang saya ketahui. Terimakasih telah mengunjungi blog saya.

Selamat Datang Di Blog Aldot :)

Blog ini berisikan seputar tentang kehidupan saya,pengalaman saya,pengetahuan saya dan beberapa artikel yang saya ketahui. Terimakasih telah mengunjungi blog saya.

Selamat Datang Di Blog Aldot :)

Blog ini berisikan seputar tentang kehidupan saya,pengalaman saya,pengetahuan saya dan beberapa artikel yang saya ketahui. Terimakasih telah mengunjungi blog saya.

Selamat Datang Di Blog Aldot :)

Blog ini berisikan seputar tentang kehidupan saya,pengalaman saya,pengetahuan saya dan beberapa artikel yang saya ketahui. Terimakasih telah mengunjungi blog saya.

Selamat Datang Di Blog Aldot :)

Blog ini berisikan seputar tentang kehidupan saya,pengalaman saya,pengetahuan saya dan beberapa artikel yang saya ketahui. Terimakasih telah mengunjungi blog saya.

Wednesday, October 26, 2011

PHP If...Else Statements

Conditional statements are used to perform different actions based on different conditions. Conditional StatementsVery often when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do this. In PHP we have the following conditional statements: if statement - use this statement to execute some code only if a specified condition is true if...else statement - use this statement to execute some code if a condition is true and another code if the condition is false if...elseif....else statement - use this statement to select one of several blocks of code to be executed switch statement - use this statement to select one of many blocks of code to be executed The if StatementUse the if statement to execute some...

PHP Operators

This section lists the different operators used in PHP. Operator Description Example Result + Addition x=2 x+2 4 - Subtraction x=2 5-x 3 * Multiplication x=4 x*5 20 / Division 15/5 5/2 3 2.5 % Modulus (division remainder) 5%2 10%8 10%2 1 2 0 ++ Increment x=5 x++ x=6 -- Decrement x=5 x-- x=4 Assignment Operators Operator Example Is The Same As = x=y x=y += x+=y x=x+y -= x-=y x=x-y *= x*=y x=x*y /= x/=y x=x/y .= x.=y x=x.y %= x%=y x=x%y Comparison Operators Operator Description Example == is equal to 5==8 returns false != is not equal 5!=8 returns true <> is not equal 5<>8 returns true > is greater than 5>8 returns false < is less than 5<8 returns true >= is greater than or equal to 5>=8 returns false...

PHP String Variables

String Variables in PHPString variables are used for values that contain characters. In this chapter we are going to look at the most common functions and operators used to manipulate strings in PHP. After we create a string we can manipulate it. A string can be used directly in a function or it can be stored in a variable. Below, the PHP script assigns the text "Hello World" to a string variable called $txt: <?php $txt="Hello World"; echo $txt; ?>  The output of the code above will be: Hello World Now, lets try to use some different functions and operators to manipulate the string. The Concatenation OperatorThere is only one string operator in PHP. The concatenation operator (.)  is used to put two string values together. To concatenate two string variables...

PHP Variables

Variables in PHPVariables are used for storing values, like text strings, numbers or arrays. When a variable is declared, it can be used over and over again in your script. All variables in PHP start with a $ sign symbol. The correct way of declaring a variable in PHP: $var_name = value;  New PHP programmers often forget the $ sign at the beginning of the variable. In that case it will not work. Let's try creating a variable containing a string, and a variable containing a number: <?php $txt="Hello World!"; $x=16; ?> PHP is a Loosely Typed LanguageIn PHP, a variable does not need to be declared before adding a value to it. In the example above, you see that you do not have to tell PHP which data type the variable is. PHP automatically converts the variable to...

PHP Syntax

Basic PHP SyntaxA PHP scripting block always starts with <?php and ends with ?>. A PHP scripting block can be placed anywhere in the document. On servers with shorthand support enabled you can start a scripting block with <? and end with ?>. For maximum compatibility, we recommend that you use the standard form (<?php) rather than the shorthand form. <?php ?> A PHP file normally contains HTML tags, just like an HTML file, and some PHP scripting code. Below, we have an example of a simple PHP script which sends the text "Hello World" to the browser: <html> <body> <?php echo "Hello World"; ?> </body> </html>  Each code line in PHP must end with a semicolon. The semicolon is a separator and is used to distinguish one set...

Use parenthesis in expression 2

<html> <head> <title>A Simple Page</title> <script language="JavaScript"> <!-- function calcArea() {     inpRadius = 3;     document.write(Math.PI * ((inpRadius)*(inpRadius))); } function calcPeri() {     inpRadius = 3;     document.write(2 * Math.PI * (inpRadius)); } function calcVol() {     inpRadius = 3;     document.write(Math.PI * ((inpRadius)*(inpRadius)*(inpRadius)) * (4/3)); } //  --> </script> </head> <body> <h1>All about Circles and Spheres!</h1> <P>Click <input type="button" value="HERE" onclick="calcArea();"> to calculate circle area!</p> <br> <P>Click <input type="button" value="HERE" onclick="calcPeri();"> to calculate circle perimeter!</p> <br> <P>Click <input type="button" value="HERE" onclick="calcVol();"> to calculate sphere volume!</p> </body> </html> References...

Use parenthesis in expression

<html> <head> <title>A Simple Page</title> <script language="JavaScript"> <!--     var inpRadius;     inpRadius = 3;     document.write(Math.PI * ((inpRadius)*(inpRadius))); //  --> </script> </head> <body> </body> </html> References from  http://www.java2s.com/Tutorial/JavaScript...

Hide scripts using comments

<html> <head> <title>Hide scripts using comments.</title> <script language="javascript" type="text/javascript"> <!-- lines of JavaScript code here ... //--> </script> </head> <body> Page content here... </body> </html> References from  http://www.java2s.com/Tutorial/JavaScript...

Multiline comments

/* */ enables comments to span multiple lines. Example <html> <head> <title>A Simple Page</title> <script language="javascript"> <!-- /* Below two alert() methods are used to fire up two message boxes - note how the second one fires after the OK button on the first has been clicked */ alert("An alert triggered by JavaScript!"); alert("A second message appears!"); //  --> </script> </head> <body> </body> </html> References from  http://www.java2s.com/Tutorial/JavaScript...

Single line comments

The // comment tag enables comments to be placed between the // and the end of the line. Example : <html> <head> <title>A Simple Page</title> <script language="javascript"> <!-- // The first alert is below alert("An alert triggered by JavaScript!"); // Here is the second alert alert("A second message appears!"); //  --> </script> </head> <body> </body> </html> References from  http://www.java2s.com/Tutorial/JavaScrip...

HTML - Horizontal Rule

Use <hr/> to create a horizontal line. THis tag is similar with line break. <hr/> Use <hr/><hr/> With <hr/> Caution <hr/> Display Use With Caution The horizontal line can be useful in different circumstances, like you can see in the next example : a footnote. <hr /> <p>1. "The Hobbit", JRR Tolkein.<br /> 2. "The Fellowship of the Ring" JRR Tolkein.</p> Display 1. "The Hobbit", JRR Tolkein. 2. "The Fellowship of the Ring" JRR Tolkein. As you can see, everything that this tag does is to draw a horizontal line separating different parts of the content or it just decorates the page. Use it...

Line break

A line break is different from the other tags that we have seen before. The place we put it in the source cod of the document, will end the line and it will go down with a line , letting a space which is smaller the the one from the paragraph. In the paragraph is used , as you can see, in the next example. <p> Charles Brownstone <br /> Florida Street No 1 <br /> New York, USA <br /> </p> Display Charles Brownstone Florida Street No 1 New York, USA   As well it can be used for pointing out a signature , for example at the end of a letter. <p> Thank You,<br /> <br /> <br /> Charles Brownstone <br /> Vice-President </p>...

HTML - Titles 1:6 (Headings)

In HTML, a title is exactly what it looks : a real title or a subtitle.When you put a text in a tag <h1> , the text will be bolded, and the dimension of the letter will be the same with the number of the heading. The titles can have dimensions form 1 to 6 , where 1 is the smallest dimension and 6 the biggest dimension. <body> <h1>Headings</h1> <h2>are</h2> <h3>great</h3> <h4>for</h4> <h5>titles</h5> <h6>and subtitles</h6> </body> Display You can see that every title has a linebreak before and after. Every time you...

Paragraph's attribute

The paragraph is a base element in text editing.The tag for a paragraph is <p>. He places a empty line above and under the text to make it evident, and the browser will take it as it is. <p> The paragraph is a base element in ... </p> <p> This places a empty line above and ... </p> Display The paragraph is a base element in text editing.The tag for a paragraph is <p>. He places a empty line above and under the text to make it evident, and the browser will take it as it is HTML - Paragraph, justifyParagraphs can be edited almost the same easy way as in a text editor. The next example is made with the help of the justify attribute <p align="justify">The...

HTML attributes 1

The attributes are used to personalize tags. What do i mean ? Somehow , someday you want to resize a image or a table or to change a font color. All these are possible with the help of the attributes. The most tags have their own attributes. We will talk about this as we include in our talking a new tag. But now we will talk about a set of generic attributes which can be used with the majority of the tags. Attributes are putted between the angular brackets (<>) of the opening tag. THe "class" and "id" attributes in HTML These two attributes are mostly the same. They have no straight role in the formatting of the elements but they are useful behind the scene with the help of CSS. We will talk their role at the right...

Html tags

A browser read absolutely all you write in the HTML document. Tags have three parts as I said before, the opening, closing and content. As you will learn there are hundreds of HTML tags. Absolutely all the elements that will be displayed by a browser need a tag or two. <openingtag>Content</closingtag> <p>Paragraph</p> Tags are written in small letters. This is the standard of writing in XHTML, and Dynamic HTML. Above are some examples of tags in HTML. <body> acts as a capsule on the content. <p>paragraph</p> <h2>Title (heading)< h2>...

HTML Elements

HTML elements have many ranks.All you see : paragraphs, ZiZix`s banner, the navigation links from the left side and the right side , all are elements of this page.An element has three parts : an opening tag, element`s content and an closing.<p> - the tag that opens a paragraph Element`s content - the paragraph itself. </p> - the closing tag. ***Note: All the web pages will have at least the base elements: html, head, title and body.-------------------------------------------------------------------------------------------------------------------------- <html>element...</html>An HTML document will always begin and end with a <html> tag and respective </html>. This is the standard structure of an HTML. Please open a Notepad and copy the next...

Thursday, May 26, 2011

holiday with my friend and teacher PART I

Pada tanggal 24 bulan 05 tahun 2011 saya dan teman - teman + guru - guru berlibur ke daerah bandung, mungkin untuk menghilangkan penat setelah mengikuti beberapa serangkaian UJIAN . inilah ketika dibus . Suasana nampak dari depan &nbs...

Tuesday, May 17, 2011

Saya lulus :D

Alhamdulillah setelah mengikuti serangkaian program kegiatan akhir sekolah seperti : Try Out beberapa kali Uji Kompetensi Ujian Teori Kejuruan Ujian Praktek Ujian Sekolah Ujian Akhir Nasional  Inilah bukti sebagai peserta ujian nasional . Dan ini hasil akhir setelah mengikuti semua program kegiatan yang ada . Hasilnya memuaskan SMK Informatika Cirebon th ajaran 2010/2011 LULUS 100%...

Wednesday, May 4, 2011

Instalasi Web Server Lokal

  Web Server Local ( localhost ) adalah sebuah aplikasi yang memberikan fasilitas kepada penggunanya untuk dapat mengakses Local Hosting . Web server local yang akan digunakan untuk menjalankan script PHP pada aplikasi ini adalah XAMPP, XAMPP merupakan tool yang menyediakan paket perangkat lunak ke dalam satu buah paket . Dengan menginstall XAMPP maka tidak perlu lagi melakukan instalasi dan konfigurasi web server apache, PHP, dan MySQL secara manual. XAMPP akan meginstalasi dan mengkonfigurasikanya secara otomatis untuk anda atau auto konfigurasi . Untuk menginstall XAMPP lakukan langkah – langkah berikut ini : ·       ...

Tipe Data Mysql

Tipe-tipe data yang sering dipakai dalam MySQL dikelompokkan dalam beberapa kategori : §         Bilangan bulat .§         Bilangan desimal dan pecahan.§         Tipe data dan teks atau String.   §         Tipe data tanggal dan waktu.&nb...

Kelebihan Mysql

§         Portability : MySQL dapat berjalan stabil pada berbagai sistem operasi seperti Windows, Linux, FreeBSD, Mac Os X Server, Solaris, Amiga, dan masih banyak lagi.§         Open Source : MySQL didistribusikan secara open source (gratis), dibawah lisensi GPL sehingga dapat digunakan secara cuma-cuma.§         Multiuser : MySQL dapat digunakan oleh beberapa user dalam waktu yang bersamaan tanpa mengalami masalah atau konflik.§         Performance tuning : MySQL memiliki kecepatan yang menakjubkan dalam menangani query sederhana, dengan kata lain dapat memproses lebih banyak SQL per satuan waktu.§        ...

Pengertian mysql

MySQL adalah sebuah open source software database SQL (Search Query Language) yang menangani sistem manajemen database dan sistem manajemen database relational. MySQL adalah open source software yang dibuat oleh sebuah perusahaan Swedia yaitu MySQL AB. MySQL sangat mudah digunakan, reliable dan sangat cepat. Bahasa yang digunakan MySQL adalah bahasa S...

Pengertian Javascript

           JavaScript adalah bahasa pemrograman berbasis prototipe yang berjalan disisi klien. Jika kita berbicara dalam konteks web, sederhananya, kita dapat memahami JavaScript sebagai bahasa pemrograman yang berjalan khusus untuk di browser atau halaman web agar halaman web menjadi lebih hidup. Kalau dilihat dari suku katanya terdiri dari dua suku kata, yaitu Java dan Script. Java adalah Bahasa pemrograman berorientasi objek, sedangkan Script adalah serangkaian instruksi progr...

Kelebihan PHP

§         PHP mudah dibuat dan kecepatan akses tinggi.§         PHP dapat berjalan dalam web server yang berbeda dalam sistem operasi yang berbeda pula.§         PHP diterbitkan secara gratisan.§         PHP merupakan bahasa yang dapat diletakkan dalam tag HTML.§         Sistem database yang didukung PHP cukup banyak.§         PHP termasuk server side programmi...

Tipe Data PHP

1.      Integer : Yang termasuk dalam tipe data ini adalah bilangan bulat (tidak pakai koma). Contoh : $a = 1234 // decimal $b = -1234 // negative $c = 0123 // octal $d = 0x12 // heksadesimal Pernyataan seperti $a = 1234 disebut pernyataan penugasan. Dalam contoh tersebut maksudnya adalah memberi nilai 1234 ke variable ...

Pengertian PHP

PHP : Hypertext Preprocessor adalah sebuah bahas script berjenis server side yang menyatu dengan HTML. Sintaks dan perintah-perintah yang dimasukkan akan sepenuhnya dijalankan dan dikerjakan oleh server dan disertai pada halaman HTML biasa. PHP bertujuan untuk membuat aplikasi-aplikasi yang dijalankan diatas taknologi Web. Dalam hal ini, aplikasi pada umumnya akan memberikan hasil pada Web browser, tetapi prosesnya secara keseluruhan dijalankan dan dikerjakan di Web server. PHP diciptakan oleh Rasmus Lerdo...

Pages 81234 »

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More