PHP MySQLi Create, Read, Update and Delete – 1

php-mysqli-crud

For dynamic website, web application MySQL play an important role. The term MySQLi means MySQL Improved. MySQLi work with MySQL version 4.1.13 or newer and PHP version 5.0.0. Today I will share how to create, read, update and delete (CRUD) data in database using PHP MySQLi. In this tutorial. How to,

Popular PHP Frameworks: Developing Website and Web Application

50 Popular PHP Frameworks: Developing Website and Web Application

I've share Popular PHP Framework for developing website and web application. They are 81.2% of websites using PHP as server-side programming languages. Because of, PHP is faster and easy develop a website and web application. PHP Framework can be used for most of the companies for developing website and web application.

PHP shuffle an array with all values are in different position

PHP shuffle an array with all values are in different position

Hi all! PHP shuffle an array using shuffle(). But some times the values are in same position. The simple PHP script for shuffling an array with all values are in different position. function arrayshuffle($array_input) { $array_shuffle=$array_input; while(count(array_intersect_assoc($array_input, $array_shuffle))) {shuffle($array_shuffle); } return $array_shuffle; } The sample Input and output as follow $array_input=array(1,2,3,4,5); print_r($array_input); print_r(arrayshuffle($array_input));   Input ------ Array (     [0] => 1     [1] => 2    

How to Prevent HTML Form Re-submission

Sometimes HTML form are resubmitted by pressing Function Key (F5). In this post how to prevent HTML form re-submission. This can be done by following methods. Adding different submission URL to action property. Using session variable to prevent form re-submission. In the form tag add different submission URL to action. The

Upload a single file using PHP

Tech Dasher

Upload a single file using php with 3 easy steps. First create a form, add file tag and finally add php upload script. Video tutorial as follow In next post, how to rename a file and validate file size and type.

PHP Send Email with HTML and Multiple Attachments

Tech Dasher

In this post I've to share sending email along with html and multiple attachment using php. The sample PHP script. <?PHP $from='from@xxx.com'; $to='to@yyy.com'; $subject='Email Subject'; $emailmessage='Email Message'; $attachment_1='testfile1.pdf'; $attachment_2='testfile2.pdf'; $mimeboundary = md5(time()); $eol = PHP_EOL; // header $headers  = "From: ".$from.$eol; $headers .= "MIME-Version: 1.0".$eol; $headers .= "Content-Type: multipart/mixed; boundary="".$mimeboundary."""; // body $message = "--".$mimeboundary.$eol; $message .= "Content-Transfer-Encoding: 7bit".$eol.$eol; $message .= "Email Body.".$eol.$eol; // message $message .= "--".$mimeboundary.$eol; $message

Top