Month: April 2016
bool setcookie(string name[,striung value[,int expire[,string path, string domain[, string secure]]]]) <?php if(!isset($_COOKIE[‘ordering’])){ setcookie(“Ordering”,$_POST[‘ChangeOrdering’],time()+31536000); } ?> <form method=”POST”…
Without Constructors: class_lib.php <?php class person{ var $name_tame; function set_name($new_name) { $this->$name_tame=$new_name; } function get_name() { return…
Download Whole Scripts Create Operation insert.php <?php require(“dbconfig.php”); if(count($_POST)>0) { $sql=”INSERT INTO usersinfo (username,password,firstname,lastname) VALUES (‘”.$_POST[“username”].”‘,'”.$_POST[“password”].”‘,'”.$_POST[“firstname”].”‘,'”.$_POST[“lastname”].”‘) “;…
Reference: Object Oriented PHP for Beginners: Page 4
Recent Comments