Free Essay

Php How to Use

In:

Submitted By McBryan
Words 2137
Pages 9
Creating dynamic Web sites with PHP and MySQL
How to serve database content on the fly
Skill Level: Intermediate Md. Ashraful Anam (russell@bangla.net) Web developer #####

15 May 2001 This tutorial shows you how to create a dynamic Web site using PHP and MySQL. You learn how dynamic sites work and how they serve the content. After reading this tutorial, you will be ready to serve your own dynamic content from your own site.

Section 1. Before you start
About this tutorial
This tutorial shows you how to use two open source, cross-platform tools for creating a dynamic Web site: PHP and MySQL.

Prerequisites
This tutorial is targeted to developers who are new to PHP and MySQL, and it has no prerequisites.

Section 2. Introduction and installation
Creating dynamic Web sites with PHP and MySQL © Copyright IBM Corporation 2001. All rights reserved. Trademarks Page 1 of 20

developerWorks®

ibm.com/developerWorks

The need for dynamic content
The Web is no longer static; it's dynamic. As the information content of the Web grows, so does the need to make Web sites more dynamic. Think of an e-shop that has 1,000 products. The owner has to create 1,000 Web pages (one for each product), and whenever anything changes, the owner has to change all those pages. Ouch! Wouldn't it be easier to have only one page that created and served the content on the fly from the information about the products stored in a database, depending on the client request? Nowadays sites have to change constantly and provide up-to-date news, information, stock prices, and customized pages. PHP and SQL are two ways to make your site dynamic. PHP PHP is a robust, server-side, open source scripting language that is extremely flexible and actually fun to learn. PHP is also cross platform, which means your PHP scripts will run on a UNIX®, Linux®, or Windows® server. MySQL SQL is the standard query language for interacting with databases. MySQL is an open source, SQL database server that is more or less free and extremely fast. MySQL is also cross platform.

Installing Apache server routines
First we will install the Apache server routines in the Linux environment. To install these packages you need root access to your server. If someone else is hosting your site, ask the administrator to install them for you. Installing Apache is relatively simple. First download the Apache archive, apache_x.x.xx.tar.gz (the latest I downloaded was apache_1.3.14.tar.gz) from the Apache site and save it in /tmp/src directory. Go to that directory: # cd /tmp/src/ Extract the files with the command: # gunzip -dc apache_x.x.xx.tar.gz | tar xv replacing those xs with your version number. Change to the directory that has been created: # cd apache_x.x.xx

Creating dynamic Web sites with PHP and MySQL © Copyright IBM Corporation 2001. All rights reserved.

Trademarks Page 2 of 20

ibm.com/developerWorks

developerWorks®

Now to configure and install apache, type the commands:
# ./configure --prefix=/usr/local/apache --enable-module=so # make # make install

This will install Apache in the directory /usr/local/apache. If you want to install Apache to a different directory, replace /usr/local/apache with your directory in the prefix. That's it! Apache is installed. You might want to change the default server name to something of real value. To do this, open the httpd.conf file (located at /usr/local/apache/conf) and find the line starting with ServerName. Change it to ServerName localhost. To test your install, start up your Apache HTTP server by running: # /usr/local/apache/bin/apachectl start You should see a message like "httpd started". Open your Web browser and type "http://localhost/" in the location bar (replace localhost with your ServerName if you set it differently). You should see a nice welcome page.

Installing MySQL
Next comes MySQL. We will follow the same procedure (replacing those xs again with our version number). Download the source from the MySQL site and save it in /tmp/src. The latest version I found was mysql-3.22.32.tar.gz.
# # # # # # cd /tmp/src/ gunzip -dc mysql-x.xx.xx.tar.gz | tar xv cd mysql-x.xx.xx ./configure --prefix=/usr/local/mysql make make install

MySQL is installed. Now you need to create the grant tables: # scripts/mysql_install_db Then start the MySQL server: # /usr/local/bin/safe_mysqld & And test your installation by typing:

