0 ) { $course_query = "SELECT * FROM li_courses WHERE cid=" . $cid; $result = mysqli_query($connection, $course_query); while ($row = mysqli_fetch_object($result)) { $name = $row->name; $descr = $row->description; $diffname = $row->diffname; $level = $row->level; $link = $row->link; $color = $row->color; } mysqli_free_result($result); } $return .= ''; $return .= '
Gruppenname
'; $return .= '
Tanzstil
'; $return .= '
Level
'; $return .= '
Alter
'; $return .= '
Link
'; $return .= '
Farbe
'; return $return; } function CourseDelete($connection, $cid) { $querystr = "DELETE FROM li_courses WHERE cid=" . $cid; mysqli_query($connection, $querystr); $querystr = "DELETE FROM li_plan WHERE cid=" . $cid; mysqli_query($connection, $querystr); return $GLOBALS["operation_success"]; } function CourseCommit($connection, $cname, $cdescr, $cdiffname, $clevel, $clink, $ccolor) { $querystr = "INSERT INTO li_courses (name,description,diffname,level,link,color,age_begin,age_end) VALUES('" . $cname . "','" . $cdescr . "','" . $cdiffname . "','" . $clevel . "','" . $clink . "','" . $ccolor . "',0,99)"; mysqli_query($connection, $querystr); return $GLOBALS["operation_success"]; } function CourseUpdate($connection, $cid, $cname, $cdescr, $cdiffname, $clevel, $clink, $ccolor) { $querystr = "UPDATE li_courses SET name='" . $cname . "', description='" . $cdescr . "', diffname='" . $cdiffname . "', level='" . $clevel . "', link='" . $clink . "', color='" . $ccolor . "' WHERE cid=" . $cid; mysqli_query($connection, $querystr); return $GLOBALS["operation_success"]; } ?>