Fixing requireCordovaModule error
August 23, 2019
After I executed cordova prepare android, I was prompted to update the cordova version to 9.0. So, I updated it by executing npm i -g cordova: When the version is already 9.0, this error occured: Solution Let us first uninstall the cordova framework. Make sure that the cache is clean after uninstalling. It is now […]
Read moreTags: cordova
Create Basic Calculator in PHP
May 4, 2018
One of the most common exercises we encounter in computer programming is basic calculator. That’s why, I posted this exercise for PHP beginners. Below are the functionalities about the source code: Display the result of first and second number based on the operation submitted. Check if first and second numbers are not empty. In division, […]
Read moreTags: php
Search form in PHP using mysqli
January 23, 2018
The mysqli extension, or as it is sometimes known, the MySQL improved extension, was developed to take advantage of new features found in MySQL systems versions 4.1.3 and newer. The mysqli extension is included with PHP versions 5 and later. Previously, we used mysql function in manipulating data from our database. But later on, in […]
Read moreTags: mysqli, php
Create, Read, Update, Delete (CRUD) in PHP using mysqli
January 18, 2018
We usually encounter CRUD whenever we create a database-driven website. We insert data, display, update and delete if necessary. PHP provides different ways/drivers in doing so. For example, you may want to use PDO rather than mysqli. Now, it depends on your convenience. This script will serve as a guide for those developers who want […]
Read moreTags: CRUD, mysqli, php
Check if a number is odd or even in PHP
November 30, 2017
We know that any intege that is divisible by 2 is an even number else the number is an odd. The code below will check if a number is odd or even: In mathematics, % symbol denotes percentage(percent). But in computing, we call it modulo(sometimes called modulus). The modulo operation finds the remainder after division […]
Read moreTags: odd even, php
Difference between post-increment and pre-increment in php
November 29, 2017
We used encounter and use increment while doing our php script. But sometimes, we forget how these two increments differ. $x++; //post-increment ++$x; //pre-increment The table below will describe the difference between the two: Name Operator Description Post-increment $x++ Increments $x by one, then returns $x Pre-increment ++$x Returns $x, then increments $x by one […]
Read moreTags: post-increment, pre-increment