Category: Programming

12
May
2016

Triangular Number Java Code True or False

Here yo can see what is triangular number: https://en.wikipedia.org/wiki/Triangular_number public class NumShape { public static void main(String[]…

08
May
2016

Problem 1 from 52 programming problems book

  http://ideone.com/ItvUGS

08
May
2016

Problem 2 from 52 programming problems book

I was using code blocks but it was giving me compiler error for c++11 was not on…

23
Apr
2016

Cookie Testing

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”…

12
Apr
2016

Simple PHP CRUD Tutorial

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”].”‘) “;…

10
Apr
2016

PHP OOP basics

Reference: Object Oriented PHP for Beginners: Page 4