Welcome! Log In Create A New Profile

Advanced

Portfolio

Posted by nickkonge 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
avatar Portfolio
August 28, 2012 10:41AM
Dear Mac,
I just need a clarity on the even page, do we have to stop on the last dozen or we must go until 1?
avatar
Mac
Re: Portfolio
August 28, 2012 01:31PM
You do not stop anywhere...? If I enter 123472354576247423 it must say if it is even, odd and if it is a multiple of 12, how many times.
avatar Re: Portfolio
August 30, 2012 08:19AM
Thank you mac,
but I followed the example in the tutorialsad smiley
27 is odd.
26 is even.
25 is odd.
24 is even. 24 is 2 dozen.
23 is odd.)
and these are my output
27 is odd.
26 is even.
25 is odd.
24 is even. 24 is 2 dozen.
23 is odd.
22 is even.
21 is odd.
20 is even.
19 is odd.
18 is even.
17 is odd.
16 is even.
15 is odd.
14 is even.
13 is odd.
12 is even. 12 is 1 dozen.
11 is odd.
10 is even.
9 is odd.
8 is even.
7 is odd.
6 is even.
5 is odd.
4 is even.
3 is odd.
2 is even.
1 is odd.
other ways I will remove the loop.
avatar
Mac
Re: Portfolio
August 30, 2012 03:10PM
Just an example. If it was just the above, you could hard code it i.e. if input is 26, echo even. That is not what we want. You must code the logic in...
avatar Re: Portfolio
August 31, 2012 09:29AM
Thank you Mac,
I just remove the loop and code the logic like said.
perfect smile
avatar Re: Portfolio
September 18, 2012 09:31AM
Is the menu links will take from escape to oop7?
eg:Escape | String | Fmod | Rand | Even | Leap | Server | Validation | oop1 | oop2 | oop3 | so on.
avatar
Mac
Re: Portfolio
September 18, 2012 11:23AM
Yes
Re: Portfolio
September 18, 2012 04:11PM
Hi Nick;

Where do you get the information on oop1/oop2 etc.?

Regards
avatar Re: Portfolio
September 19, 2012 08:31AM
emokoena
You can download it under myUnisa.
avatar Re: Portfolio
September 19, 2012 09:09AM
Mac

Is it fine if I'm referring to the array index to get the user_id for oop4 page?
avatar
Mac
Re: Portfolio
September 19, 2012 10:53AM
I am not sure exactly where and how you can use an array..... but the person is selected from the drop-down (the list is generated from the db, with user_id), and the user_id is then used to extract the friends from the db.
avatar Re: Portfolio
September 19, 2012 11:43AM
Thank you Mac
I was lost this what I did
Language: PHP
$array = array(1 => ';Peter Pan';,2 => ';Elvis Presley';,3 => ';Pollen Ndlanya';,4 => ';Clark Kent';,5 => ';Kaizer Motaung';,6 => ';Lucas Radebe';); echo';<select> ';; foreach($array as $key => $name){ echo"<option value=';$key';> $name </option>\n"; } echo ';</select>';;

I just modified the code using the database now, but my form submit the value from oop4 to user_find is that okey?
avatar
Mac
Re: Portfolio
September 19, 2012 01:35PM
Yes
avatar Re: Portfolio
September 21, 2012 09:02AM
I think that they might be a mistake in the user_friend table, because when I select user_id 2 and I get this output;

"For oop4"
User known as: King of Rock
Friends with: 2, 5
User known as: King of Rock

"but oop5"
User known as: King of Rock
Friends with: Elvis Presley
Friends with: Kaizer Motaung.

The only user Peter Pan gives the correct output compare to the tutorial letter. otherwise we have to modify the database
avatar
Mac
Re: Portfolio
September 21, 2012 09:24AM
Yes, the db info provided is not neccessarily correct.
avatar Re: Portfolio
September 21, 2012 10:19AM
Thank you mac
That's all I need to know to finish my portfolio
Re: Portfolio
September 24, 2012 06:23PM
Please clarify - for the portfolio page we must continue with assignment 1 web page and add the following links in:

- even.php
- leap.php
- server.php
- validation.php
- oop1.php
- oop2.php
- oop3.php
- oop4.php
- oop5.php
- oop6.php
- oop7.php
avatar
Mac
Re: Portfolio
September 25, 2012 06:52AM
Your choice.
Re: Portfolio
September 25, 2012 03:07PM
Hi Mac


So it is correct all the listed above is part of portfolio?

How much marks is the portfolio out of?
avatar
Mac
Re: Portfolio
September 26, 2012 08:54AM
Yes, the marks are listed in the tut letter?
Re: Portfolio
September 26, 2012 03:35PM
Hi, I need help guys please, in user_find page, in an object there is this statement
Language: PHP
$user->getUserById($ID);
, to me it generate an error that the ID is undefined, but when I do something like this
Language: PHP
$user->getUserById(1);
, I get the answer for the first person in database, and I'm struggling on oop4, that how shold I select the data if it already selected by user_find pageconfused smiley
avatar
Mac
Re: Portfolio
September 27, 2012 07:56AM
Start a new thread. Don't fit everything under this topic!!! I want order in this forum - you should know this by now!
avatar Re: Portfolio
September 27, 2012 11:03AM
ngoqoza
Leave the class object the way it is, but try to find a way to assign the variable $ID with user_id from the database
e.g
Language: PHP
$ID = $_REQUEST[';value_name';]; //this value from the user table in your select list $user->getById($ID);
it works only if the form is submitted, meant when the person select an user then click the button.
avatar
Mac
Re: Portfolio
September 28, 2012 08:29AM
Yes, that is a way to go.

No more post under this topic please- start a new descriptive topic.
Sorry, only registered users may post in this forum.

Click here to login