![]() |
What is wrong with this query?
This query works and does exactly what I want, but it causes problems on my server with persistent connections, or something like that. When I take this out of my script my issues go away so I can only assume this is the problem. My host said something about having the query run then dropping the connection... I really don't know what that means or how to do it. My knowledge of this is pretty limited obviously, I wrote this query by looking through other files and piecing it together until I had something that did what I wanted.
Code:
global $db; |
First off, you shouldn't have quotes around the $v because that implies it's a string and I'm pretty sure it's a number?
Is the result going to be just one threadid? If so use query_read_first (I think that's it - doing it from memory) and then leave out the whole next four line (the if with the parenthesis) and just say HTML Code:
$ytvideoid = $ytvideo[threadid]; |
All times are GMT. The time now is 03:58 PM. |
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:
|