Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,208,913 members, 8,004,290 topics. Date: Saturday, 16 November 2024 at 01:13 PM |
Nairaland Forum / Kancybernet's Profile / Kancybernet's Posts
(1) (of 1 pages)
Programming / Re: How To Add Up Tables Using Php by Kancybernet: 12:55am On Dec 10, 2017 |
vankaid: Attached are screenshot of the database... each row contains score of each student on different subjects.. There are records of different student in the class.. I want to sum each Ca score and exam for each subject for each student, and compare the total score of each student on a subject, for all student, and get the highest score in the class, for that subject..
|
Programming / How To Add Up Tables Using Php by Kancybernet: 2:04am On Dec 09, 2017 |
Good Morning nairalanders. Please i have an issue i would really like Php programmers to help me in resolving. Am working on a school management system at the office.. After completing the project, it turns out that i ought to create a space on the result sheet for Highest Mark, and Lowest Mark and Grade. I have the exam result and CA on different tables in the database. I want to join this tables, add up each student score (over 100) and compare which of the student scored highest and lowest on each subject.. Please i will really appreciate if you guys can guide me through, using Php. I already tried while loop, but ran into some issues especially when trying to compare the results and display the highest score. it keeps bringing out list of numbers. Below is a sample of the experiment am trying to work out from. I doubt if its result is reasonable though as i have altered it beyond recognition out of frustration.. Thanks guys.. <?php require_once("database.php" $usid="uj@k.c"; $select=mysqli_query($mysqli,"SELECT * FROM `exam_result` " or die(mysqli_error($mysqli)); if($select==true) { while($array=mysqli_fetch_array($select)) { $total2=$array['English'] + $array['maths']; } $select2= mysqli_query($mysqli,"SELECT * FROM `ca_result` " or die(mysqli_error($mysqli)); if($select2 ==true) { while($array2=mysqli_fetch_array($select2)) { $all=array_shift(array_slice($array2, 0, 1)); echo $total=$all['sn']; //$value2=$value['$total']; //break; //echo $total2."<br>"; //$value=current($array2); //echo $value."<br>"; } }} //echo $total2."<br>"; //echo $total2['sn']; ?> |
Programming / Re: Php Mysql Login Problem Please Help by Kancybernet: 1:04am On Nov 11, 2017 |
Hope you have some knowledge on server side scripting language.. If you do, upload your work on a server, so we can help u out.. |
Celebrities / Re: Court Orders Jim Iyke To Pay N15.7million To Habiba Abubakar For Being Indebted by Kancybernet: 11:43pm On Nov 04, 2017 |
Its a civil matter, not criminal.. HungerBAD: |
Politics / Re: Tension As Explosion Rocks Enugu Artisan Market by Kancybernet: 5:47pm On Sep 12, 2017 |
Because its not real.. I live down the road from the market. Thats why am still wondering were nairaland got the news. ufumes: |
Celebrities / Re: Cartoon Network Turns Porn, Azadus Cries Out by Kancybernet: 9:30am On Aug 11, 2017 |
What are you even saying sef??... Can't you see CN (cartoon network) at the bottom right?? Or must you embed conspiracy in everything... Nawa for you oo Greatzeus: |
Literature / Re: The Last Dance - A Short Story by Kancybernet: 3:37am On Jun 22, 2017 |
Bia Chipappii is it that you like getting me upset or you just have the penchant for "Pause and Play".... These story, you stop before you even start... Broke Play Boy, till date you are yet to complete the story, the oda one same tin... Guy, e go turn personal ooooo.. B carefull man.. Nice write-up man.. I love your work |
(1) (of 1 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 16 |