Select records as tablename.fieldname when joining tables.

Someone, can add  these fields userid,courseid to course table . :)
This commit is contained in:
ethem
2006-07-27 11:23:25 +00:00
parent fe2bc06329
commit dd241f341a
+2 -2
View File
@@ -101,10 +101,10 @@ function authorize_print_orders()
}
if ($userid > 0) {
$where .= "AND (userid = '" . $userid . "') ";
$where .= "AND (E.userid = '" . $userid . "') ";
}
if ($courseid != SITEID) {
$where .= "AND (courseid = '" . $courseid . "') ";
$where .= "AND (E.courseid = '" . $courseid . "') ";
}
if ($sort = $table->get_sql_sort()) {