Creating dynamic Web sites with PHP and MySQL © Copyright IBM Corporation 2001. All rights reserved.

Trademarks Page 3 of 20

developerWorks®

ibm.com/developerWorks

mysql -uroot -p At the password prompt, just press Enter. You should see something like:
Welcome to MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 5 to server version 3.22.34 Type 'help' for help. mysql>

If you see this, you have MySQL running properly. If you don't, try installing MySQL again. Type status to see the MySQL server status. Type quit to exit the prompt.

Installing PHP
We will follow a similar procedure to install PHP. Download and save the source from the PHP site to /tmp/src:
# # # # # # cd /tmp/src/ gunzip -dc php-x.x.xx.tar.gz | tar xv cd php-x.x.xx ./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs make make install

Copy the ini file to the proper directory: # cp php.ini-dist /usr/local/lib/php.ini Open httpd.conf in your text editor (probably located in /usr/local/apache/conf directory), and find a section that looks like the following:
# And for PHP 4.x, use: # #AddType application/x-httpd-php .php #AddType application/x-httpd-php-source .phps

Just remove those #s before the AddType line so that it looks like:
# And for PHP 4.x, use: # AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps

Creating dynamic Web sites with PHP and MySQL © Copyright IBM Corporation 2001. All rights reserved.

Trademarks Page 4 of 20

ibm.com/developerWorks

developerWorks®

Save your file and restart apache:
# /usr/local/apache/bin/apachectl stop # /usr/local/apache/bin/apachectl start

Then test whether you have PHP installed properly. Type the following code in a text editor and save it as test.php in a directory accessible by your Web server:

Set the permission of the file to executable by typing at console chmod 775 test.php, and then view it with your browser. You should see a detailed description of the environment variables in PHP as in Figure 1. If you don't, then PHP was not installed properly. Try reinstalling it. Make sure there is a section "MySQL" in the php info; if not, MySQL connectivity will not work. Figure 1. Environment variables in PHP

Creating dynamic Web sites with PHP and MySQL © Copyright IBM Corporation 2001. All rights reserved.

Trademarks Page 5 of 20

developerWorks®

ibm.com/developerWorks

Section 3. Start coding
Your first script
Following tradition, we will begin coding with a "hello world" example. Fire up your text editor and type the following code:

Save the file as first.php and view it in the browser (remember to set the permission to chmod 775 first). The page shows "Hello World". View the HTML source of this page through your browser. You will only see the text Hello World. This happened because PHP processed the code, and the code told PHP to output the string "Hello World". Notice the . These are delimiters and enclose a block of PHP code. tells PHP to stop processing. All lines beyond this scope are passed as HTML to the browser.

Your first database
Now that you have PHP running properly and have created your first script, let's create a database and see what we can do with it. Drop to console and type in the following command: mysqladmin -uroot create learndb This creates a database named "learndb" for us to use. Here we have assumed that you are root user. If you are logged in as another user, just use the command mysqladmin -uusername -pyourpassword create learndb, replacing username and yourpassword with your username and password, respectively. If you are hosting your site through a hosting company, you probably don't have permission to run mysqladmin. In this case, you have to ask your server administrator to create the database for you. Next we will create tables in this database and enter some information. Go to the console. Type:

Creating dynamic Web sites with PHP and MySQL © Copyright IBM Corporation 2001. All rights reserved.

Trademarks Page 6 of 20

ibm.com/developerWorks

developerWorks®

mysql You should see something like:
Welcome to MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 5 to server version 3.22.34 Type 'help' for help.

Type:
CONNECT learndb CREATE TABLE personnel ( id int NOT NULL AUTO_INCREMENT, firstname varchar(25), lastname varchar(20), nick varchar(12), email varchar(35), salary int, PRIMARY KEY (id), UNIQUE id (id) ); INSERT INTO personnel VALUES ('1','John','Lever','John', 'john@everywhere.net','75000'); INSERT INTO personnel VALUES ('2','Camilla','Anderson','Rose', 'rose@flower.com','66000');

