tbl_student changed to tbl_prestudent

This commit is contained in:
Andreas Moik
2016-05-18 09:11:17 +02:00
parent 1aa2756ea8
commit 249076bfcc
49 changed files with 3451 additions and 3884 deletions
+5 -4
View File
@@ -16,8 +16,9 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* Authors: Christian Paminger <christian.paminger@technikum-wien.at>,
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at>,
* Rudolf Hangl <rudolf.hangl@technikum-wien.at> and
* Andreas Moik <moik@technikum-wien.at>.
*/
require_once(dirname(__FILE__).'/basis_db.class.php');
require_once(dirname(__FILE__).'/authentication.class.php');
@@ -154,7 +155,7 @@ function check_student($uid)
$db = new basis_db();
// uid von Tabelle 'Student' holen
$sql_query="SELECT student_uid FROM public.tbl_student WHERE student_uid=".$db->db_add_param($uid);
$sql_query="SELECT uid FROM public.tbl_prestudent WHERE uid=".$db->db_add_param($uid);
//echo $sql_query;
if($db->db_query($sql_query))
{
@@ -163,7 +164,7 @@ function check_student($uid)
if ($num_rows>0)
{
$row = $db->db_fetch_object();
return $row->student_uid;
return $row->uid;
}
else
return 0;