Pagina 1 van 1

dubbelpost-cash probleem

Geplaatst: 19 nov 2004, 15:27
door dragonfire
ik heb zo'n dubbelpost beveiliging gedownload zodat je als je dubbelpost, dat ie dan word toegoevoegt aan de laatste post...
maar nu ik dat heb geinstaleerd, deed ie het in het begin, maar nu doet ie het ineens niet meer, en krijg ik deze error:
Error retrieving group data

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND user_pending = 0 ORDER BY group_id ASC' at line 4

SELECT group_id FROM user_group WHERE user_id = AND user_pending = 0 ORDER BY group_id ASC
Line : 1219
File : /home/vhosts/funtopia.xoopiter.com/includes/functions_cash.php
hoe kan dit?
en weet iemand het probleem

Geplaatst: 19 nov 2004, 16:26
door Luuk
Je hebt iets niet goed veranderd denk ik, hij mist het user_id in de querrie. Geef regel 1215-1225 eens van includes/functions_cash.php

Geplaatst: 19 nov 2004, 18:15
door dragonfire

Code: Selecteer alles

	function name()
	{
		$this->get_userdata();
		return $this->userdata['username'];
	}
	function get_cashgroups()
	{
		global $db, $cm_groups, $cash;
		$this->get_userdata();
		if ( !$this->cashgroups_init )
		{
			$cm_groups->load();
			$sql = "SELECT group_id
					FROM " . USER_GROUP_TABLE . "
					WHERE user_id = " . $this->user_id . "
						AND user_pending = 0                 // regel 2115
					ORDER BY group_id ASC";
			if ( !($result = $db->sql_query($sql)) )
			{
				message_die(GENERAL_ERROR, 'Error retrieving group data', '', __LINE__, __FILE__, $sql);
			}
			while ( $row = $db->sql_fetchrow($result) )
			{
				$this->usergroups[] = $row['group_id'];
			}
			while ( $c_cur = &$cash->currency_next($cm_i) )
			{
				$this->cashgroups[$c_cur->id()] = array();
				$this->cashgroups[$c_cur->id()][] = &$cash->currencies[$c_cur->id()];
			}
			$cm_groups->get_groups($this->cashgroups,$this->userdata['user_level'],$this->usergroups,$this->userdata['user_posts']);
			$this->cashgroups_init = true;
		}
	}
	function get_setting($cash_id,$attribute,$modifier = false)
	{
		global $cash;
		if ( !$cash->currency_exists($cash_id) )

Geplaatst: 19 nov 2004, 18:41
door Luuk
Verander

Code: Selecteer alles

 WHERE user_id = " . $this->user_id . "
eens in

Code: Selecteer alles

 WHERE user_id = "' . $this->user_id . '"
Weet niet of het wat uit haalt.... :roll: