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 Re: The Portfolio course_man.php
October 17, 2013 10:59PM
You must put your PHP $_POST code before the form.
When you click submit, the page reloads and runs from the top again. It does not continue processing straight after the form.


if ($db_found)

This will never be true if you do not connect to a database first.


Where does this value come from ?

$row["cid"]


Syntax error -

if ($resilt = true)
Re: The Portfolio course_man.php
October 18, 2013 12:20AM
Hi guys

@bigron11

I did what you suggested and moved my complete if statement with update query to the top of the page, but the problem is that the query is not updating.

any thoughts?

Thank you for the help.

Regards,

Milan
avatar Re: The Portfolio course_man.php
October 18, 2013 08:00AM
Did you connect to the database ?

Otherwise post the amended code.
avatar Re: The Portfolio course_man.php
October 18, 2013 10:27AM
I also see no connection to the database.

Just an idea. Try and get your user input from the from into an array and then send this array to a function that will update the database.

___________________________________________________________________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning...
Re: The Portfolio course_man.php
October 23, 2013 03:51PM
Hi there,

Did you get your issues sorted ? I've just revisited the the tut letter and found that my course_man.php falls short of what is required.
I'll be working on this now! I hope to come up with something similar to what AlexB proposed. Time is short and bugs are plenty,
a can of Time Spray would help !!

Regards CharlesU
Re: The Portfolio course_man.php
October 23, 2013 04:08PM
Hi again,

Not my day, didn't see page 2!

CharlesU
Re: The Portfolio course_man.php
October 23, 2013 07:08PM
Hi Charles.

What does this page 2 say???

Making me stresseye popping smiley
Re: The Portfolio course_man.php
October 24, 2013 06:58AM
Hi,

Sorry about the stress! I didn't realize that this Topic had gone onto page 2 and bigron11 & AlexB are helping Milan with his issues.

CharlesU
Re: The Portfolio course_man.php
October 24, 2013 07:35AM
oh Okay I thought you where referring to the tut letter.

My Badeye rolling smiley
Sorry, only registered users may post in this forum.

Click here to login