Friday, August 8, 2014

Database

About database, what I learn is that one can upload files into a database and all the info, images and such will be in the store in the website and it can be retrieve anytime you want to, for example, a person filled in a form with the username and password and all the information about him or her, all that information will be upload into the database and it can be preview anytime you desire.

The database we use is the Wampserver.

figure 1. Wampserver

I think that this is a very amazing feature as it can be use together with php and do something really amazing. For instance, it could calculate things according to the data you upload, like if I filled in the form and I chose male as the gender , then it will calculate according to the codes 

<?php

$salutation = "";

if($gender=="female")
{
$salutation ="Ms";
}
elseif($gender=="male")
{
$salutation ="Mr";
}
else
{
$salutation ="????";
}

?>

and determine that I am a male and address me as Mr.

The only problem I face when learning about the database is that, it is quite complicated to use, as I often having some technical error when using it in the class, and when I have a problem , I just go to Mr. Yong to ask for help.

No comments:

Post a Comment