Announcements | Last Post | |
---|---|---|
SoC Curricula | 09/30/2017 01:08PM | |
Demarcation or scoping of examinations and assessment | 02/13/2017 07:59AM | |
School of Computing Short Learning Programmes | 11/24/2014 08:37AM | |
Unisa contact information | 07/28/2011 01:28PM |
Walkthrough 3 - Code for the forum March 14, 2013 12:37PM |
Registered: 11 years ago Posts: 36 Rating: 0 |
Language: PHP122 print $tdStart . $secIDs[$i] . $tdEnd; 123 print $tdStart . $numPosts[$i] . $tdEnd; 124 print $tdStart . $numReply[$i] . $tdEnd;
Re: Walkthrough 3 - Code for the forum March 14, 2013 03:04PM |
Registered: 11 years ago Posts: 36 Rating: 0 |
Language: PHPif ($db_found) { for ($i = 1; $i < 6; $i++) { //================================================== // GET THE NUMBER OF POSTS IN EACH FORUM SECTION //================================================== $SQL = "SELECT * FROM " . $tblPosts[$i]; $result = mysql_query($SQL); if ($result) { $num_rows = mysql_num_rows($result); //================================================== // PUT THE NUMBER OF POSTS INTO AN ARRAY //================================================== $numPosts[$i] = $num_rows; } else { print "error table posts"."<BR>";
Re: Walkthrough 3 - Code for the forum March 14, 2013 04:28PM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: Walkthrough 3 - Code for the forum March 21, 2013 10:51AM |
Registered: 11 years ago Posts: 34 Rating: 0 |
Language: PHPif ($db_found) { for ($i = 1; $i < 6; $i++) { //================================================== // GET THE NUMBER OF POSTS IN EACH FORUM SECTION //================================================== $SQL = "SELECT * FROM " . $tblPosts[$i]; $result = mysql_query($SQL); if ($result) { $num_rows = mysql_num_rows($result); //================================================== // PUT THE NUMBER OF POSTS INTO AN ARRAY //================================================== $numPosts[$i] = $num_rows; } else { print "error"; } } //========================================================= // GET THE NUMBER OF REPLIES IN EACH FORUM SECTION //======================================================== for ($i = 1; $i < 6; $i++) { $SQL = "SELECT * FROM " . $tblReply[$i]; $result = mysql_query($SQL); if ($result) { $num_rows = mysql_num_rows($result);
Re: Walkthrough 3 - Code for the forum March 21, 2013 12:48PM |
Registered: 11 years ago Posts: 36 Rating: 0 |
Re: Walkthrough 3 - Code for the forum March 21, 2013 11:47PM |
Registered: 11 years ago Posts: 131 Rating: 0 |
Re: Walkthrough 3 - Code for the forum March 22, 2013 08:25AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Language: PHPfor ($i = 1; $i < 6; $i++) {
Language: PHPfor ($i = 1; $i < $num_rows; $i++) {
Re: Walkthrough 3 - Code for the forum April 12, 2013 07:01AM |
Registered: 11 years ago Posts: 38 Rating: 0 |
Re: Walkthrough 3 - Code for the forum April 12, 2013 10:21AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: Walkthrough 3 - Code for the forum April 22, 2013 06:28PM |
Registered: 11 years ago Posts: 68 Rating: 0 |
Re: Walkthrough 3 - Code for the forum April 23, 2013 09:03AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: Walkthrough 3 - Code for the forum April 23, 2013 09:25AM |
Registered: 11 years ago Posts: 68 Rating: 0 |
Re: Walkthrough 3 - Code for the forum April 23, 2013 11:24AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: Walkthrough 3 - Code for the forum April 23, 2013 11:38AM |
Registered: 11 years ago Posts: 68 Rating: 0 |
Re: Walkthrough 3 - Code for the forum April 23, 2013 04:43PM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: Walkthrough 3 - Code for the forum May 15, 2013 08:50AM |
Registered: 17 years ago Posts: 60 Rating: 0 |
Re: Walkthrough 3 - Code for the forum May 15, 2013 09:32AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |