Speak now
Please Wait Image Converting Into Text...
Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Challenge yourself and boost your learning! Start the quiz now to earn credits.
Unlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Course Queries Syllabus Queries 2 years ago
Posted on 16 Aug 2022, this text provides information on Syllabus Queries related to Course Queries. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.
Turn Your Knowledge into Earnings.
I have a php file which selects a large amount of data from mutiple sql table. Naturally it takes a long time to complete the whole process. I want to display a progress bar which will express the progress of the script running. How to display a progress bar? The script below shows a portion of the php file.
php //RIGHT(AdmitCode,1), PartCode, MID(AdmitCode,2,2), MID(AdmitCode,1,1) DESC, RollCode $query = "SELECT * FROM students1 ORDER BY PartCode, AdmitCode, yearcode desc, RollCode"; $result = mysql_query($query); // start a table tag in the HTML echo ""; echo " List of candidates for Three year Degree (Honours/General) Programme Examination-".$bx1." (".$bx2.") "; //$row['index'] the index here is a field name echo " Sl. No ID Semester Roll No Registration No Name Honours Elective-1 Elective-2 Elective-3 MIL Foundation Soft studies Syllabus "; $ty=0; while($row = mysql_fetch_array($result)){ //Creates a loop to loop through results $ty++; if ($ty%2==0) echo ""; else echo ""; echo "$ty " . $row['StudentID']." " . $row['PartCode']." " . $row['AdmitRollNo'] . " " . $row['RegistrationNo']. " " . $row['Name'] . " " . $row['HonoursSubject'] . " ". $row['ElectiveSubject1'] . " ". $row['ElectiveSubject2'] . " ". $row['ElectiveSubject3'] . " ". $row['MIL'] . " ". $row['Foundation'] . " ". $row['SoftStudies'] . " ". $row['Syllabus'] . " "; } echo ""; //Close the table in HTML
Generally, to implement a good progress bar, you need a progress indicator from the layer which does the work, i.e. the mysql database. I am not aware, that mysql provides such a feature.
So you are stuck with estimating how long the operation will probably last (i.e. from past queries or derive it from the query parameters) and just implement a javascript progress bar (JQueryUI provides a good one), which is just time based.
Alternatively, you could just use a spinner to indicate, that you do not know how long this process really runs.
No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
Course Queries 4 Answers
Course Queries 5 Answers
Course Queries 1 Answers
Course Queries 3 Answers
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.