The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have integrated page and want my own query execute in own function. Is there any similar to query_read_slave, because unfortunately this not work to call from function (Fatal error: Call to a member function query_read_slave() on a non-object).
Regards --------------- Added [DATE]1256719513[/DATE] at [TIME]1256719513[/TIME] --------------- I solve a problem. Instead of $thread = $db->query_read_slave($strSQL); while ($row = $db->fetch_array($thread)) ... I used $thread = mysql_query($strSQL); while ($row = mysql_fetch_array($thread)) Any one know what is the main difference? |
#2
|
||||
|
||||
![]()
$db->whatever is a method defined by vbulletin. Unless you include global.php or init.php in your files, you cannot use that method - you will get the error you got.
|
#3
|
|||
|
|||
![]()
$thread = mysql_query($strSQL); give me the correct result, even if I didnt declare connection. Is connection inhereted from vb?
|
#4
|
||||
|
||||
![]()
I believe so, yes.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|