This creates a table with 5 fields and puts some information in it, as shown in Figure 2. Figure 2. Creating a table

Where's my view?
Now that we have a database with some information with it, let's see if we can view it with PHP. Save the following text as viewdb.php:

Run it through your browser and you will see a personnel database. But what is this code doing and how is it generated? Let's examine the code. First we declare a variable $db. In PHP we declare a variable by putting the '$' sign before it. The string after $ is the name of that variable. We assign value to it by coding: $variable_name=somevalue; (example: $count=4;) Remember to put ';' after all the lines that are executable in PHP. So we declare the variable $db and create a connection to the mysql database with the statement "mysql_connect("localhost", "root", "")". In plain English, it means connect to MySQL database in localhost server with the username root and password "". Replace them with your own username and password if they are different. Then we assign a pointer to this database to $db; in other words, $db points to our database server localhost. Next we select the database with which we want to interact with the lines "mysql_select_db("learndb",$db);" which means we wish to use the database "learndb" located by the pointer variable $db. But we want information from the database, so we query the database with the lines "$result = mysql_query("SELECT * FROM personnel",$db);" The part "SELECT * FROM personnel" is an SQL statement (in case you don't know SQL), which means select all the stuff from the database personnel, as shown in Figure 3. Figure 3. Selecting data from the database

We run this query with the PHP command mysql_query() and save the result returned by the database to the variable $result. Now we can access the different data in the different rows of the database from the $result variable. We use the function mysql_fetch_array() to extract each row from $result and assign them to variable $myrow. So $myrow contains information about each row as opposed to all the rows in $result. Then we output the data contained in each row. "echo
Creating dynamic Web sites with PHP and MySQL © Copyright IBM Corporation 2001. All rights reserved. Trademarks Page 8 of 20

ibm.com/developerWorks

developerWorks®

$myrow["firstname"];" means send to output the value contained in the field "firstname" of the row contained in $myrow; in other words, we access different fields of the row with $myrow["fieldname"]. We have used the while() loop here, which means as long as or while there are data to be extracted from $result, execute the lines within those brackets {}. Thus we get nicely formatted output in our browser. Viewing the PHP code and the HTML source from the browser side-by-side may help you easily understand the procedure. Congratulations! You have created your first dynamic page.

Section 4. Add new records
Creating an HTML form
So now you can view records stored in your MySQL database and display them in your browser using PHP. But you want to add new record. Assuming that you know about HTML forms, let's code a page that will do just that. First we'll create a static form, datain.html: First name: Last name: Nick Name: E-mail: Salary:

Now we have a form that will post the information to a page "datain.php". We must code this page so that it is able to process the posted data and send it to our MySQL database. The following listing of datain.php will do that:

Similar Documents

Free Essay

Sdfgh

...PHP Tutorial Part 1 - Introduction * Part 1 - Introduction * Part 2 - Displaying Information & Variables * Part 3 - IF Statements * Part 4 - Loops and Arrays * Part 5 - E-mail With PHP * Part 6 - PHP With Forms * Part 7 - Final Notes Introduction Up until recently, scripting on the internet was something which very few people even attempted, let alone mastered. Recently though, more and more people have been building their own websites and scripting languages have become more important. Because of this, scripting languages are becomming easier to learn and PHP is one of the easiest and most powerful yet. What Is PHP? PHP stands for Hypertext Preprocessor and is a server-side language. This means that the script is run on your web server, not on the user's browser, so you do not need to worry about compatibility issues. PHP is relatively new (compared to languages such as Perl (CGI) and Java) but is quickly becomming one of the most popular scripting languages on the internet. Why PHP? You may be wondering why you should choose PHP over other languages such as Perl or even why you should learn a scripting language at all. I will deal with learning scripting languages first. Learning a scripting language, or even understanding one, can open up huge new possibilities for your website. Although you can download pre-made scripts from sites like Hotscripts, these will often contain advertising for the author or will not do exactly what...

