ok this may be a spin off of Shmeeps html lessons, but with php& mysql but i really dont care
ok bassics:
always start any php fucntion with
CODE
<?php
and end it with
CODE
?>
simple enough.
now for the fun stuff.
officaily php mean - hypertext processor, but my book(lol we had a big argument over this in the bugs section) says php:pre hypertext processor since the php processor will read all of the php that is in the scripts and then change it to an html function which the computer's can then read and access all data off of.
php you might say is like c,c++, or other programming languages like thoes that can use one line of code to display a whole bunch of information
like the following:
CODE
<?php
PHPinfo();
?>
Note
---------------------------------------------------
you must include a ; at the end of each
function!! it will give you messes of errors
if you miss that!
---------------------------------------------------
that will show you everything that your machine knows about the php version it is running.
php can stand alone or it can be imbeded into an html document like the following:
CODE
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<table>
<tr>
<td>
Phpinfo:
</td>
<td>
<?php
phpinfo();
?>
</td>
</tr>
</table>
</body>
</html>
just as php can be imbeded into html, html can be imbeded into a php document using an echo""; statememt. an echo statment can also be used just to say hello world(see next example
CODE
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
//this will have the title set to informationhere
echo"<title>informationhere</title>";
//this will say hello world on the left side of the page
echo"hello world";
?>
</body>
</html>
as you may have noticed I used two(2) backslashes to declare an iformation statment, this statement will not be displayed on the screen.
now you must wait till i make my web page with more detailed iformation.
jk. lol. no i will finish updating when i finish writing part 2
Currently Being Updated please Wait...