The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
help with php code
I am trying to get this php code to work in a header. It spits it out after the title condition. Works fine outside of the vbull enviro. www.majorwager.com/testhead.php if someone could correct it for me it would be greatly appreciated.
<? $conf['dbName'] = '****r'; $conf['dbHost'] = '*****l'; $conf['dbUser'] = '****'; $conf['dbPass'] = '*****'; $dbcon = mysql_connect($conf['dbHost'], $conf['dbUser'], $conf['dbPass']); mysql_select_db($conf['dbName'], $dbcon); if (!$dbcon) { die('Connection error: ' . mysql_error()); } $sql = ' SELECT rowid, title, descript, show_descr, url, casinotype, advertiser, link_url, weight, rating, short_form, insured FROM sponsors WHERE rating = \'0\' AND hide = \'0\' AND title <> \'\' AND advertiser = \'1\' AND url <> \'\' AND link_url = \'1\' ORDER BY weight desc, lower(short_form) '; ?> <!--- Sportsbook links query ---> <table width="100%" cellpadding="3" cellspacing="0" border="0" style="border:solid black;border-width:1px 1px 0px 1px;background:#000000" align="center"> <tr> <td valign="middle" align="center"><img src="/images/company_logos/mw_arrow_left.gif" border="0" width="32" height="71"></td> <td valign="middle" align="center" class="sportsbooks_links"> <span class="sportsbooks_links"> <? $res = mysql_query($sql, $dbcon); while ($row = mysql_fetch_array($res)) { ?> <img src="/images/company_logos/mw_bullet.gif" border="0" width="4" height="7"> <a class="sportsbooks_links" href="<?=stripslashes($row['url'])?>" target="_blank" title="<?=stripslashes($row['short_form'])?>"> <span class="sportsbooks_links"><?=stripslashes($row['short_form'])?></span></a> <? } ?> </span></td> <td valign="middle" align="center"><img src="/images/company_logos/mw_arrow_right.gif" border="0" width="32" height="71"></td> </tr> </table> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|