Removed useless backticks

skala
ywarnier 15 years ago
parent f91557056e
commit bfe18d133e
  1. 2
      main/exercice/answer.class.php
  2. 2
      main/exercice/hotspot_save.inc.php
  3. 2
      main/exercice/hotspot_savescore.inc.php
  4. 2
      main/exercice/mark_free_answer.php
  5. 2
      main/group/group_category.php

@ -465,7 +465,7 @@ class Answer
"position = '".Database::escape_string($position)."', " . "position = '".Database::escape_string($position)."', " .
"destination = '".Database::escape_string($destination)."' " . "destination = '".Database::escape_string($destination)."' " .
"WHERE id = '".Database::escape_string($position)."' " . "WHERE id = '".Database::escape_string($position)."' " .
"AND question_i` = '".Database::escape_string($questionId)."'"; "AND question_i = '".Database::escape_string($questionId)."'";
Database::query($sql); Database::query($sql);
} }

@ -43,7 +43,7 @@ if ($_GET['type'] == "poly" || $_GET['type'] == "delineation")
} }
$hotspot_coordinates = api_substr($hotspot_coordinates,0,-2); $hotspot_coordinates = api_substr($hotspot_coordinates,0,-2);
} }
$sql = "UPDATE `$TBL_ANSWER` SET hotspot_coordinates = '".Database::escape_string($hotspot_coordinates)."',hotspot_type = '".Database::escape_string($hotspot_type)."' WHERE id = '".Database::escape_string($answerId)."' AND question_id ='".Database::escape_string($questionId)."' LIMIT 1 ;"; $sql = "UPDATE $TBL_ANSWER SET hotspot_coordinates = '".Database::escape_string($hotspot_coordinates)."',hotspot_type = '".Database::escape_string($hotspot_type)."' WHERE id = '".Database::escape_string($answerId)."' AND question_id ='".Database::escape_string($questionId)."' LIMIT 1 ;";
$result = Database::query($sql); $result = Database::query($sql);
echo "done=done"; echo "done=done";
?> ?>

@ -44,7 +44,7 @@ $coordinates = substr($coordinates,0,-1);
$TBL_TRACK_E_HOTSPOT = Database::get_statistic_table(STATISTIC_TRACK_E_HOTSPOTS); $TBL_TRACK_E_HOTSPOT = Database::get_statistic_table(STATISTIC_TRACK_E_HOTSPOTS);
// Save into db // Save into db
$sql = "INSERT INTO $TBL_TRACK_E_HOTSPOT (`user_id` , `course_id` , `quiz_id` , `question_id` , `answer_id` , `correct` , `coordinate` ) VALUES ( $sql = "INSERT INTO $TBL_TRACK_E_HOTSPOT (user_id , course_id , quiz_id , question_id , answer_id , correct , coordinate ) VALUES (
'".Database::escape_string($_user['user_id'])."', '".Database::escape_string($_user['user_id'])."',
'".Database::escape_string($courseCode)."', '".Database::escape_string($courseCode)."',
'".Database::escape_string($exerciseId)."', '".Database::escape_string($exerciseId)."',

@ -157,7 +157,7 @@ if($action == 'mark'){
# { # {
# $user_id = '0'; # $user_id = '0';
# } # }
# $sql2 = "update `$tbl_learnpath_user` set score='$score' where (user_id=$user_id and learnpath_id='$learnpath_id' and learnpath_item_id='$learnpath_item_id')"; # $sql2 = "update $tbl_learnpath_user set score='$score' where (user_id=$user_id and learnpath_id='$learnpath_id' and learnpath_item_id='$learnpath_item_id')";
# $res2 = Database::query($sql2); # $res2 = Database::query($sql2);
#} #}
$res = Database::query($sql); $res = Database::query($sql);

@ -66,7 +66,7 @@ if (isset ($_GET['id'])) {
// Checks if the field was created in the table Category. It creates it if is neccesary // Checks if the field was created in the table Category. It creates it if is neccesary
$table_category = Database :: get_course_table(TABLE_GROUP_CATEGORY); $table_category = Database :: get_course_table(TABLE_GROUP_CATEGORY);
if (!Database::query("SELECT wiki_state FROM $table_category")) { if (!Database::query("SELECT wiki_state FROM $table_category")) {
Database::query("ALTER TABLE $table_category ADD `wiki_state` tinyint(3) UNSIGNED NOT NULL default '1';"); Database::query("ALTER TABLE $table_category ADD wiki_state tinyint(3) UNSIGNED NOT NULL default '1';");
} }
// Create a new category // Create a new category
$action = 'add_category'; $action = 'add_category';

Loading…
Cancel
Save