![]() |
Users must post before voting
How would I go about doing this?
I've tried the below to give me an array but it results in a fatal error. PHP Code:
|
what your array code look like
you need to fetch through the results |
I've fixed the fatal error issue. But the following isn't working. It should print out the array but it isnt'.
PHP Code:
|
while($post = $vbulletin->db->fetch_array)
|
That returns mysqli_result Object ( ).
|
i had this problem on one of my plugins and thats how i fixed it
PHP Code:
|
That's what returns mysqli_result Object ( ).
|
Quote:
its best practice to use $vbulletin-> if your using db-> always fixes most of my problems when i put it in |
In the following code, $threadid is an array with the contents of a single database row.
Code:
$threadid = $vbulletin->db->query_first(" Code:
$checkpost = $vbulletin->db->query_read(" |
Ahhh^
I should have known that! Thanks Marco. ---- PHP Code:
I thought the above code would work. |
All times are GMT. The time now is 12:22 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|