I have this query
Code:
$ytvideo = $db->query_read("SELECT threadid FROM thread WHERE ytvideo = '$id'");
if($row = $db->fetch_array($ytvideo)) {
$ytvideoid = $row[threadid];
}
Which does what I want, this php file outputs to vb templates and I currently use $ytvideoid to do a javascript include, but I want to do the include in php. So how do I use $ytvideoid inside the php file? When I try to use it in the the file it has no value.
Thanks