<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>School of Computing Forums - PHP Sem 1</title>
<description>Certificate Course</description><link>http://osprey.unisa.ac.za/phorum/list.php?570</link><lastBuildDate>Mon, 20 May 2013 20:06:07 +0200</lastBuildDate>
<generator>Phorum 5.2.18</generator>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,166432,166432#msg-166432</guid>
<title>Problems with results limiting (3 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,166432,166432#msg-166432</link><description><![CDATA[ So I'm basically finishing up with my project and I'm adding &quot;page 1, page 2&quot; etc. links on my pages where there is a possibility a very large list can be displayed.<br /><br />I got course_man and student_man to work correctly.<br /><br />My problem comes on the list.php page.<br /><br />Once the page is loaded, you see a list of buttons which represents all the registered courses.<br /><br />Let's say for instance HTML is clicked, it displays a list of students registered for HTML.<br /><br />If the amount of students registered for the course is greater than 10 there will be a link &quot;page 2&quot; for the user to click on to see more results.<br /><br />Problem is, once I click on &quot;page 2&quot; it goes to list.php and it just shows the list of courses again.<br /><br />The way I did the other pages was via $_GET...but on this page I can't as once the page is reloaded the list of students is removed.<br /><br />Please help]]></description>
<dc:creator>77471466_Alwyn</dc:creator>
<category>PHP Sem 1</category><pubDate>Tue, 08 May 2012 08:09:28 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,166332,166332#msg-166332</guid>
<title>[ASSIGNMENT] Student details edit page (3 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,166332,166332#msg-166332</link><description><![CDATA[ I have currently set up my code to edit student details using basically the same form as the student registration (since all the fields are the same).<br /><br />Is it okay to direct the user from student_man.php to student_reg.php to edit student details or do I need to do something else, for example:<br />- include the student details form from a seperate php file on both student_man and student_reg (which would seemingly require large chunks of variable repetition)<br />- generate the form from an external function on both pages<br />?<br /><br />Thanks]]></description>
<dc:creator>mm77509382</dc:creator>
<category>PHP Sem 1</category><pubDate>Mon, 07 May 2012 10:09:04 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,166216,166216#msg-166216</guid>
<title>PM (1 reply)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,166216,166216#msg-166216</link><description><![CDATA[ Hi Mac - just checking that u got the PM I sent day before yesterday?<br />Thanx! Greta]]></description>
<dc:creator>77586492</dc:creator>
<category>PHP Sem 1</category><pubDate>Fri, 04 May 2012 16:43:37 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,166175,166175#msg-166175</guid>
<title>MySQLi... (3 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,166175,166175#msg-166175</link><description><![CDATA[ I recently asked a question about my code and someone mentioned I should try to use MySQLi and prepared statements instead of mysql_* functions, what is MySQLi, is it important for this project and is this going to replace mysql_* functions soon?]]></description>
<dc:creator>77528204</dc:creator>
<category>PHP Sem 1</category><pubDate>Mon, 07 May 2012 11:43:44 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,166172,166172#msg-166172</guid>
<title>Database structure (6 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,166172,166172#msg-166172</link><description><![CDATA[ According to the tut, course table must have two fileds CID and CNAME, I wanna know where to insert the course content.]]></description>
<dc:creator>Fulu-72924640</dc:creator>
<category>PHP Sem 1</category><pubDate>Fri, 04 May 2012 14:28:14 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,166096,166096#msg-166096</guid>
<title>Editing student info (2 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,166096,166096#msg-166096</link><description><![CDATA[ Mac, this is me being LAZY :o<br />in student reg i made all the validating for the form<br />now is it necessary to do all that in the editing of a student? (done 50% of it so far)<br />and i dont see why an admin would make a name : 11111111 :D]]></description>
<dc:creator>radhestringer72801093</dc:creator>
<category>PHP Sem 1</category><pubDate>Wed, 02 May 2012 15:51:14 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,166021,166021#msg-166021</guid>
<title>cant Test Email (6 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,166021,166021#msg-166021</link><description><![CDATA[ I have done the code to send email to students but l can't test it&gt;&gt;&gt;which email server shld l use??]]></description>
<dc:creator>Steve 77593448</dc:creator>
<category>PHP Sem 1</category><pubDate>Fri, 11 May 2012 12:16:54 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165954,165954#msg-165954</guid>
<title>editing course info (1 reply)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165954,165954#msg-165954</link><description><![CDATA[ nvm i fixed it :P<br /><br />EDIT: just wanted to know if it was necessary to edit the cid]]></description>
<dc:creator>radhestringer72801093</dc:creator>
<category>PHP Sem 1</category><pubDate>Fri, 27 Apr 2012 11:52:50 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165952,165952#msg-165952</guid>
<title>books for PHP (3 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165952,165952#msg-165952</link><description><![CDATA[ Good afternoon,<br /><br />I've been looking for the book mentioned in the tutorial:<br /><br />Beginning PHP5, Apache, and MySQL Web Development (Programmer to Programmer) (Paperback) by Elizabeth Naramore, Jason Gerner, Yann Le Scouarnaec, Jeremy Stolzm Michael K. Glass 2005, Wiley Publishing Inc, ISBN: 0-7645-7966-5.<br /><br />But I haven't bought my copy yet.<br /><br />However, i bought another book: PHP Programming with MySQL<br />//Second Edition by Don Gosselin, Diana Kokoska, Robert EasterBrooks.<br />ISBN-13: 978-0-538-46814-5<br />ISBN-10: 0-538-46814-9.<br /><br />I know the recommended book is the first book mentioned above, but hoping that the book i have will help me understand PHP better than what I do now.<br /><br />Regards]]></description>
<dc:creator>franky71713913</dc:creator>
<category>PHP Sem 1</category><pubDate>Fri, 04 May 2012 08:02:38 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165911,165911#msg-165911</guid>
<title>HTML_KIT zoom feature?? (no replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165911,165911#msg-165911</link><description><![CDATA[ ye like the title says<br />is there a zoom feature for the html kit?]]></description>
<dc:creator>radhestringer72801093</dc:creator>
<category>PHP Sem 1</category><pubDate>Wed, 25 Apr 2012 10:22:41 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165882,165882#msg-165882</guid>
<title>Check if value is NOT in array (5 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165882,165882#msg-165882</link><description><![CDATA[ I'm trying to check if a certain value is NOT in an array.<br />Now I know I can check if a value is in an array with in_array...<br /><br />but would something like this:<br /><br /><pre class="bbcode_geshi"><div class="head">Language: PHP</div><span class="kw1">if</span> <span class="br0">&#40;</span>!<a href="http://www.php.net/in_array"><span class="kw3">in_array</span></a><span class="br0">&#40;</span>value, <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
    ...
<span class="br0">&#125;</span></pre><br />work to check if the value is not in the array?<br /><br />or could I do something like this:<br /><br /><pre class="bbcode_geshi"><div class="head">Language: PHP</div><span class="kw1">if</span> <span class="br0">&#40;</span><a href="http://www.php.net/in_array"><span class="kw3">in_array</span></a><span class="br0">&#40;</span>value, <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#41;</span> === <span class="kw2">false</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
    ...
<span class="br0">&#125;</span></pre>]]></description>
<dc:creator>77471466_Alwyn</dc:creator>
<category>PHP Sem 1</category><pubDate>Wed, 02 May 2012 15:49:04 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165805,165805#msg-165805</guid>
<title>Linking student to courses... (11 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165805,165805#msg-165805</link><description><![CDATA[ Ok, I managed to complete the student registration part and displaying the available courses, but now I'm struggling to link the student with a course, any advice?<br />I have my student submit info and course info on the same page, the problem I have is that the student number gets created when the info is submitted so how can I get the number at the same time when it is being created and use it in the course_student table? Any advice?]]></description>
<dc:creator>77528204</dc:creator>
<category>PHP Sem 1</category><pubDate>Fri, 11 May 2012 16:18:52 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165774,165774#msg-165774</guid>
<title>Programming Mind (4 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165774,165774#msg-165774</link><description><![CDATA[ Here is something I came up with and am sure it will be useful to everyone that reads it. :-)<br />I started this course with an open mind and no idea about what the language PHP is all about. Starting with the <span style="color:#669999">echo and print</span>, I realized it was going to be interesting and I knew I had to be dedicated to actually understand the language. The tut101 was quite explanatory and i love that book! PHP5, APACHE, MYSQL WEB DEVELOPMENT. Following each step and examples that I came across built my knowledge more and more.<br /><br />I believe in <span style="color:#669999">patience!</span> hmmn... Yes patience is an important key in dealing with coding. Because if you are not patient, you will get frustrated and all worked out due to the fact that you can not figure out what is actually wrong with your codes all in the name of progress.<br />Another thing that is very essential is you thinking deep about what next to be done to make your a application a finished project and a better application. It is not over until it is over! You might think you are done and all you want to do is relax but I tell you friend... You not done yet! Take your time to review your codes and am sure you will find something stupid that you have done so as to make corrections.<br />For example:<br /><pre class="bbcode_geshi"><div class="head">Language: PHP</div><a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;&lt;table&gt;&quot;</span>;
<a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;&lt;tr&gt;&quot;</span>;
<a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;&lt;td&gt;&quot;</span>;
<a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;&lt;/td&gt;&quot;</span>;
<a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;&lt;/tr&gt;&quot;</span>;
<a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;&lt;/table&gt;&quot;</span>;</pre>
Why not<br /><pre class="bbcode_geshi"><div class="head">Language: PHP</div><a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;&lt;table&gt;
 &lt;tr&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&quot;</span>;</pre>
Am sure you understand what am driving at!<br />Not to stress you with the numerous words of mine,<br />The programming mind is powerful only if you adapt to this rules<br />1. Patience<br />2. Dedication<br />3. Research<br />4. Consciousness towards the main target/goal<br />5. High level of Interest in code discussions<br /><br />I am quite positive that with these points and so many others you can find out there, the practical and other projects you intend doing will be less stressful and successful.<br />Wishing you all success. Still coding though... lol! *Happy coding* :)-D]]></description>
<dc:creator>77553055</dc:creator>
<category>PHP Sem 1</category><pubDate>Mon, 23 Apr 2012 13:37:50 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165771,165771#msg-165771</guid>
<title>Page to generate listing of students (18 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165771,165771#msg-165771</link><description><![CDATA[ &quot;&quot;This page presents a listing of all courses – when clicking on a course, it shows a list of all the students registered for that course.&quot;&quot;<br /><br />The list of all the students<br />is it just their name, surname or<br />does this mean every bit of info from of that student?]]></description>
<dc:creator>radhestringer72801093</dc:creator>
<category>PHP Sem 1</category><pubDate>Wed, 02 May 2012 12:58:44 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165544,165544#msg-165544</guid>
<title>Linking tables (3 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165544,165544#msg-165544</link><description><![CDATA[ I am unable to link the course table (cid) and course_man table (cid) in order to get the cname into the list.php]]></description>
<dc:creator>Fulu-72924640</dc:creator>
<category>PHP Sem 1</category><pubDate>Mon, 16 Apr 2012 17:58:01 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165537,165537#msg-165537</guid>
<title>Quick question about Editing Student (5 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165537,165537#msg-165537</link><description><![CDATA[ When you click on the Edit button next to a student on the student_man.php page.<br />And it brings up a form to edit his info...should the course he registered for be editable as well?<br /><br />I would assume yes, but I&quot;m only making double sure.]]></description>
<dc:creator>77471466_Alwyn</dc:creator>
<category>PHP Sem 1</category><pubDate>Tue, 17 Apr 2012 13:43:52 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165401,165401#msg-165401</guid>
<title>Prac (5 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165401,165401#msg-165401</link><description><![CDATA[ Hi Mac I need some clarity. I've been busy with some work projects, finally I have time to concentrate fully on my prac. My question is: this system should be done from an administrator's point of view, by that I mean an employee who will register students an assign them from the courses, students they don't have to go on line and register themselves? The reason I'm asking this I was struggling in making the right decision in terms of making a registration page for this administrator or not. what I have done currently I assumed that this person is already registered as access is exclusive to employees of the company. The only person that would need to register is the student.]]></description>
<dc:creator>72150238</dc:creator>
<category>PHP Sem 1</category><pubDate>Fri, 20 Apr 2012 11:54:29 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165400,165400#msg-165400</guid>
<title>Quick question about Sessions (4 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165400,165400#msg-165400</link><description><![CDATA[ I'm busy putting together my student_reg.php page.<br /><br />After trying a lot of other techniques I've finally used $_SESSION variables to get the text the user input to stay in the field if the form is submitted with errors.<br />In other words, if the user typed in his surname as &quot;Malan&quot; and submits the form, which throws back the error he didn't enter and email address...his surname &quot;Malan&quot; is still in the input field next to Surname.<br /><br />Is it ideal to do this with $_SESSION variables? Or isn't it recommended...I've heard from a PHP developer that that isn't what $_SESSION is for...]]></description>
<dc:creator>77471466_Alwyn</dc:creator>
<category>PHP Sem 1</category><pubDate>Thu, 12 Apr 2012 14:37:23 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165360,165360#msg-165360</guid>
<title>Submission Date (4 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165360,165360#msg-165360</link><description><![CDATA[ Sorry to bother you big Mac. When is the submission date for this course practical? Thanks in advance.]]></description>
<dc:creator>77553055</dc:creator>
<category>PHP Sem 1</category><pubDate>Thu, 12 Apr 2012 14:35:50 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165344,165344#msg-165344</guid>
<title>10 Things You Can Do to Become a Better PHP Developer (10 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165344,165344#msg-165344</link><description><![CDATA[ Here are 10 tips you can use in the completion of your project! Good to remember!]]></description>
<dc:creator>77585607</dc:creator>
<category>PHP Sem 1</category><pubDate>Tue, 10 Apr 2012 21:09:52 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165326,165326#msg-165326</guid>
<title>marking our project (6 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165326,165326#msg-165326</link><description><![CDATA[ Hi mac<br /><br />I was just wondering about how the marking will be done, like lets say to make a student register for multiple courses at once (make app better), how much marks will that be?<br /><br />i know you/teachers have to mark alot of assignments<br />so will we be penalised for very long code?<br />i mean we are noobs, so if something requires 5 lines of code and we do 20 just for argument sake :-)]]></description>
<dc:creator>radhestringer72801093</dc:creator>
<category>PHP Sem 1</category><pubDate>Fri, 13 Apr 2012 14:13:15 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165320,165320#msg-165320</guid>
<title>My website (1 reply)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165320,165320#msg-165320</link><description><![CDATA[ My student number is : 77488970<br /><br />My first website will be finished the next week. the second one in the end of this month. is it necessary to public it on the internet now or I have to wait the end of the course period?<br />In my point of view, this web site will be an other vision and idea to participate to this forum. I didn't send messages to tell you &quot; I finshed the section number X &quot; and I will not do it in the future because these kind of messages do not help any one on this forum.]]></description>
<dc:creator>ikoussane</dc:creator>
<category>PHP Sem 1</category><pubDate>Tue, 10 Apr 2012 11:08:54 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165261,165261#msg-165261</guid>
<title>MySQL datatypes not changing in PHPMyAdmin…? (1 reply)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165261,165261#msg-165261</link><description><![CDATA[ Ok, I know mac isn't going to mark the database but the php code, but I will still like to figure this out since I don't know if its my code or the db structure causing this.<br /><br />When I submit a standard SA id number (13 chars) to the database its value in the table is the maximum signed value of int &quot;2147483647&quot; even though in the db I selected <b>bigint</b> in the db, does anyone else have this problem or know how to fix it, what are you guys using in your field's datatypes(varchar?) and are you getting the submitted values in your tables? And even when I changed the field to varchar I still get &quot;2147483647&quot;.<br /><br />Here's a link to this question that I asked on stackoverflow, I'm still not getting the right values&quot;entered/submitted&quot; values in my db, so any advice would be appreciated.<br /><br /><a href="http://stackoverflow.com/questions/10056587/mysql-datatypes-not-changing-in-phpmyadmin" rel="nofollow">http://stackoverflow.com/questions/10056587/mysql-datatypes-not-changing-in-phpmyadmin</a>]]></description>
<dc:creator>77528204</dc:creator>
<category>PHP Sem 1</category><pubDate>Sat, 07 Apr 2012 21:11:26 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165129,165129#msg-165129</guid>
<title>Forms or hyperlinks? (9 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165129,165129#msg-165129</link><description><![CDATA[ I did my manage courses page.<br /><br />And the way I set it up is I have a page listing all the courses with hypelinks &quot;Add another course, edit and delete&quot;...<br />Which links to a handler page which executes the desired function.<br />I read through the tutorial letter last night and it states we must use forms.<br /><br />Is my way of hyperlinks wrong and must I make adjustments to put it into forms? I don't want to lose points over something so stupid.]]></description>
<dc:creator>77471466_Alwyn</dc:creator>
<category>PHP Sem 1</category><pubDate>Thu, 05 Apr 2012 17:05:22 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165120,165120#msg-165120</guid>
<title>Course table (2 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165120,165120#msg-165120</link><description><![CDATA[ mac do we leave our course table empty, for you to add or can we put some courses in?]]></description>
<dc:creator>radhestringer72801093</dc:creator>
<category>PHP Sem 1</category><pubDate>Wed, 04 Apr 2012 06:52:58 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165100,165100#msg-165100</guid>
<title>Dump structure (5 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165100,165100#msg-165100</link><description><![CDATA[ The tut102 I have downloaded doesn't have dump structure which we are suppose to use and I manualy created mine according to the tut102. I wanna know if 'course' table only contains two fields(Id and cname).]]></description>
<dc:creator>Fulu-72924640</dc:creator>
<category>PHP Sem 1</category><pubDate>Thu, 19 Apr 2012 12:17:47 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165091,165091#msg-165091</guid>
<title>Exam (3 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165091,165091#msg-165091</link><description><![CDATA[ Good day guy.<br /><br />I need help.<br /><br />Where on my CD Iam I supposed to get our the exam that we need to submit at the end of this course?<br /><br />I am alittle bit behind<br /><br />Thanks]]></description>
<dc:creator>77599152</dc:creator>
<category>PHP Sem 1</category><pubDate>Wed, 04 Apr 2012 21:41:35 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165059,165059#msg-165059</guid>
<title>Numeric fields INT or VARCHAR? (6 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165059,165059#msg-165059</link><description><![CDATA[ I'm playing around with the field types in my database...<br />and when I use INT it seems I lose the 0 at the beginning of my cellphone/telephone/fax numbers.<br /><br />Do you guys recommend using VARCHAR instead?]]></description>
<dc:creator>77471466_Alwyn</dc:creator>
<category>PHP Sem 1</category><pubDate>Tue, 03 Apr 2012 16:23:46 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,165015,165015#msg-165015</guid>
<title>sessions (5 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,165015,165015#msg-165015</link><description><![CDATA[ ok when i refresh my page i get errors<br /><br />&quot;&quot;&quot;Notice: Undefined index: username in C:\Program Files\EasyPHP-5.3.3\www\login\yo2.php on line 19&quot;&quot;&quot;&quot;<br /><br /><br />login page everything works fine here, so i just took the part of the session start for the next page.<br /><pre class="bbcode_geshi"><div class="head">Language: PHP</div><span class="re0">$usernamedata</span> = <span class="re0">$db_field</span><span class="br0">&#91;</span><span class="st0">'username'</span><span class="br0">&#93;</span>;
&nbsp;
				<a href="http://www.php.net/session_start"><span class="kw3">session_start</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>;
				<span class="re0">$_SESSION</span><span class="br0">&#91;</span><span class="st0">'login'</span><span class="br0">&#93;</span> = <span class="st0">&quot;1&quot;</span>;
&nbsp;
				<span class="re0">$_SESSION</span><span class="br0">&#91;</span><span class="st0">'username'</span><span class="br0">&#93;</span> = <span class="re0">$usernamedata</span>;
&nbsp;
&nbsp;
				<a href="http://www.php.net/header"><span class="kw3">header</span></a> <span class="br0">&#40;</span><span class="st0">&quot;Location: yo2.php&quot;</span><span class="br0">&#41;</span>;</pre><br /><br />here is my yo2.php page so everything works fine when i log in with the username , i can display info from the database and stuff but when i hit the refresh button<br /><br />&quot;&quot;&quot;Notice: Undefined index: username in C:\Program Files\EasyPHP-5.3.3\www\login\yo2.php on line 19&quot;&quot;&quot;&quot;<br /><br />what am i doing wrong?<br /><br /><pre class="bbcode_geshi"><div class="head">Language: PHP</div><span class="kw2">&lt;?PHP</span>
<span class="kw1">include</span> <span class="br0">&#40;</span><span class="st0">'connect.php'</span><span class="br0">&#41;</span>;
&nbsp;
&nbsp;
		<a href="http://www.php.net/session_start"><span class="kw3">session_start</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>;
&nbsp;
<span class="re0">$_SESSION</span><span class="br0">&#91;</span><span class="st0">'login'</span><span class="br0">&#93;</span>;
<span class="re0">$_SESSION</span><span class="br0">&#91;</span><span class="st0">'username'</span><span class="br0">&#93;</span>;
&nbsp;
&nbsp;
<a href="http://www.php.net/print"><span class="kw3">print</span></a> <span class="re0">$_SESSION</span><span class="br0">&#91;</span><span class="st0">'username'</span><span class="br0">&#93;</span>;
&nbsp;
	<span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$_SESSION</span><span class="br0">&#91;</span><span class="st0">'login'</span><span class="br0">&#93;</span> =! <span class="st0">&quot;1&quot;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
                      <a href="http://www.php.net/header"><span class="kw3">header</span></a> <span class="br0">&#40;</span><span class="st0">&quot;Location: logintest.php&quot;</span><span class="br0">&#41;</span>;
&nbsp;
<span class="br0">&#125;</span>
&nbsp;
<a href="http://www.php.net/session_destroy"><span class="kw3">session_destroy</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>; 
&nbsp;
<span class="kw2">?&gt;</span></pre>]]></description>
<dc:creator>radhestringer72801093</dc:creator>
<category>PHP Sem 1</category><pubDate>Tue, 10 Apr 2012 09:23:59 +0200</pubDate></item>
<item>
<guid>http://osprey.unisa.ac.za/phorum/read.php?570,164909,164909#msg-164909</guid>
<title>database tiny misunderstanding (5 replies)</title><link>http://osprey.unisa.ac.za/phorum/read.php?570,164909,164909#msg-164909</link><description><![CDATA[ &quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;As an example, for the registration page, you have to collect the course names (RP1) from the course table, to use in your registration page. Once the student has completed the registration form, the form data is inserted into the relevant table (RP2). Note that you only have 4 admin pages, therefore all code related to managing the course (MC1 -&gt; MC2) must fit in course_man.php. It follows that you must make use of if/else or case to manage how code is handled.&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;<br /><br /><br />What is RP1 :S<br />is that diagram just for looks like how it all works or is RP1, MC1 something??<br /><br />sorry i just dont want misunderstandings when i start so i need to clear it up]]></description>
<dc:creator>radhestringer72801093</dc:creator>
<category>PHP Sem 1</category><pubDate>Tue, 10 Apr 2012 12:32:54 +0200</pubDate></item>
</channel>
</rss>