File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 $ db = $ conn ->shop ;
1616 $ collection = $ db ->orders ;
1717 $ search = $ _GET ['ordersearch ' ];
18- $ js = "function () { var query = ' " . $ ordersearch . "'; return this.id == query;} " ;
18+ $ js = "function () { var query = ' " . $ search . "'; return this.id == query;} " ;
1919 //print $js;
2020 print '<br/> ' ;
2121
4848<?php echo $ result ; ?>
4949</div>
5050</body>
51- </html>
51+ </html>
Original file line number Diff line number Diff line change 1111 if (isset ($ _GET ['usersearch ' ]) && !empty ($ _GET ['usersearch ' ])) {
1212 try {
1313 $ result = "" ;
14- $ conn = new MongoClient ('mongodb://192.168.87.157 ' );
14+ $ conn = new MongoClient ('mongodb://127.0.0.1 ' );
1515 $ db = $ conn ->appUserData ;
1616 $ collection = $ db ->users ;
1717 $ search = $ _GET ['usersearch ' ];
4747<?php echo $ result ; ?>
4848</div>
4949</body>
50- </html>
50+ </html>
You can’t perform that action at this time.
0 commit comments