The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
[SOLVED] making this bit vbulletin friendly php mysql
Code:
$query = $db->query_first( "select * from redirect where(url = '$drc_url')"); if ($query == false){ $hits = "1"; $query2 = $db->query_write( "INSERT INTO redirect (url,hits) VALUES('$drc_url','$hits')"); } else { $hitquery = $db->query_first( "select hits from redirect where url = '$drc_url'"); $result = mysql_query($hitquery); $hits = mysql_result($result, 0, "hits"); $query2 = $db->query_write( "update redirect set hits = hits+1 where url = '$drc_url'"); } $db->query($query2); cant seem to get the else to function properly Code:
Call to undefined function mysql_query() mysql_ is depricated, and changing them to mysqli just breaks it worse =/ |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|