PDA

View Full Version : query problem


ragtek
09-15-2007, 07:05 AM
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
09-15-2007, 10:42 AM
You are mispelling vbulletin

ragtek
09-15-2007, 01:30 PM
omg
after 6! times looking i saw it:(
thats the third time thats happing
bad bad

thx very much