Blog Page 5
Here are some word problems for students to practice variable and data type assignments. 1. Write a program that declares variables to represent the length and width of a room in feet, and the price of carpentering per square yard...
This MySQL Snippet will make the first letter of any text into uppercase. This may come in handy in your future work and might as well worthy of sharing.
If you don't want to catch all errors individually, why not use an Array() of errors you might encounter? This function accepts an array of errors, loop through each of them then return it and display.  
This is the continuation for Uploading Multiple Files in CakePHP. This lesson covers downloading of files being uploaded to your server. All we have to do is add the custom function below in your AttachmentsController. The parameter will the function what...
THIS WORKS WITH CAKE 2.x There are many plugins available on the internet for attaching files. This custom made script will give you idea on how to attach multiple files. In this script, we have a model Attachment and Document. Attachment...
The script below is useful when you want to delete files in a specified folder in any path. Pretty easy aren't yah!
There are times that you want to call or run a desktop application in your web based applications. For example, you want to have a button "scan" that will call your scanner's application, the script below will run any...
This Creating Dynamic Select lesson only works with CakePHP 2.x and above In this tutorial, I will show you how to populate a drop down field according to another drop down selection using CakePHP 2.x. The idea is simple and will...