Click here to Skip to main content
15,887,477 members
Home / Discussions / Web Development
   

Web Development

 
Questionmigrations errors in Django web Pin
Mohammad Shafique13-Apr-20 13:32
Mohammad Shafique13-Apr-20 13:32 
AnswerRe: migrations errors in Django web Pin
Richard MacCutchan13-Apr-20 21:03
mveRichard MacCutchan13-Apr-20 21:03 
AnswerRe: migrations errors in Django web Pin
ZurdoDev30-Apr-20 10:42
professionalZurdoDev30-Apr-20 10:42 
QuestionI am looking for School student_result_management Pin
Member 1480089113-Apr-20 7:47
Member 1480089113-Apr-20 7:47 
AnswerRe: I am looking for School student_result_management Pin
Mycroft Holmes13-Apr-20 12:45
professionalMycroft Holmes13-Apr-20 12:45 
GeneralRe: I am looking for School student_result_management Pin
Member 1483624120-May-20 3:35
Member 1483624120-May-20 3:35 
AnswerRe: I am looking for School student_result_management Pin
HenryyyyyMiller27-Aug-20 23:06
HenryyyyyMiller27-Aug-20 23:06 
QuestionPlease can some one help me with this problem Pin
Member 1480089113-Apr-20 6:52
Member 1480089113-Apr-20 6:52 
I have this CMS work, at the edit_subject page, I have some problem that say ( The subject update failed.
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '} WHERE id = 1' at line 4)

This is the page




30);
foreach($fields_with_lengths as $fieldname => $maxlength ){
if (strlen(trim(mysql_prep($_POST[$fieldname]))) > $maxlength) { $errors[] = $fieldname; }
}
if (empty($errors)) {
// Perform Update
$id = mysql_prep($_GET['subj']);
$menu_name = mysql_prep($_POST['menu_name']);
$position = mysql_prep($_POST['position']);
$visible = mysql_prep($_POST['visible']);

$query = "UPDATE subjects SET
menu_name = '{$menu_name}',
position = {$position},
visible = {visible}
WHERE id = {$id}";
$result = mysql_query($query, $connection);
if (mysql_affected_rows() == 1) {
// Success
$message = "The subject was successfully updated.";
} else {
// Failed
$message = "The subject update failed. ";
$message .= "
". mysql_error();
}
} else{
// Errors occurred
$message = "There were " . count($errors) . " errors in the form. ";
}
}// end: if (isset($_POST['submit']))
?>



Edit Subject:


" . $message . "

";} ?>
";
echo "Please review the following fields;
";
foreach($errors as $errors) {
echo " - " . $errors . "
";
}
echo "

";
}
?>

Subject name:


Position:

{$count}";
}
?>


Visible:
No
 
/> Yes






Cancel


I need your help
AnswerRe: Please can some one help me with this problem Pin
Graham Breach13-Apr-20 10:33
Graham Breach13-Apr-20 10:33 
AnswerRe: Please can some one help me with this problem Pin
Richard Deeming14-Apr-20 0:53
mveRichard Deeming14-Apr-20 0:53 
QuestionWhat are the best languages for web development? Pin
Member 1480030412-Apr-20 23:46
Member 1480030412-Apr-20 23:46 
AnswerRe: What are the best languages for web development? Pin
Bohdan Stupak13-Apr-20 5:36
professionalBohdan Stupak13-Apr-20 5:36 
GeneralRe: What are the best languages for web development? Pin
dioscarey18-Apr-20 6:02
dioscarey18-Apr-20 6:02 
AnswerRe: What are the best languages for web development? Pin
dioscarey17-Apr-20 7:17
dioscarey17-Apr-20 7:17 
AnswerRe: What are the best languages for web development? Pin
Jin Vincent Necesario18-Apr-20 1:02
professionalJin Vincent Necesario18-Apr-20 1:02 
AnswerRe: What are the best languages for web development? Pin
ErikBoots16-Dec-21 1:46
professionalErikBoots16-Dec-21 1:46 
QuestionWeClient Download Files Pin
Kevin Marois29-Mar-20 13:20
professionalKevin Marois29-Mar-20 13:20 
AnswerRe: WeClient Download Files Pin
Peter_in_278029-Mar-20 15:17
professionalPeter_in_278029-Mar-20 15:17 
GeneralRe: WeClient Download Files Pin
Kevin Marois29-Mar-20 15:29
professionalKevin Marois29-Mar-20 15:29 
GeneralRe: WeClient Download Files Pin
Peter_in_278029-Mar-20 17:34
professionalPeter_in_278029-Mar-20 17:34 
QuestionInserting Null Values with sqlBulk.ColumnMappings.Add() Pin
KGr2824-Mar-20 4:13
KGr2824-Mar-20 4:13 
QuestionBrowser-based Document Scanning Application Pin
Kami Dehlvi21-Mar-20 8:42
Kami Dehlvi21-Mar-20 8:42 
Answer[REPOST] Browser-based Document Scanning Application Pin
Richard Deeming23-Mar-20 0:31
mveRichard Deeming23-Mar-20 0:31 
AnswerRe: Browser-based Document Scanning Application Pin
Richard MacCutchan23-Mar-20 0:56
mveRichard MacCutchan23-Mar-20 0:56 
QuestionCreating anonline-educational platform ? Pin
dika2311-Mar-20 16:58
dika2311-Mar-20 16:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.