Submit Search
Upload
6. Php MongoDB adaugarea unui document
•
0 likes
•
27 views
Razvan Raducanu, PhD
Follow
Php MongoDB add one document
Read less
Read more
Education
Report
Share
Report
Share
1 of 6
Recommended
7. Php MongoDB editarea unui document
7. Php MongoDB editarea unui document
Razvan Raducanu, PhD
5. Php MongoDB vederea unui singur document
5. Php MongoDB vederea unui singur document
Razvan Raducanu, PhD
9. Php MongoDB cautarea unui document
9. Php MongoDB cautarea unui document
Razvan Raducanu, PhD
8. Php MongoDB stergerea unui document
8. Php MongoDB stergerea unui document
Razvan Raducanu, PhD
Quick beginner to Lower-Advanced guide/tutorial in PHP
Quick beginner to Lower-Advanced guide/tutorial in PHP
Sanju Sony Kurian
C A S Sample Php
C A S Sample Php
JH Lee
Table through php
Table through php
syeda zoya mehdi
PHP Lecture 4 - Working with form, GET and Post Methods
PHP Lecture 4 - Working with form, GET and Post Methods
Al-Mamun Sarkar
Recommended
7. Php MongoDB editarea unui document
7. Php MongoDB editarea unui document
Razvan Raducanu, PhD
5. Php MongoDB vederea unui singur document
5. Php MongoDB vederea unui singur document
Razvan Raducanu, PhD
9. Php MongoDB cautarea unui document
9. Php MongoDB cautarea unui document
Razvan Raducanu, PhD
8. Php MongoDB stergerea unui document
8. Php MongoDB stergerea unui document
Razvan Raducanu, PhD
Quick beginner to Lower-Advanced guide/tutorial in PHP
Quick beginner to Lower-Advanced guide/tutorial in PHP
Sanju Sony Kurian
C A S Sample Php
C A S Sample Php
JH Lee
Table through php
Table through php
syeda zoya mehdi
PHP Lecture 4 - Working with form, GET and Post Methods
PHP Lecture 4 - Working with form, GET and Post Methods
Al-Mamun Sarkar
Database Management - Lecture 4 - PHP and Mysql
Database Management - Lecture 4 - PHP and Mysql
Al-Mamun Sarkar
PHP Lecture 6 - Php file uploading
PHP Lecture 6 - Php file uploading
Al-Mamun Sarkar
wget.pl
wget.pl
Yasuhiro Onishi
Fcontratos
Fcontratos
karlloss
11
11
qurbanmuradov
Pemrograman Web 9 - Input Form DB dan Session
Pemrograman Web 9 - Input Form DB dan Session
Nur Fadli Utomo
introduction to Django in five slides
introduction to Django in five slides
Dan Chudnov
Php talk
Php talk
Jamil Ramsey
Php Mysql
Php Mysql
Mudasir Syed
Php workshop L04 database
Php workshop L04 database
Mohammad Tahsin Alshalabi
Pemrograman Web 8 - MySQL
Pemrograman Web 8 - MySQL
Nur Fadli Utomo
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Haitham Nabil
Php workshop L03 superglobals
Php workshop L03 superglobals
Mohammad Tahsin Alshalabi
SCCI'15 - Devology - Session 4 Javascript
SCCI'15 - Devology - Session 4 Javascript
SCCI-CU
Delete statement in PHP
Delete statement in PHP
Vineet Kumar Saini
0017text[1].Txt.Xhtml
0017text[1].Txt.Xhtml
HOME
Web Development Course: PHP lecture 4
Web Development Course: PHP lecture 4
Gheyath M. Othman
TDC2015 Porto Alegre - Automate everything with Phing !
TDC2015 Porto Alegre - Automate everything with Phing !
Matheus Marabesi
13. view data
13. view data
Razvan Raducanu, PhD
London XQuery Meetup: Querying the World (Web Scraping)
London XQuery Meetup: Querying the World (Web Scraping)
Dennis Knochenwefel
PHP POWERPOINT SLIDES
PHP POWERPOINT SLIDES
Ismail Mukiibi
4. Php MongoDB view_data
4. Php MongoDB view_data
Razvan Raducanu, PhD
More Related Content
What's hot
Database Management - Lecture 4 - PHP and Mysql
Database Management - Lecture 4 - PHP and Mysql
Al-Mamun Sarkar
PHP Lecture 6 - Php file uploading
PHP Lecture 6 - Php file uploading
Al-Mamun Sarkar
wget.pl
wget.pl
Yasuhiro Onishi
Fcontratos
Fcontratos
karlloss
11
11
qurbanmuradov
Pemrograman Web 9 - Input Form DB dan Session
Pemrograman Web 9 - Input Form DB dan Session
Nur Fadli Utomo
introduction to Django in five slides
introduction to Django in five slides
Dan Chudnov
Php talk
Php talk
Jamil Ramsey
Php Mysql
Php Mysql
Mudasir Syed
Php workshop L04 database
Php workshop L04 database
Mohammad Tahsin Alshalabi
Pemrograman Web 8 - MySQL
Pemrograman Web 8 - MySQL
Nur Fadli Utomo
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Haitham Nabil
Php workshop L03 superglobals
Php workshop L03 superglobals
Mohammad Tahsin Alshalabi
SCCI'15 - Devology - Session 4 Javascript
SCCI'15 - Devology - Session 4 Javascript
SCCI-CU
Delete statement in PHP
Delete statement in PHP
Vineet Kumar Saini
0017text[1].Txt.Xhtml
0017text[1].Txt.Xhtml
HOME
Web Development Course: PHP lecture 4
Web Development Course: PHP lecture 4
Gheyath M. Othman
TDC2015 Porto Alegre - Automate everything with Phing !
TDC2015 Porto Alegre - Automate everything with Phing !
Matheus Marabesi
13. view data
13. view data
Razvan Raducanu, PhD
London XQuery Meetup: Querying the World (Web Scraping)
London XQuery Meetup: Querying the World (Web Scraping)
Dennis Knochenwefel
What's hot
(20)
Database Management - Lecture 4 - PHP and Mysql
Database Management - Lecture 4 - PHP and Mysql
PHP Lecture 6 - Php file uploading
PHP Lecture 6 - Php file uploading
wget.pl
wget.pl
Fcontratos
Fcontratos
11
11
Pemrograman Web 9 - Input Form DB dan Session
Pemrograman Web 9 - Input Form DB dan Session
introduction to Django in five slides
introduction to Django in five slides
Php talk
Php talk
Php Mysql
Php Mysql
Php workshop L04 database
Php workshop L04 database
Pemrograman Web 8 - MySQL
Pemrograman Web 8 - MySQL
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Php workshop L03 superglobals
Php workshop L03 superglobals
SCCI'15 - Devology - Session 4 Javascript
SCCI'15 - Devology - Session 4 Javascript
Delete statement in PHP
Delete statement in PHP
0017text[1].Txt.Xhtml
0017text[1].Txt.Xhtml
Web Development Course: PHP lecture 4
Web Development Course: PHP lecture 4
TDC2015 Porto Alegre - Automate everything with Phing !
TDC2015 Porto Alegre - Automate everything with Phing !
13. view data
13. view data
London XQuery Meetup: Querying the World (Web Scraping)
London XQuery Meetup: Querying the World (Web Scraping)
Similar to 6. Php MongoDB adaugarea unui document
PHP POWERPOINT SLIDES
PHP POWERPOINT SLIDES
Ismail Mukiibi
4. Php MongoDB view_data
4. Php MongoDB view_data
Razvan Raducanu, PhD
Apache Velocity 1.6
Apache Velocity 1.6
Henning Schmiedehausen
Ex[1].3 php db connectivity
Ex[1].3 php db connectivity
Mouli Chandira
Php 101: PDO
Php 101: PDO
Jeremy Kendall
vue-components.pdf
vue-components.pdf
NuttavutThongjor1
SULTHAN's - PHP MySQL programs
SULTHAN's - PHP MySQL programs
SULTHAN BASHA
PHP an intro -1
PHP an intro -1
Kanchilug
Html , php, mysql intro
Html , php, mysql intro
Nagarajan Kamalakannan
Practical PHP by example Jan Leth-Kjaer
Practical PHP by example Jan Leth-Kjaer
COMMON Europe
Introduction to PHP
Introduction to PHP
Collaboration Technologies
Coding part
Coding part
Sanjay Gupta
P H P Part I I, By Kian
P H P Part I I, By Kian
phelios
php Mailer
php Mailer
Randy Arios
10. Imagini in MongoDB
10. Imagini in MongoDB
Razvan Raducanu, PhD
Ôn tập KTTMDT
Ôn tập KTTMDT
mrcoffee282
Presentaion
Presentaion
CBRIARCSC
07 php
07 php
CBRIARCSC
Update statement in PHP
Update statement in PHP
Vineet Kumar Saini
07-PHP.pptx
07-PHP.pptx
GiyaShefin
Similar to 6. Php MongoDB adaugarea unui document
(20)
PHP POWERPOINT SLIDES
PHP POWERPOINT SLIDES
4. Php MongoDB view_data
4. Php MongoDB view_data
Apache Velocity 1.6
Apache Velocity 1.6
Ex[1].3 php db connectivity
Ex[1].3 php db connectivity
Php 101: PDO
Php 101: PDO
vue-components.pdf
vue-components.pdf
SULTHAN's - PHP MySQL programs
SULTHAN's - PHP MySQL programs
PHP an intro -1
PHP an intro -1
Html , php, mysql intro
Html , php, mysql intro
Practical PHP by example Jan Leth-Kjaer
Practical PHP by example Jan Leth-Kjaer
Introduction to PHP
Introduction to PHP
Coding part
Coding part
P H P Part I I, By Kian
P H P Part I I, By Kian
php Mailer
php Mailer
10. Imagini in MongoDB
10. Imagini in MongoDB
Ôn tập KTTMDT
Ôn tập KTTMDT
Presentaion
Presentaion
07 php
07 php
Update statement in PHP
Update statement in PHP
07-PHP.pptx
07-PHP.pptx
More from Razvan Raducanu, PhD
12. edit record
12. edit record
Razvan Raducanu, PhD
11. delete record
11. delete record
Razvan Raducanu, PhD
10. view one record
10. view one record
Razvan Raducanu, PhD
9. add new record
9. add new record
Razvan Raducanu, PhD
8. vederea inregistrarilor
8. vederea inregistrarilor
Razvan Raducanu, PhD
7. copy1
7. copy1
Razvan Raducanu, PhD
6. hello popescu 2
6. hello popescu 2
Razvan Raducanu, PhD
5. hello popescu
5. hello popescu
Razvan Raducanu, PhD
4. forme in zend framework 3
4. forme in zend framework 3
Razvan Raducanu, PhD
3. trimiterea datelor la vederi
3. trimiterea datelor la vederi
Razvan Raducanu, PhD
2.routing in zend framework 3
2.routing in zend framework 3
Razvan Raducanu, PhD
1. zend framework intro
1. zend framework intro
Razvan Raducanu, PhD
18. images in symfony 4
18. images in symfony 4
Razvan Raducanu, PhD
17. delete data
17. delete data
Razvan Raducanu, PhD
16. edit data
16. edit data
Razvan Raducanu, PhD
15. view single data
15. view single data
Razvan Raducanu, PhD
14. add data in symfony4
14. add data in symfony4
Razvan Raducanu, PhD
12.doctrine view data
12.doctrine view data
Razvan Raducanu, PhD
11. move in Symfony 4
11. move in Symfony 4
Razvan Raducanu, PhD
10. add in Symfony 4
10. add in Symfony 4
Razvan Raducanu, PhD
More from Razvan Raducanu, PhD
(20)
12. edit record
12. edit record
11. delete record
11. delete record
10. view one record
10. view one record
9. add new record
9. add new record
8. vederea inregistrarilor
8. vederea inregistrarilor
7. copy1
7. copy1
6. hello popescu 2
6. hello popescu 2
5. hello popescu
5. hello popescu
4. forme in zend framework 3
4. forme in zend framework 3
3. trimiterea datelor la vederi
3. trimiterea datelor la vederi
2.routing in zend framework 3
2.routing in zend framework 3
1. zend framework intro
1. zend framework intro
18. images in symfony 4
18. images in symfony 4
17. delete data
17. delete data
16. edit data
16. edit data
15. view single data
15. view single data
14. add data in symfony4
14. add data in symfony4
12.doctrine view data
12.doctrine view data
11. move in Symfony 4
11. move in Symfony 4
10. add in Symfony 4
10. add in Symfony 4
Recently uploaded
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
socialsciencegdgrohi
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
Virag Sontakke
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
Celine George
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
UnboundStockton
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
anshu789521
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
pboyjonauth
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
Virag Sontakke
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
SafetyChain Software
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
NirmalaLoungPoorunde1
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Sumit Tiwari
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
KarinaGenton
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Celine George
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
AvyJaneVismanos
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
GaneshChakor2
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
Steve Thomason
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
SoniaTolstoy
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
OH TEIK BIN
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Sapana Sha
Recently uploaded
(20)
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
6. Php MongoDB adaugarea unui document
1.
PHP&MongoDB adaugarea unui document
2.
index.php <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php require_once
'connection.php'; $query = new MongoDBDriverQuery([]); $rows = $client->executeQuery("flori.flowers", $query); ?> <table> <tr> <td>Nume</td> <td>Culoare</td> <td>Marime</td> <td>Pret</td> </tr>
3.
<?php foreach($rows as
$val):?> <?php if((isset($val->nume))&&(isset($val->culoare))&& (isset($val- >marime))&&(isset($val->pret))&&($val->nume!="")&& ($val->culoare!="")):?> <tr> <td><?php echo $val->nume;?></td> <td><?php echo $val->culoare;?></td> <td><?php echo $val->marime;?></td> <td><?php echo $val->pret;?></td> <td><?php echo "<a href="view.php?id=".$val->_id."">View</a>";?></td> </tr> <?php endif;?> <?php endforeach;?> </table> <a href="insert.php">Add a new record</a><br><br> </body> </html>
4.
insert.php <!DOCTYPE html> <html> <head> <title>Insert MongoDB</title> </head> <body> <h1>Flowers</h1> <form
method="post" action="store.php"> <table> <tr> <td>Nume: </td> <td><input type="text" name="nume" autofocus></td> </tr> <tr> <td>Age:</td> <td><input type=“text" name="age"></td> </tr>
5.
<tr> <td>Culoare:</td> <td><input type=“text" name="culoare"></td> </tr> <tr> <td>Marime:</td> <td><input
type=“text" name="marime"></td> </tr> <tr> <td>Pret:</td> <td><input type=“text" name="pret"></td> </tr> <tr> <td>Movie:</td> <td><input type=“text" name="movie"></td> </tr> <tr> <td><input type="submit" value="Submit" name="submit"></td> <td><input type="reset" value="Reset“></td> </tr> </table> </form> </body> </html>
6.
store.php <?php require_once 'connection.php'; $bulk =
new MongoDBDriverBulkWrite; if(isset($_POST["submit"])){ $data=array( '_id' => new MongoDBBSONObjectID, 'nume'=>$_POST['nume'], 'age'=>$_POST['age'], 'culoare'=>$_POST['culoare'], 'movie'=>$_POST['movie'], 'marime'=>$_POST['marime'] , 'pret'=>$_POST['pret'] ); $bulk->insert($data); } $client->executeBulkWrite('flori.flowers',$bulk); header('location:index.php'); ?>