2009 May

tag  2009  May PHP programming tutorials and examples with the 2009 May tag. This helps finding desired codes and snippets facilitating your site navigation. In every page you can find a special section with tags just like this - 2009 May. Tags inter-links tutorials with the similar content, so if you click on the tag you will find only related and relevant 2009 May content.

php echo and print differences

There are some differences between echo and print in php, echo and print are not functions. First, you can pass more than one parameter to echo, print doesn’t allow more than one parameter. Example: <?php $a = 5; $b = 6;   echo $a; // will output 5 echo $a, $6; // outputs 56   print...

Save PHP form in file

With php you can store data, save php form in text file such as notepad and even in microsoft word too. The following php code will make you able to store form data in microsoft word file. It will create ms word file too that if file is not created before. < ?php $username = $_POST['username']; $fp...

PHP substr() function

PHP substr() function will substract or returns the portion of string specified by the start and length parameters. substr($string , int $start [, int $length ] ) <?php $sub = substr("abcdef", -2);    // returns "ef", -2 represent starting from 2 character...

PHP list function with mysql_query

When we want to output something from a mysql database we select, query it then use the mysql_fetch_array function to return an array that corresponds to the fetched row. Most of us are using $row['rowname'] to extract desired info from that row but we can make use of list() function: Example using $row['rowname']: $select...
Page 1 of 212