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 |
Problem with the Practical Project April 23, 2010 04:17PM |
Registered: 14 years ago Posts: 170 Rating: 0 |
Language: PHP$query = "INSERT INTO student VALUES (';$fname';, ';$sname';, ';$msname';, ';$init';, ';$title';, ';$dob';, ';$sex';, ';$lang';, ';$idno';, ';$telh';, ';$telw';, ';$cel';, ';$fax';, ';$email';, $address';, ';sno';)";
Re: Problem with the Practical Project April 23, 2010 08:09PM |
Registered: 14 years ago Posts: 10 Rating: 0 |
Re: Problem with the Practical Project April 26, 2010 08:16AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: Problem with the Practical Project April 26, 2010 08:42AM |
Registered: 14 years ago Posts: 170 Rating: 0 |
Re: Problem with the Practical Project April 28, 2010 08:38PM |
Registered: 14 years ago Posts: 10 Rating: 0 |
would insert a record.Language: PHPINSERT INTO course (cname) VALUES (';$course';)
would display the errorLanguage: PHPINSERT INTO course VALUES (';$course';)
Language: PHP#1136 - Column count doesn';t match value count at row 1
Re: Problem with the Practical Project April 29, 2010 07:06AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
This will generate the error " Column count doesn't match value count at row 1" because you have just two colums in your query while the should be threeLanguage: PHPINSERT INTO course VALUES (';$1';, ';$2'; )
Language: PHPINSERT INTO course VALUES (';$1';, ';$2';, ';$3'; )
Language: PHPINSERT INTO course VALUES (';$1';, ';';, ';'; )
Language: PHPINSERT INTO table_name (column1, column2, column3,...) VALUES (value1, value2, value3,...)
Re: Problem with the Practical Project April 29, 2010 08:14AM |
Registered: 17 years ago Posts: 66 Rating: 0 |
Re: Problem with the Practical Project April 29, 2010 09:32AM |
Registered: 14 years ago Posts: 170 Rating: 0 |
Re: Problem with the Practical Project April 29, 2010 09:47AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: Problem with the Practical Project April 29, 2010 10:02AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: Problem with the Practical Project April 29, 2010 12:39PM |
Registered: 17 years ago Posts: 66 Rating: 0 |