![]() |
[SOLVED] making this bit vbulletin friendly php mysql
Code:
$query = $db->query_first( "select * from redirect where(url = '$drc_url')"); 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 =/ |
Well if I check your piece of code then you don't need those 3 lines at all:
PHP Code:
query_first returns an array of the data from the first row by the way, so you can just use $hitquery['hits']. |
Quote:
OR, you haven't opened a mysql connection to the database. Quote:
Code:
$result = mysql_query($hitquery); |
PHP Code:
(got to run to the DMV to renew tags and lic almost my birthday, be back shortly) |
That should work but this isn't needed, it doesn't do anything...
Code:
$hitquery['hits']; |
Here's how I would do it:
PHP Code:
|
ok now I want to relay those results back in an ordered manor
I have Code:
$query = $db->query_first( "select * from redirect order by hits desc"); |
1 Attachment(s)
FYI the end result will be something like this:
https://vborg.vbsupport.ru/attachmen...1&d=1458834691 everything is ready database wise, just want to create an overall stats page and put the count next to links. https://vborg.vbsupport.ru/attachmen...1&d=1458834699 |
this is the part i need help with =/
PHP Code:
|
All times are GMT. The time now is 04:03 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:
|