Words: 5544 - Pages: 23

Free Essay

Mobile Applications

...PHP Tutorial - Learn PHP If you want to learn the basics of PHP, then you've come to the right place. The goal of this tutorial is to teach you the basics of PHP so that you can: • • • Customize PHP scripts that you download, so that they better fit your needs. Begin to understand the working model of PHP, so you may begin to design your own PHP projects. Give you a solid base in PHP, so as to make you more valuable in the eyes of future employers. PHP stands for PHP Hypertext Preprocessor. PHP - What is it? Taken directly from PHP's home, PHP.net, "PHP is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly." This is generally a good definition of PHP. However, it does contain a lot of terms you may not be used to. Another way to think of PHP is a powerful, behind the scenes scripting language that your visitors won't see! When someone visits your PHP webpage, your web server processes the PHP code. It then sees which parts it needs to show to visitors(content and pictures) and hides the other stuff(file operations, math calculations, etc.) then translates your PHP into HTML. After the translation into HTML, it sends the webpage to your visitor's web browser. PHP - What's it do? It is also helpful to think of PHP in terms of what it can do for you. PHP will allow you to: ...

Words: 1556 - Pages: 7

Free Essay

Php Tutorial

...PHP Tutorial From beginner to master PHP is a powerful tool for making dynamic and interactive Web pages. PHP is the widely-used, free, and efficient alternative to competitors such as Microsoft's ASP. In our PHP tutorial you will learn about PHP, and how to execute scripts on your server Pre-requisites Before you continue you should have a basic understanding of the following: • • HTML/XHTML JavaScript What is PHP? • • • • • • PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.) PHP is an open source software PHP is free to download and use What is a PHP File? • • • PHP files can contain text, HTML tags and scripts PHP files are returned to the browser as plain HTML PHP files have a file extension of ".php", ".php3", or ".phtml" What is MySQL? • • • • MySQL is a database server MySQL is ideal for both small and large applications MySQL supports standard SQL MySQL compiles on a number of platforms 1 • MySQL is free to download and use PHP + MySQL • PHP combined with MySQL are cross-platform (you can develop in Windows and serve on a Unix platform) Why PHP? • • • • PHP runs on different platforms (Windows, Linux, Unix, etc.) PHP is compatible with almost all servers used today (Apache, IIS, etc.) PHP is FREE to download from the official PHP resource:...

Words: 546 - Pages: 3

Free Essay

Comper of Free Books

...All Students of first year of IT Management for Business. In this article I would like to illustrate three books what you may use during studying PHP language at The University. Students of first years usually have a big problem with proper choice of a good book. I will do my best to help you with this problem . The first book what I have chosen is “PHP The Bible” co-authors Tim Covers and Joyce Park. This fairly developed guide provides analysis of specific problems, also it help you become acquainted with the latest version of the PHP language to create scripts to HTML pages. This book will learn you how to create websites with tracking session, use PHP for object-oriented programming and how to join the PHP code directly to e-mail programs. You also will learn how to secure website from hackers and how to use practically the mechanisms of cookie and redirect “PHP4 The Bible” is the book that contains information for beginners and intermediate programmers of script based on PHP technology, which is becoming increasingly popular due to the speed of the running scripts. Authors of this book Tim Covers and Joyce Park, are great experts. Mr Covers is a programmer with experience in web developer and he is instructor at the University of Chicago. Joyce Park is a writer on open source topics and web developer and she create web sites using PHP technology. The primary advantage of this book is the style of writing. Clearly explained are considered problems. Language of this...

Words: 1413 - Pages: 6

Free Essay

Analyst

