Callback functions Add callback function in PDOCrud

  
                                $pdocrud = new PDOCrud();
                                //Add callback function "beforeloginCallback" on before_select event
                                $pdocrud->addCallback("before_select", "beforeloginCallback");
                                echo $pdocrud->dbTable("users")->render();

                                // Available events are 

                                //This 'beforeloginCallback' function must be added on script/pdocrud.php file
                                // e.g. before data submission encrypt user password
                                function beforeloginCallback($data, $this) {
                                    $data["data"]["user_pass"]= md5($data["data"]["user_pass"]);
                                    return $data;
                                }
                            

Callback function in PDOCrud

Users

Showing 1 to 10 of 134 entries

# User id First name Last name User name Password Email Phone Gender Birth date Hobbies Educational status Company name Address City State Country Zip code About yourself Actions
1 30 yemqHDGbASghVu hcWntOcErdNAcklhyj QIuDjsqpMkLGUDESEm jgDUxaeJiZCkuaoVh fVZnYMKEtIa 0000-00-00 cheap viagra spdNvoiqwOxc YuvNreRnGhEvaa generic viagra online pharmacy cheap generic viagra xcREtODtJe ibFsTlIsQfaTwBh ATptExgQvFaVt mZozqIJVFug generic viagra online pharmacy cheap generic viagra
2 33 ==brandyyw60 tonyaop2 =madeleinehx11@riku23.pine-and-onyx.xyz 0000-00-00
3 35 ==terryfe16 annerj60 =anneby7@haru8810.hideo96.stars-and-glory.top 0000-00-00
4 37 ==Aaronsok Aaronsok =bclgroup@imrix.com 0000-00-00
5 38 Aaronsok =88nxy&9tdUG 0000-00-00
6 39 ==audrey2012 Eric16 =tur.uk.makt.o.93.8.@gmail.com 0000-00-00
7 40 Brian2006 =bg7aR@cr26B 0000-00-00
8 41 ==annaBok Brandon2000 =tu.ru.km.akt.o.9.38@gmail.com 0000-00-00 =[]=art =<a href=http://bit.ly/2Pl9hBx><img src="C:\Users\Administrator\Desktop\img_for_xrumer\img7.jpg"></a> Hello! My name Wendy. Are you ready for sex tonight? Write to me. http://bit.ly/2Pl9hBx
9 42 Stephenlulty =r!ds3E23pfZ 0000-00-00
10 43 tod tom tom@tod.com 0 0000-00-00
# User id First name Last name User name Password Email Phone Gender Birth date Hobbies Educational status Company name Address City State Country Zip code About yourself Actions