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 |
The Portfolio student_reg.php September 29, 2013 11:17PM |
Registered: 10 years ago Posts: 57 Rating: 0 |
Re: The Portfolio student_reg.php September 29, 2013 11:24PM |
Registered: 10 years ago Posts: 57 Rating: 0 |
Re: The Portfolio student_reg.php September 29, 2013 11:25PM |
Registered: 10 years ago Posts: 57 Rating: 0 |
Re: The Portfolio student_reg.php September 29, 2013 11:45PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: The Portfolio student_reg.php September 30, 2013 09:28AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: The Portfolio student_reg.php September 30, 2013 09:44AM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
[mail function] ; For Win32 only. SMTP = smtp.saix.net // <<< Enter your SMTP server here. ; For Win32 only. sendmail_from = your@emailaddress.co.za // <<< Enter your e-mail address here. ; For Unix only. You may supply arguments as well (default: "sendmail -t -i" ). ;sendmail_path = ; Force the addition of the specified parameters to be passed as extra parameters ; to the sendmail binary. These parameters will always replace the value of ; the 5th parameter to mail(), even in safe mode. ;mail.force_extra_paramaters =
Re: The Portfolio student_reg.php September 30, 2013 02:01PM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: The Portfolio student_reg.php September 30, 2013 06:53PM |
Registered: 10 years ago Posts: 57 Rating: 0 |
Re: The Portfolio student_reg.php October 02, 2013 08:15PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: The Portfolio student_reg.php October 06, 2013 11:08AM |
Registered: 10 years ago Posts: 57 Rating: 0 |
Re: The Portfolio student_reg.php October 07, 2013 11:11AM |
Registered: 11 years ago Posts: 123 Rating: 0 |
Re: The Portfolio student_reg.php October 07, 2013 12:06PM |
Registered: 11 years ago Posts: 167 Rating: 0 |
Re: The Portfolio student_reg.php October 09, 2013 11:18PM |
Registered: 10 years ago Posts: 7 Rating: 0 |
Re: The Portfolio student_reg.php October 10, 2013 08:58AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: The Portfolio student_reg.php October 10, 2013 09:37AM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: The Portfolio student_reg.php October 10, 2013 10:32AM |
Registered: 11 years ago Posts: 167 Rating: 0 |
Language: PHPif ($result = true) { echo "Student successfully registered"; } else { echo "Student not registered"; }
Language: PHP// If successfully insert data into database, display message "Successful". if ($result) { //Problem is here!! echo "Student successfully registered"; } else { echo "ERROR"; }
Re: The Portfolio student_reg.php October 10, 2013 10:54AM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: The Portfolio student_reg.php October 10, 2013 11:18AM |
Registered: 11 years ago Posts: 123 Rating: 0 |
Language: PHPtemplate.php <?php require(';config.php';); $db_handle=mysql_connect($server,$user_name,$password); $db_found=mysql_select_db($database,$db_handle); ?>
Re: The Portfolio student_reg.php October 10, 2013 09:58PM |
Registered: 10 years ago Posts: 56 Rating: 0 |
Re: The Portfolio student_reg.php October 10, 2013 11:27PM |
Registered: 10 years ago Posts: 7 Rating: 0 |
Re: The Portfolio student_reg.php October 11, 2013 11:31AM |
Registered: 10 years ago Posts: 56 Rating: 0 |
Re: The Portfolio student_reg.php October 17, 2013 04:29PM |
Registered: 11 years ago Posts: 44 Rating: 0 |
Re: The Portfolio student_reg.php October 17, 2013 04:45PM |
Registered: 11 years ago Posts: 167 Rating: 0 |
Language: PHP//Inserts student data into database conDB(); $sql = "INSERT INTO student (sname,init,fname,title,msname,dob,gen,lang,idno,telh,telw,cel,fax,email,address,contact_flag) VALUES (';$studSn';,';$studIn';,';$studFn';,';$studTit';,';$studMn';,';$studDob';,';$studGen';,';$studLan';,';$studId';, ';$studTelh';,';$studTelw';,';$studCell';,';$studFax';,';$studEmail';,';$studAdr';,';$studShare';)"; $result = mysql_query($sql) or die (mysql_error()); //Gets the value of the last record in the database $link = mysql_connect(sql_host,sql_user,sql_pass); $studNr = mysql_insert_id($link); //Inserts student registration and course into database $sql1 = "INSERT INTO course_student (sno,cid, year) VALUES (';$studNr';,';$CourseA';,';$studYear';)"; $result2 = mysql_query($sql1) or die (mysql_error()); mysql_close();
Re: The Portfolio student_reg.php October 17, 2013 10:07PM |
Registered: 10 years ago Posts: 56 Rating: 0 |
Re: The Portfolio student_reg.php October 17, 2013 10:08PM |
Registered: 10 years ago Posts: 56 Rating: 0 |
Re: The Portfolio student_reg.php October 18, 2013 10:14AM |
Registered: 11 years ago Posts: 44 Rating: 0 |
Re: The Portfolio student_reg.php October 18, 2013 10:23AM |
Registered: 11 years ago Posts: 167 Rating: 0 |
Language: PHP//Check to see what was selected in dropdown boxes if (isset($_POST[';selCourse';])) { $CourseA = $_POST[';selCourse';]; }
Re: The Portfolio student_reg.php October 18, 2013 12:52PM |
Registered: 11 years ago Posts: 123 Rating: 0 |
Re: The Portfolio student_reg.php October 18, 2013 02:12PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: The Portfolio student_reg.php October 18, 2013 09:21PM |
Registered: 10 years ago Posts: 56 Rating: 0 |
Language: PHP//Capturing the data PHP $studchoice= array(); foreach($_POST[';cname';] as $studcor){ $studchoice[]=($studcor); } $studchoice1= implode(';,';, $studchoice); //drop down list. <select name="cname[]" multiple="multiple" > <option value=""></option> <?PHP connect(); dropdown();?> </select>* // the function dropdown(); function dropdown(){ $sql="SELECT * FROM course"; $result=mysql_query($sql) or die(mysql_error()); while($record = mysql_fetch_assoc($result)){ echo';<option value="'; . $record[';cname';] . ';">'; . $record[';cname';] . ';</option>';; } }
Re: The Portfolio student_reg.php October 21, 2013 11:16AM |
Registered: 11 years ago Posts: 167 Rating: 0 |
>Language: PHP> //Capturing the data PHP > $studchoice= array(); > foreach($_POST[';cname';] as $studcor){ > $studchoice[]=($studcor); > } > $studchoice1= implode(';,';, $studchoice); > > //drop down list. > <select name="cname[]" multiple="multiple" > > <option value=""></option> > <?PHP connect(); dropdown();?> > </select>* > > // the function dropdown(); > function dropdown(){ > $sql="SELECT * FROM course"; > $result=mysql_query($sql) or die(mysql_error()); > while($record = mysql_fetch_assoc($result)){ > > echo';<option value="'; . $record[';cname';] . ';">'; . > $record[';cname';] . ';</option>';; > } > > } > >
Re: The Portfolio student_reg.php October 21, 2013 03:26PM |
Registered: 11 years ago Posts: 123 Rating: 0 |
Re: The Portfolio student_reg.php October 30, 2013 12:38PM |
Registered: 11 years ago Posts: 123 Rating: 0 |
Re: The Portfolio student_reg.php October 30, 2013 12:56PM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: The Portfolio student_reg.php October 30, 2013 03:04PM |
Registered: 11 years ago Posts: 123 Rating: 0 |
Re: The Portfolio student_reg.php October 30, 2013 04:25PM |
Registered: 11 years ago Posts: 12 Rating: 0 |
Re: The Portfolio student_reg.php October 31, 2013 06:46AM |
Registered: 11 years ago Posts: 123 Rating: 0 |
Re: The Portfolio student_reg.php October 31, 2013 11:52AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |