Encerrado

do some php

INFO3410 Lab Exam

The [url removed, login to view] file provided will be used to complete the following questions.

Section 1

Write PHP Code to complete the following tasks in a PHP file ‘[url removed, login to view]’:

1. Create an associate array called “crop” that will store the name of the crop “banana”, the price “2.0” and the unit “kg”

2. Create an indexed array called “crops” add the crop array created in 1 to this new array crops.

3. Add the following information to the end of the crops array:

a. Orange 5 per lb.

b. Cabbage 10 per bundle

c. Peas 10 per kg.

4. Using PHPMyAdmin create the database called “ttagri” which contains a table “commodities”. The commodities table have the following columns:

a. id – number – primary key – auto increment

b. name – varchar 100 – not null

c. price - double – default 0 – not null

d. unit – varchar 10 - default lb – not null

____________________________________________

5. Write a function called “saveCrops” that will retrieve a collection of crops and store each crop in the database. Note that each crop in the collection is stored as an associative array as created in Q1.

6. Test the function with the array and values created in Q2 and Q3. After operation is performed comment the call to the saveCrops function to keep it from repeating multiple times.

7. Write a function called “getAllCrops” that will retrieve the records from the database, store each record as an associative array where the columns are the keys and finally return a collection (indexed array) of all of the crops retrieved from the database.

8. Using the function created in Q7 display JSON data for the records stored in the database fro crops.

I NEED DONE IN 30MINS

Habilidades: HTML, MySQL, PHP

Ver mais: insert data json php mysql, php tournament double elimination, insert data json mysql php, php table double, php script double elimination tournament, php script double tournament, php form double submits, php submit double, php delete double lines, gui command test operation, mysql name php drop double populate, mysql php delete double records, multiple choice test php, php processing speed test, php script speed test

Acerca do Empregador:
( 9 comentários ) Trinidad and Tobago

ID do Projeto: #10939745

9 freelancers are bidding on average $29 for this job

$25 USD em 1 dia
(112 Comentários)
6.5
rana100

I am very much interested to work in your project. I know the following languages that will meet the techincal needs of your project PHP, MYSQL,Wordpress,Javascript, CSS, Boostrap, responsive design. I can analysis Mais

$83 USD in 10 dias
(27 Comentários)
5.1
dhavalthakor

Hello Sir, I read your project details. I have understood your requirements. I have studied of features & requirements as you describe. We have expertise in CorePHP + AJAX + JS + JQuery + Angular JS + MySql Data Mais

$25 USD em 1 dia
(22 Comentários)
4.8
$17 USD in 0 dias
(11 Comentários)
2.8
bazizi426

Hi, I can do it easily, it will be done in less than 1 day, I have more than 5 years in web development. contact me for more details.

$30 USD em 1 dia
(3 Comentários)
0.9
ravigadi

Hi, I can do all this in the required time i.e 30 mins. I'm new to freelancing so please give me this opportunity to finish the required task. Thanks.

$10 USD em 1 dia
(0 Comentários)
0.0
$35 USD em 1 dia
(0 Comentários)
0.0
radnok

I have long experience in developing PHP applications as well as jQuery. I build solid solutions for my customers with good base to develop projects in the future. I always listen to feedback from my customer and make Mais

$25 USD in 2 dias
(0 Comentários)
0.0
Dev195

getting started on the project, first implement php code, then MySQL table, then php code for table display, finaly display json code

$25 USD in 10 dias
(0 Comentários)
0.0
prodanecivan

Hi! I am a student and I really need a job. I like to work with the database and I worked with MySQL, phpMyAdmin and php. Thank you!

$10 USD in 3 dias
(0 Comentários)
0.0