...PHP PHP code can be included alone inside a file or can be embedded inside the html code and runs on webserver. The PHP files have extension of .php. The PHP code syntax is: <?php ‘code goes here’ ?> We have to use semi colon at the end of each command/line. If we only have php code in a file, then we need to make sure that there is no space before the opening php tags or after the closing php tag. If the file extension is .php then we can only view that file through web browser where php is installed even if the file does not have any php code. On our local servers we need to store the files in the root folder, which for WAMP is C:\wamp\www. We also need to make sure that the local server is running. The local port is 80, if we are using a different port than standard then we need to specify that e.g. http://localhost:8888/. We can have as many blocks of php codes inside html as we want. However, we cant nest one php code inside another. We can also insert php code above the html code and that works perfectly fine. The php code directly works with the database so if we are not outputting anything in html the code above html code works just fine. . Period: Period is used to concatenate two strings. Variable: In PHP all variable name start with ‘$’ sign e.g. $name = ‘Ali’;. Remember ‘$this’ is a reserved variable so don’t use this. Some people use parenthesis around variable but it is completely optional to use. String: The php string works the same way...

Words: 5458 - Pages: 22

Free Essay

Essay on Business Operations Management

...time  to start interview? can we start? ur resume is in front of me u r from ... right? but we are based in pune, r u ready to move here   how many companies u have worked in till now? then why would u like to switch?     so far u have worked in (number) projects were they all in core php? if not then in what other framework? then ask about that framework so u have experiance in oop then ask oop questions then go to php questions then go to my sql then js     I think thats all we need our hr will get back to u with the decision/result but before that may i know ur current ctc and expected ctc? and is it negotiable? PHP: 1) What is use of header() function in php ? The header() function sends a raw HTTP header to a client.We can use herder() function for redirection of pages. It is important to notice that header() must be called before any actual output is seen.. 2) what does the error message "header already sent" mean? Ques: 10 How we can upload videos using PHP? Ans: When want to upload videos using PHP we should follow these steps: 1.first you have to encrypt the the file which you want to upload by using "multipart-form-data" to get the $_FILES in the form submition. 2.After getting the $_FILES['tmp_name'] in the submition 3.By using move_uploaded_file (tmp_location,destination) function in PHP we can move the file from original location. 3) What is the difference between $name and $$name? $name is variable where as $$name is reference...

Words: 5893 - Pages: 24

Free Essay

Php for Social Solutions

...reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, Packt Publishing, nor its dealers or distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: December 2007 Production Reference: 1031207 Published by Packt Publishing Ltd. 32 Lincoln Road Olton Birmingham, B27 6PA, UK. ISBN 978-1-847192-56-1 www.packtpub.com Cover Image by Karl Moore (karl.moore@ukonline.co.uk) Credits Author Hasin Hayder Reviewers Kalpesh Barot Murshed Ahmed Khan Proofreader Development Editor Nanda Padmanabhan Production Coordinator Assistant Development Editor Rashmi Phadnis Cover Designer Technical Editor Divya Menon Editorial Team leader Mithil Kulkarni Shantanu Zagade Shantanu Zagade Damian Carvill Project Manager Abhijeet Deobhakta Indexer Monica Ajmera About the Author Hasin Hayder...

Words: 10232 - Pages: 41

Free Essay

Technical Study

...comprehensive Website that will allow ordering a customer's home, or where ever they may be. The L&M Partnership will also offer custom artwork or graphic options for personalizing shirts. The customer may bring in a graphic or may use of a sub-contracted artist to realize their vision. The artist can take a customer's pencil drawing or even articulated thoughts and turn them into a new design. The L&M Partnership will offer a range of different shirt options. Short sleeves, long sleeves, organic fabrics, and a variety of styles will also be offered. They also have different sizes of shirts such as small, medium, large and extra large. The objective of L&M Partnership on making personalized shirts is to provide a way to design custom t-shirts and sell them without risk. It allows you to create custom graphics, determine the cost and then add a mark-up. In other words, profit for your pocket. To top it off, the partnership do everything on the back end, too: process the shirts, designs, packing, and personal shipping. All you need is an idea. Perhaps there is a business, an event, a cause, or anything else that may benefit by having a t-shirt. There’s really no limit. The L&M Partnership start by using the easy-to-use design tool. They decide who sees the design. Choose to make it available to anyone and everyone, or to just a selected group. To increase the sales results substantially, the...

