PDA

View Full Version : query problem


ragtek
15 Sep 2007, 08:05
i have this in my file:

// kategorien holen
$kat = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "musikkategorie where userid = '".$vbulletin->userinfo['userid']."'");

while ($item = $vbulletin->db->fetch_array($kat)){
$optionvalue=$item['id'];
$optionselected = ($item['id'] == $aktuelle_kategorie) ? 'selected="selected"' : '';
$optiontitle=$item['bezeichnung'];
//optionsausgabe
eval('$kategoriebits .= "' . fetch_template('option') . '";');

}


$musik = $vbulettin->db->query_read("SELECT * FROM " . TABLE_PREFIX ."musikfiles where catid='".$aktuelle_kategorie."'");
while ($musikbit = $vbulettin->db->fetch_array($musik)) {
eval('$musikbits .= "' .fetch_template('musikbit').'";');
}

when i open the file in browser i get this error: Fatal error: Call to a member function query_read() on a non-object in /var/www/forum/musikcp.php on line 54
line 54 is the 2. query
when i comment this part out, everything is ok
i don't understand whats wrong

Eikinskjaldi
15 Sep 2007, 11:42
You are mispelling vbulletin

ragtek
15 Sep 2007, 14:30
omg
after 6! times looking i saw it:(
thats the third time thats happing
bad bad

thx very much