Submit Search
Upload
7. Php MongoDB editarea unui document
•
0 likes
•
27 views
Razvan Raducanu, PhD
Follow
Php MongoDB edit document
Read less
Read more
Education
Report
Share
Report
Share
1 of 6
Recommended
5. Php MongoDB vederea unui singur document
5. Php MongoDB vederea unui singur document
Razvan Raducanu, PhD
6. Php MongoDB adaugarea unui document
6. Php MongoDB adaugarea unui 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
Table through php
Table through php
syeda zoya mehdi
Quick beginner to Lower-Advanced guide/tutorial in PHP
Quick beginner to Lower-Advanced guide/tutorial in PHP
Sanju Sony Kurian
Database Management - Lecture 4 - PHP and Mysql
Database Management - Lecture 4 - PHP and Mysql
Al-Mamun Sarkar
PHP Lecture 4 - Working with form, GET and Post Methods
PHP Lecture 4 - Working with form, GET and Post Methods
Al-Mamun Sarkar
Recommended
5. Php MongoDB vederea unui singur document
5. Php MongoDB vederea unui singur document
Razvan Raducanu, PhD
6. Php MongoDB adaugarea unui document
6. Php MongoDB adaugarea unui 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
Table through php
Table through php
syeda zoya mehdi
Quick beginner to Lower-Advanced guide/tutorial in PHP
Quick beginner to Lower-Advanced guide/tutorial in PHP
Sanju Sony Kurian
Database Management - Lecture 4 - PHP and Mysql
Database Management - Lecture 4 - PHP and Mysql
Al-Mamun Sarkar
PHP Lecture 4 - Working with form, GET and Post Methods
PHP Lecture 4 - Working with form, GET and Post Methods
Al-Mamun Sarkar
PHP Lecture 6 - Php file uploading
PHP Lecture 6 - Php file uploading
Al-Mamun Sarkar
Fcontratos
Fcontratos
karlloss
C A S Sample Php
C A S Sample Php
JH Lee
wget.pl
wget.pl
Yasuhiro Onishi
introduction to Django in five slides
introduction to Django in five slides
Dan Chudnov
Delete statement in PHP
Delete statement in PHP
Vineet Kumar Saini
Pemrograman Web 9 - Input Form DB dan Session
Pemrograman Web 9 - Input Form DB dan Session
Nur Fadli Utomo
11
11
qurbanmuradov
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Haitham Nabil
Php Mysql
Php Mysql
Mudasir Syed
Php workshop L04 database
Php workshop L04 database
Mohammad Tahsin Alshalabi
SCCI'15 - Devology - Session 4 Javascript
SCCI'15 - Devology - Session 4 Javascript
SCCI-CU
TDC2015 Porto Alegre - Automate everything with Phing !
TDC2015 Porto Alegre - Automate everything with Phing !
Matheus Marabesi
Php workshop L03 superglobals
Php workshop L03 superglobals
Mohammad Tahsin Alshalabi
Netcfg 122625
Netcfg 122625
wcholfin
Pemrograman Web 8 - MySQL
Pemrograman Web 8 - MySQL
Nur Fadli Utomo
Laravel the right way
Laravel the right way
Matheus Marabesi
5. hello popescu
5. hello popescu
Razvan Raducanu, PhD
Php talk
Php talk
Jamil Ramsey
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
Ex[1].3 php db connectivity
Ex[1].3 php db connectivity
Mouli Chandira
More Related Content
What's hot
PHP Lecture 6 - Php file uploading
PHP Lecture 6 - Php file uploading
Al-Mamun Sarkar
Fcontratos
Fcontratos
karlloss
C A S Sample Php
C A S Sample Php
JH Lee
wget.pl
wget.pl
Yasuhiro Onishi
introduction to Django in five slides
introduction to Django in five slides
Dan Chudnov
Delete statement in PHP
Delete statement in PHP
Vineet Kumar Saini
Pemrograman Web 9 - Input Form DB dan Session
Pemrograman Web 9 - Input Form DB dan Session
Nur Fadli Utomo
11
11
qurbanmuradov
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Haitham Nabil
Php Mysql
Php Mysql
Mudasir Syed
Php workshop L04 database
Php workshop L04 database
Mohammad Tahsin Alshalabi
SCCI'15 - Devology - Session 4 Javascript
SCCI'15 - Devology - Session 4 Javascript
SCCI-CU
TDC2015 Porto Alegre - Automate everything with Phing !
TDC2015 Porto Alegre - Automate everything with Phing !
Matheus Marabesi
Php workshop L03 superglobals
Php workshop L03 superglobals
Mohammad Tahsin Alshalabi
Netcfg 122625
Netcfg 122625
wcholfin
Pemrograman Web 8 - MySQL
Pemrograman Web 8 - MySQL
Nur Fadli Utomo
Laravel the right way
Laravel the right way
Matheus Marabesi
5. hello popescu
5. hello popescu
Razvan Raducanu, PhD
Php talk
Php talk
Jamil Ramsey
London XQuery Meetup: Querying the World (Web Scraping)
London XQuery Meetup: Querying the World (Web Scraping)
Dennis Knochenwefel
What's hot
(20)
PHP Lecture 6 - Php file uploading
PHP Lecture 6 - Php file uploading
Fcontratos
Fcontratos
C A S Sample Php
C A S Sample Php
wget.pl
wget.pl
introduction to Django in five slides
introduction to Django in five slides
Delete statement in PHP
Delete statement in PHP
Pemrograman Web 9 - Input Form DB dan Session
Pemrograman Web 9 - Input Form DB dan Session
11
11
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Php Mysql
Php Mysql
Php workshop L04 database
Php workshop L04 database
SCCI'15 - Devology - Session 4 Javascript
SCCI'15 - Devology - Session 4 Javascript
TDC2015 Porto Alegre - Automate everything with Phing !
TDC2015 Porto Alegre - Automate everything with Phing !
Php workshop L03 superglobals
Php workshop L03 superglobals
Netcfg 122625
Netcfg 122625
Pemrograman Web 8 - MySQL
Pemrograman Web 8 - MySQL
Laravel the right way
Laravel the right way
5. hello popescu
5. hello popescu
Php talk
Php talk
London XQuery Meetup: Querying the World (Web Scraping)
London XQuery Meetup: Querying the World (Web Scraping)
Similar to 7. Php MongoDB editarea unui document
PHP POWERPOINT SLIDES
PHP POWERPOINT SLIDES
Ismail Mukiibi
Ex[1].3 php db connectivity
Ex[1].3 php db connectivity
Mouli Chandira
Apache Velocity 1.6
Apache Velocity 1.6
Henning Schmiedehausen
4. Php MongoDB view_data
4. Php MongoDB view_data
Razvan Raducanu, PhD
Php 101: PDO
Php 101: PDO
Jeremy Kendall
vue-components.pdf
vue-components.pdf
NuttavutThongjor1
Practical PHP by example Jan Leth-Kjaer
Practical PHP by example Jan Leth-Kjaer
COMMON Europe
Update statement in PHP
Update statement in PHP
Vineet Kumar Saini
Rails <form> Chronicle
Rails <form> Chronicle
Kyosuke MOROHASHI
10. Imagini in MongoDB
10. Imagini in MongoDB
Razvan Raducanu, PhD
Coding part
Coding part
Sanjay Gupta
Php update and delet operation
Php update and delet operation
syeda zoya mehdi
Ôn tập KTTMDT
Ôn tập KTTMDT
mrcoffee282
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
php Mailer
php Mailer
Randy Arios
Presentaion
Presentaion
CBRIARCSC
07 php
07 php
CBRIARCSC
Unit 1wt
Unit 1wt
vamsitricks
Similar to 7. Php MongoDB editarea unui document
(20)
PHP POWERPOINT SLIDES
PHP POWERPOINT SLIDES
Ex[1].3 php db connectivity
Ex[1].3 php db connectivity
Apache Velocity 1.6
Apache Velocity 1.6
4. Php MongoDB view_data
4. Php MongoDB view_data
Php 101: PDO
Php 101: PDO
vue-components.pdf
vue-components.pdf
Practical PHP by example Jan Leth-Kjaer
Practical PHP by example Jan Leth-Kjaer
Update statement in PHP
Update statement in PHP
Rails <form> Chronicle
Rails <form> Chronicle
10. Imagini in MongoDB
10. Imagini in MongoDB
Coding part
Coding part
Php update and delet operation
Php update and delet operation
Ôn tập KTTMDT
Ôn tập KTTMDT
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
php Mailer
php Mailer
Presentaion
Presentaion
07 php
07 php
Unit 1wt
Unit 1wt
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
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
13. view data
13. view data
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
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
13. view data
13. view data
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
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Sapana Sha
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
anshu789521
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
9953056974 Low Rate Call Girls In Saket, Delhi NCR
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
Sarwono Sutikno, Dr.Eng.,CISA,CISSP,CISM,CSX-F
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
VS Mahajan Coaching Centre
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
SafetyChain Software
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
Virag Sontakke
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
unnathinaik
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
iammrhaywood
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
Virag Sontakke
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
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
KarinaGenton
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
OH TEIK BIN
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
RaymartEstabillo3
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
David Douglas School District
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
Mahmoud M. Sallam
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
Chameera Dedduwage
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Celine George
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
Marc Dusseiller Dusjagr
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
UnboundStockton
Recently uploaded
(20)
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
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🔝
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
7. Php MongoDB editarea unui document
1.
PHP&MongoDB editarea unui document
2.
index.php <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> <td colspan=“2”>Actions</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> <td><?php echo "<a href="edit.php?id=".$val->_id."">Edit</a>";?></td> </tr> <?php endif;?> <?php endforeach;?> </table> <a href="insert.php">Add a new record</a><br><br> </body> </html>
4.
edit.php <?php require_once 'connection.php'; $bulk =
new MongoDBDriverBulkWrite; if(!isset($_POST["submit"])){ $id = new MongoDBBSONObjectId($_GET['id']); $filter = ['_id' => $id]; $query = new MongoDBDriverQuery($filter); $article = $client->executeQuery("flori.flowers", $query); $doc = current($article->toArray()); }else{
5.
$data=[ 'nume'=>$_POST['nume'], 'culoare'=>$_POST['culoare'], 'marime'=>$_POST['marime'], 'pret'=>$_POST['pret'] ]; $id = new
MongoDBBSONObjectId($_POST['id']); $filter = ['_id' => $id]; $update=['$set'=>$data]; $bulk->update($filter, $update); $client->executeBulkWrite('flori.flowers',$bulk); header('location:index.php'); } ?>
6.
<h1>Editati inregistrarea</h1> <form method="post"
action="<?php echo $_SERVER['PHP_SELF'];?>"> <input type="hidden" name="id" value="<?php echo $doc->_id;?>"> Nume:<br><input type="text" name="nume" value="<?php echo $doc->nume;?>"><br/> Culoare:<br/><input type="text" name="culoare" value="<?php echo $doc->culoare;?>"><br> Marime:<br/><input type="text" name="marime" value="<?php echo $doc->marime;?>"><br> Pret:<br/><input type="text" name="pret" value="<?php echo $doc->pret;?>"><br><br> <input type="submit" name="submit" value="Update"><br> </form>