Words: 1398 - Pages: 6

Free Essay

Linux Research Assignment 1

...acronym LAMP, and how is it used for creating dynamic websites? A: Lamp stands for “Linux, Apache, MySQL and PHP.” Together these software technologies can be used to form a fully-functional web server. Linux is the most popular operating system used in web servers. The most important of these four technologies is Apache, Apache is the software that serves webpages over the Internet via the HTTP protocol. Once Apache is installed, a standard Linux machine is transformed into a web server that can host live websites. Other components of LAMP include MySQL and PHP. MySQL is a popular open source database management system (DBMS) and PHP is a popular web scripting language. Together, these two products are used to create dynamic websites. Instead of only serving static HTML pages, a LAMP server can generate dynamic webpages that run PHP code and load data from a MySQL database. 2. For Internet websites which are located throughout the entire world, what is the estimated market share for dynamic websites which use LAMP as opposed to Microsoft IIS and the Microsoft Active Server Page scripting language? A: As of today, LAMP (Apache) = 56.4% and Microsoft IIS = 12.9% and I cannot find the percentages for the Microsoft Active Server Page. 3. What is PHP? A: PHP is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. 4. What is the JAVA Server Page and how may it be used for...

Words: 353 - Pages: 2

Premium Essay

Palette Studio Case Study

...CHAPTER 3 Technology and Operations Viability In order for The Palette Studio to produce durable and high quality goods, the company must look for workers that are highly skilled. Also, the use of machineries, particularly sewing machines are necessary to produce 1 bag. The company’s process selection was discovered to be job shop since The Palette Studio releases moderate number of bags, the machineries and equipments used are specialized and the workers are skilled in using these equipments. By the use of technology, The Palette Studio conducts research in order to find new features of their product, to find out what's the best material for the products they make and it gives ideas of what are the new products the venture can offer to its...

Words: 2264 - Pages: 10

Free Essay

Advanced Web Development

...however, additional systems necessary on the back-end to make this system possible. According to TheConsumerCollective website (2010), “E-commerce spending continues to outpace analyst’s predictions… spending will reach $259 billion in 2014, and $278.8 billion by 2015” (Suetos, 2010). Over the past few years, customer confidence with online shopping has increased significantly. Customers feel more at ease with purchasing their products from online retailers than they did just years ago. This proposal will demonstrate the major components necessary for Kudler Fine Foods to begin offering their products online. It will discuss the database design, how the scripting language PHP will be set up to provide a “shopping cart” for ease of use, and illustrate a mockup of the online ordering pages. In addition, it will overview the use of data validations, and web standards. Database Design For Kudler to achieve success through the Internet, the company must choose a database created with MySQL. MySQL is an open source format that provides several benefits to a business entering the online retail world. First, the code...

Words: 3409 - Pages: 14

Premium Essay

Koozy Footwear Marketing Plan

...1.0 Executive Summary Koozy Footwear is an established aftermarket inline ladies footwear manufacturer. An innovation to the fashion world, Koozy Footwear is bringing to you the “Wedge Sandal with removable Heels”, a product that is intended for ladies who love comfort in fashion. In this advancement, removable heels will truly give ladies the opportunity of ease and comfort of wearing a two-way sandal in any way they adore. Although there are several major manufacturers of footwear themselves, innovations providing a more comfortable feeling to ladies who are using it have not been given a big part of concern. This gives Koozy Footwear a surprising opportunity for entering the market. Ever since, fashion is long been a fad. Most of the people, majority of females, are fond of being updated with the ever changing trends in the fashion world, of which one is the footwear. Koozy Footwear will work to cultivate this market and develop the new ideas in producing innovated sandals. Koozy Footwear aims to thrive hastily in penetrating the market with a solid business model, long-term development and vigorous management team that would execute this inevitable opportunity. Koozy Footwear will provide the ladies with not just the best quality products but also complete. Koozy Footwear will sell its product through online markets to achieve a higher margin and be able to maintain a close customer relationships, which forms a great part in creating a true market demand. By the end of the...

