Upload and View a File (image/pdf/doc) in a List of Oracle Apex Page

Uploading and viewing a file (image/pdf/doc) in the Oracle Apex page is sometimes problematic if we miss steps that we should do. But this is very easy and simple thing as I have experienced. I have kept the process in very easy 8 steps, kindly go through them, they are really easy and will take few minutes only!

1. INSERT 5 FIELDS IN DATA FOR FILE UPLOADING:

When we have decided to uplaod a file, we should have few db columns in our table:


FILE_LOB
FILE_NAME
FILE_MIMETYPE
FILE_UPDATEDATE
FILE_CHARACTERSET

here, the file_name is for holding the full image name (with extension) and file_characterset is used for determining whether it is a 32 bit or 64 bit characterset file.
Continue reading “Upload and View a File (image/pdf/doc) in a List of Oracle Apex Page”

Weka as a Machine Learning Tool

‘Weka’ is generally used as a machine learning tool. Downloaded Weka from sourceforge  and installed it in our computer. For a demo, we followed following steps: when the GUI of Weka was on the screen, clicked on Explorer and opened a new screen. Open File… C:\\Program Files –> Weka –> Data –> iris.arff now, if we click on ‘EDIT’ button, we can see the sample data if we … Continue reading Weka as a Machine Learning Tool

PHP session lost after redirecting the page

I was inserting some data and was trying to show my success message using SESSION variables in PHP. my code segment of samplepage.php was like this: and below this segment I was catching the $_SESSION[‘MySuccessMsg’] in a div in top of my HTML body: so every time the page was redirected after $success==1 condition segment, I found no data in $msg. Later I found a … Continue reading PHP session lost after redirecting the page

How to avoid duplicate entry in each page reload after PHP submit

I was using form submit using method=’POST’ and action=$_SERVER[‘PHP_SELF’]. I added data in my DB successfully but whenever I manually reloaded my page, it was a duplicate entry. using POST variables carefully, I was unable to resolve the problem. here goes my code segment of samplepage.php: Later, I realized that no matter what how I check the post variables and use them carefully, the variables … Continue reading How to avoid duplicate entry in each page reload after PHP submit

Difference between include() and include_once() Functions in PHP

When should I use require vs. include? The require() function is identical to include(), except that it handles errors differently. If an error occurs, the include() function generates a warning, but the script will continue execution. The require() generates a fatal error, and the script will stop. When should I use require_once vs. require The require_once() statement is identical to require() except PHP will check … Continue reading Difference between include() and include_once() Functions in PHP

Select All and Deselect All Checkboxes in a list Using Asp.net

I was in a problem while I was trying to use a checkbox that will select all checkboxes or deselect all the boxes in the check list. This codes gives the important service that while selected, if any one of the check boxes is deselected, the ‘chkHeader’ (check box which selected all) will be deselected. this is an important need of course! Here, chkHeader = … Continue reading Select All and Deselect All Checkboxes in a list Using Asp.net