Dynamic Pie High Chart - Part2
Salam alaikum everyone I'm back with another video and today I'll show you about the server script I've left with the HTML and CSS part in my previous video so let's start with the server script so first I will define the array where I will store all the details of the user and I can just call this from your in the HTML part I can show you the name and everything so I will take one count as well so that we can calculate and one username so where I NC is equals to new glide record I will take the table name now I will instead of fines I'll give you that I see so user a and C dot order by sequence which I have showed you that I will according to the sequence I will do it so sequence okay now that's not query now there will be obviously so many records now I will take another object name is e object-- so user name equals to user is e dot u underscore name dot to strength because otherwise it will not take the value you can try so I will take this object dot name equals to this user name okay now if this user Ryan C dot if this is present and just to show matching so that I can get the query column name not this so I will take the option means I want the Society actually so I will pass it to my actual pie chart widget this whole thing this query so that from there I can display the percentage not society ok now I will do the dead split think so a dead spirit which I have said that these days ago it will show several takes this updated on dot split by space and CEO object I will pass the DS because it's there in my HTML calculate days I will past the current date glide date takes the current date and I will take the first day because I want the day so we know that it says updated on it will give rotate your month and then your I need the day so this done I will pass this to record and then there will be a space and then it will be these days ago okay so now this there will be a over here now I will pass the widget so I'm leaving like that I'm just pushing data dot user dot pushing the object to the HTML now I think so this will work but before that I need to write the function calculate days here and it is current date comma updated ok how do we calculate it's very simple it's just a basic match us toward a difference okay I will take the update date means the past eight comma current date and you need to pass the value true word okay sorry now where DS is equals to because it will be in second so I will take the difference and I will divide it by 8 6 4 double zero because 8 6 4 double zero is the number is the number seconds which we are getting each day and I will return today's so just see if and see how it is coming okay so perfect it's coming like Alex and Rohan zero days ago zero days ago so it should come like this okay guys I'll stop my video here because the next we do it's all about my PI widget so I think so that you guys are liking my video if I am going too slow or too fast just text me in the comment and thank you everyone for watching my video and subscribe if you like just make my video viral thanks a lot thank you
https://www.youtube.com/watch?v=h3q4p0X5cwk