Words: 4455 - Pages: 18

Free Essay

Marketing Plan

...285 pounds user weight, and 5” to 6.4” approximately user height and approximately 120 to 165 degrees from floor level continuos motion. The TheraPro relaxation chair have 3 levels of kneading speed, 3 levels of tapping speed, 3 levels of roller width, one full cycle of up/down speed and back stroke range. The accessories will be power cord, T-shaped wrench, thin and thick buffer pad, child safety lock keys, device holder and remote control. The TheraPro relaxation chair covers more area, 1200 square inches. And has 16 pre-programmed massage sessions available. Klismos will target working professionals and athletes who experience physical, mental and emotional. Klismos will both aim for male and female professional whose income ranges from Php 80 000.00 to 120 000.00 and athletes who want to spare from visiting their massage therapist. And believe they all have the capacity to buy the product which very essential to their needs...

Words: 8884 - Pages: 36

Premium Essay

Survey Questions

...Name: ____________________________ Sex: ____ Occupation: ________________________ Age: ____ Monthly Income ___ PHP 11,999 and below ____ PHP 41,000 – 46,999 ___ PHP 12,000 – 19,999 ____ PHP 47,000 – 53,999 ___ PHP 20,000 – 26,999 ____ PHP 54,000 – 60,999 ___ PHP 27,000 – 33,999 ____ PHP 61,000 – 67,999 ___ PHP 34,000 – 40,999 ____ PHP 67,000 and above Dear Sir/Ms, I am a student of Mapua Institute of Technology Makati, taking MGT121, Fundamentals of Marketing, under the E.T. Yuchengco School of Business and Management, presently doing a marketing plan on the Coca-Cola beverage. We request for your cooperation to fill this questionnaire below and the data gathered shall be kept confidential. 1. Where is your workplace or school located? ___ Batangas Province ___ Metro Manila Current hometown (please specify): ______________ 2. How do you usually travel from your home to your workplace? ___ Private vehicle ___ Buses (for long distance travels) ___ Public Van ___ Jeepney/Walking 3. How do you travel within the locale of your workplace or study? ___ Jeepney/s ___ Tricycle ___ Walking ___ Private Vehicle 4. Where do you usually go for the weekends? ___ Staying at home ___ Town plaza/community park ___ Local malls ___ Weekend jobs/classes 5. Are you willing to buy our product (Coca-Cola beverage)? ___ Yes ___ No 6. What do you...

Words: 415 - Pages: 2

Free Essay

Web-Based Programmed-Instruction in Php Programming

...Chapter 1 The Problem and Its Background Introduction The world of information has changed dramatically. These widespread changes may be considered a precursor to a second industrial revolution from which an information society may emerge. In the field of education, academic institutions are continuously challenged by social events unfolding in its midst. Developments in the workplace, changes in students’ demographics, and economic trends force educational institutions to change. Despite the improvement of educational institutions, employers and students have needs that the current education system failed to meet. In order to survive these upheavals, educators must improve their teaching and learning using technology. Quality education calls for educator who can give quality teaching. Hence, quality teaching requires quality techniques. Techniques are the practices and refinement of presentations which an educator employs to make instructions more effective when using a specific method of teaching. Educators should select appropriate learning materials to associate learning into a larger whole. Cruz (2004) said that the nature of the computer subject calls for an intensive and comprehensive way of presenting the lessons through advanced technology. The future ramifications of adopting technology into instructional settings can be significant and far-reaching and can produce a substantial and a direct result of technological innovations. Educational technology...

Words: 1258 - Pages: 6