The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
I have this code that is in a php widget to go and gather up to 5 random images.
But it's placing the images in the header instead of the php box. Any ideas on why that's happening? I did notice all this code is "msql" and my db is "mysqli" not sure if that matters? Code:
$con = mysql_connect("*****.**.*******.hostedresource.com","*******","******"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("******", $con); $result = mysql_query("SELECT * FROM vjb_ads ORDER BY RAND() LIMIT 0,5;"); while($row = mysql_fetch_array($result)) { echo "<a href='{$row['url']}'><img src='{$row['image_path']}' /></a><br/>"; } mysql_close($con); |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|