Enviar pesquisa
Carregar
6. Php MongoDB adaugarea unui document
•
0 gostou
•
27 visualizações
Razvan Raducanu, PhD
Seguir
Php MongoDB add one document
Leia menos
Leia mais
Educação
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 6
Recomendados
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
Recomendados
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
Mais conteúdo relacionado
Mais procurados
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
Mais procurados
(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)
Semelhante a 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
07 php
07 php
CBRIARCSC
Presentaion
Presentaion
CBRIARCSC
Update statement in PHP
Update statement in PHP
Vineet Kumar Saini
07-PHP.pptx
07-PHP.pptx
GiyaShefin
Semelhante a 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
07 php
07 php
Presentaion
Presentaion
Update statement in PHP
Update statement in PHP
07-PHP.pptx
07-PHP.pptx
Mais de 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
Mais de 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
Último
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17
Celine George
ARTERIAL BLOOD GAS ANALYSIS........pptx
ARTERIAL BLOOD GAS ANALYSIS........pptx
AneriPatwari
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
Patidar M
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
Quiz Club NITW
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
Mr Bounab Samir
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdf
Christalin Nelson
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
Mae Pangan
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Association for Project Management
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
Celine George
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Quiz Club NITW
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
DhatriParmar
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
VijayaLaxmi84
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
Nguyen Thanh Tu Collection
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
Vanessa Camilleri
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
karenfajardo43
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
Stan Meyer
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
MichelleTuguinay1
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Jemuel Francisco
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
Sayali Powar
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
Celine George
Último
(20)
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17
ARTERIAL BLOOD GAS ANALYSIS........pptx
ARTERIAL BLOOD GAS ANALYSIS........pptx
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdf
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
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'); ?>