Hi Kevin,
I am trying to pull data onto the navbar from a custom field in the forum table.
I have created a field called
un_data
I can enter different data into each
forum.un_data.
I will have a go, thanks for your help.
Mick
--------------- Added [DATE]1347749920[/DATE] at [TIME]1347749920[/TIME] ---------------
Hi all,
I have been working on outputting my code.
PHP Code:
$results = $vbulletin->db->query_read("SELECT adss FROM ".TABLE_PREFIX."forum WHERE forumid = $forumid");
$adss = $results;
vB_Template::preRegister('navbar',array('adss' => $adss));
The code just outputs
RESOURCE ID 52
Its not taking the data from adss in the database?
thanks again for all the help.
Mick
--------------- Added [DATE]1347790989[/DATE] at [TIME]1347790989[/TIME] ---------------
I got this working!
It has been a long time since I messed with mysql, and you need to do something with the data lol (mysql_fetch_row - etc), it was stuck in a resource and I forgot to add the code to deal with the array.
Thanks
Mick