php tutorial

Submitted by: 
This is a forum script programmed by a friend of mine. I think there are some holes you can patch up yourself and upload the secured script. GOTO "Moduls" folder and edit the config.php Thanks.
Submitted by: 
You can use this code if you have a bidding system. It’s a timer that will let your visitors know the time left before the bidding closes. The simple PHP script will look up the value from closing_date field of bids table then use it as the target date. The JavaScript is created by Robert Hashemian. You need to have PHP/Apache/MySQL running in your system in order to run this script. To learn...
Submitted by: 
There are so many tutorials on how to update one (1) record at a time. But only few tutorial on how to update multiple rows at once. I dedicate this tutorial to my 3rd year students. Save the following code as select.php: <?php mysql_connect ( "localhost" , "root" , "" ) ; mysql_select_db ( "students" ) or die ( "Unable to select database" ) ; $sql = "SELECT * FROM students ORDER BY id" ;
Submitted by: 
PHP If…Else Statements The if statement is used to execute code with condition. If the value of the condition is True then execute the statement else execute another statement or simply end the execution. There are three combination of the If statement namely: if statement – only one condition is executed. if...else statement – only one condition is executed but it will execute another statement...
Submitted by: 
In every programming language, operators play an important role. It can be use in comparison statements like IF statement, loops statement like WHILE loops, assigning a value to a variable and a lot more. Comparison Operators Operator Description Example >= is greater than or equal to 4>=9 returns false <= is less than or equal to 5<=7 returns true < is less than 2<7 returns...
Submitted by: 
A string variable is used to manipulate any character stored in a variable you declared. This chapter will discuss common function you can use to manipulate string variables. Some common functions are: The Concatenation Operator The strlen() function The strpos() function The concatenation operator is very useful to combine two string values. Example: <?php $txt = "Welcome to my website...
Submitted by: 
A variable is used to store any value that you like. You can reuse variable in any block of code in your PHP script. PHP variables must start with a dollar ($) sign. PHP Variable Syntax $variable_name = value ; Below is an example of how to use variables in PHP: <?php $firstname = "John" ; $lastname = "Smith" ; echo $firstname . ' ' . $lastname ; echo "<br />...
Submitted by: 
If you came from other programming languages like c/c++ and or Java, you will not have difficulty understanding PHP syntax as they have the same thing in common. But unlike c/c++ or Java, PHP script is executed on the server and can be inserted within any HTML code and must start scripting block with <?php and end with ?>. Below is an example of PHP file: <html> <body> <?php...
Submitted by: 
Before we start working with PHP/MySQL, you need to install WampServer first in your local computer. WampServer will allow you to run PHP script in your local computer without accessing live server. Running PHP script locally will also speed up your development. First download WampServer from http://www.wampserver.com/ . Download WampServer In step # 3 select 32bit or 64bit. Save it on your local...
Submitted by: 
Download PHP from: http://www.php.net/downloads.php Download MySQL from: http://www.mysql.com/downloads/ Download Apache from: http://httpd.apache.org/download.cgi If you don’t like to install each application separately, you can install WampServer from http://www.wampserver.com/ . WampServer comes with PhpMyAdmin which is necessary to administer databases.

Pages