In this chapter, the discussion of PHP 5.0 will only be the basis
to better understand the discussion in the next chapter,
not deepen the use of libraries, the libraries that
possess or use SQLite which is a new thing
in PHP 5.0. So also with discussion of MySQL 5.0,
limited to data management, not on a store procedure
are new to MySQL.
At the end of this chapter, the MySQL 5.0 data management will
PHPMyAdmin using a fairly simple and familiar
supported by web-based graphical interface. With
the support of Indonesian in PHPMyAdmin,
MySQL data management becomes easier.
PHP Basics
The following are examples of simple PHP script that can be
gives some idea of how easy it is
learn PHP. PHP script below:
">
echo "first experiment";
”;">echo "
";
">?>
" onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'"> body>
" onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'"> html>
will be the same result with an HTML file with the source as
following:
" onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'">
" onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'">The first experiment
" onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'"> body>
" onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'"> html>
Echo command is not visible in the HTML source above because
order has been processed in the web server. The results of the process
tersebutlah which will be read by us through your browser so that
PHP scripts are written can not be known by us (the client).
This is called a server-side scripting, script
processed on the server side and Javascript are different from
processed by the client computer (client-side scripting), where the script
made permanent can be seen by the client via the menu View |
Source.
PHP script can be pasted on any part of the HTML,
provided that written on the tag atau ." onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'">and?> or php and?>. Tag
tersebutlah that signal that where there is
PHP codes are most similar to the language
used in programming language C. Each end of the command
end with a semicolon (semicolons). If you have
never learn programming in C, would be
facilitate the understanding of PHP. But if not, do not
will prevent you understand PHP.
The following program listing is a calculation exercise
aritmateka simple. This material is always a basic part of
various programming languages. In the next example, we will
trying to process the most simple calculation
and easy to understand in 2 (two) variables. Thus,
aritmateka operations in PHP we can understand at first.
Rabu, 27 Januari 2010
PHP 5.0 and MYSQL 5
Penulis Dharma di 17.12
Label: Artikel Database
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar