The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Forumblock : executing a query on db ? $this->registry->query ? - SOLVED
trying to run a single query in a forumblock, and refering to a old post Forum block stuff
anyway trying to get this snippit to run but constantly getting function not found.... Code snippet AFTER reading This post from 2005 Code:
$getclasslist = $this->registry->query("SELECT * FROM ".TABLE_PREFIX."egr"); while($row= $this->registry->db->fetch_array($getclasslist)) { Code:
$getclasslist = $vbulletin->db->query("SELECT * FROM ".TABLE_PREFIX."egr"); while($row= $vbulletin->db->fetch_array($getclasslist)) { Both give excaktly same error : Fatal error: Call to undefined method vB_Registry::query() in C:\xampp\xampp\htdocs\emod\includes\block\html.php (95) : eval()'d code on line 25 Why ? --------------- Added [DATE]1266926028[/DATE] at [TIME]1266926028[/TIME] --------------- SOLVED : works now --> Code:
$getclasslist = $vbulletin->db->query_read("SELECT * FROM ".TABLE_PREFIX."egr"); while($row = $vbulletin->db->fetch_array($getclasslist)) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|