Monday, June 2, 2008

my php to connect database

$N=$_GET["name"];
$con = mysql_connect("localhost", "10514154", "lia154");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$linkdb=mysql_select_db("mim10514154",$con);
if (!$linkdb)
{die ("Could not connect to the Database!".mysql_error());
}
$result=mysql_query("SELECT * FROM `soccer players` where Name ='".$N."'");
if (!$result)
{die ("result false".mysql_error());
}
echo"


";
while($row=mysql_fetch_array($result))
{echo"";echo"";
echo"";echo"";echo"";echo"";echo"";echo"";echo"";echo"";echo"";echo"";echo"";echo"";echo"";echo"";echo"";echo"";echo"";echo"";echo"";echo"";echo"";echo"";echo"";echo"";}
echo"
NameFullnameDate of BirthPositionNumberClubPeriodAppearancesGoalClub2Period2Appearance2Goal2Club3Period3Appearances3Goal3Club4Period4Appearances4Goal4National TeamAppearances in National TeamGoal in National Team
".$row['Name']."". $row['Full Name']."".$row['Date of Birth']."".$row['Position']."".$row['Number']."".$row['Club']."".$row['Period']."".$row['Appearances']."".$row['Goal']."".$row['Club2']."".$row['Period2']."".$row['Appearances2']."".$row['Goal2']."".$row['Club3']."".$row['Period3']."".$row['Appearances3']."".$row['Goal3']."".$row['Club4']."".$row['Period4']."".$row['Appearances4']."".$row['Goal4']."".$row['National team']."".$row['Appearances in National team']."".$row['Goal in National Team']."
";
mysql_close($con);

?>

Javascript

JavaScript is a scripting language most often used for client-side web development. It was the originating dialect of the ECMAScript standard. It is a dynamic, weakly typed, prototype-based language with first-class functions. JavaScript was influenced by many languages and was designed to look like Java, but be easier for non-programmers to work with.[1][2] The language is best known for its use in websites (as client-side JavaScript) but is also used to enable scripting access to objects embedded in other applications (for example Microsoft Gadgets in the Windows Sidebar).

JavaScript, despite the name, is essentially unrelated to the Java programming language though both have the common C syntax, and JavaScript copies many Java names and naming conventions. The language was renamed from LiveScript in a co-marketing deal between Netscape and Sun in exchange for Netscape bundling Sun's Java runtime with their then-dominant browser. The key design principles within JavaScript are inherited from the Self programming language.

"JavaScript" is a trademark of Sun Microsystems. It was used under license for technology invented and implemented by Netscape Communications and current entities such as the Mozilla Foundation.[3]

PHP

PHP (a recursive acronym for PHP: Hypertext Preprocessor)[2] is a computer scripting language, originally designed for producing dynamic web pages. It is for server-side scripting, but can be used from a command line interface or in standalone graphical applications.[3]

While PHP was originally created by Rasmus Lerdorf in 1995, the main implementation of PHP is now produced by The PHP Group and serves as the de facto standard for PHP as there is no formal specification.[4] Released under the PHP License, the Free Software Foundation considers it to be free software.[5]

PHP is a widely-used general-purpose scripting language that is especially suited for web development and can be embedded into HTML. It generally runs on a web server, taking PHP code as its input and creating web pages as output. It can be deployed on most web servers and on almost every operating system and platform free of charge.[6] PHP is installed on more than 20 million websites and 1 million servers. It is also the most popular Apache module among computers using Apache as a web server.[7] The most recent major release of PHP was version 5.2.6 on May 1, 2008.[

xhtml

The Extensible Hypertext Markup Language, or XHTML, is a markup language that has the same depth of expression as HTML, but also conforms to XML syntax.

While HTML is an application of Standard Generalized Markup Language (SGML), a very flexible markup language, XHTML is an application of XML, a more restrictive subset of SGML. Because they need to be well-formed, true XHTML documents allow for automated processing to be performed using standard XML tools—unlike HTML, which requires a relatively complex, lenient, and generally custom parser. XHTML can be thought of as the intersection of HTML and XML in many respects, since it is a reformulation of HTML in XML. XHTML 1.0 became a World Wide Web Consortium (W3C) Recommendation on January 26, 2000. XHTML 1.1 became a W3C Recommendation on May 31, 2001.

Monday, March 31, 2008

learning

i read something about PHP. when PHP parse a file, it looks for opening tag and closing tag. these two tags tell PHP where to start and stop interpreting the code between them. the opening tag and closing tag could write like<?php ?>,<script language="php"></script>,<? ?>,<? ?>

but in this program:
<?php
if ($expression) {
?>
<strong>This is true.</strong>
<?php
} else {
?>
<strong>This is false.</strong>
<?php
}
?>
i get a little bit confussed. why the PHP starting tag and closing tag are put beside "if ($expression)", "else", and "}". anyone get idea about this plese leave message to me, thanks.

this is my final learning proposal

http://students.mim.iml.uts.edu.au/users/10514154/LearningProposa.html
this is my final learning proposal. i am looking forward to get any suggestion about my webpage.

Monday, March 10, 2008

learning proposal

This is my learning proposal. I want to do a webpage about soccer. Because i like Soccer very much.
http://students.mim.iml.uts.edu.au/users/10514154/LearningProposal-template.htm