Topic: add personal function in viewtopic
I would like to add data from another tables than PunBB in viewtopic.php
function myfunction($id_user){
global $db;
$result = $db->query('MYREQUESTHERE') or error('Unable to fetch request', __FILE__, __LINE__, $db->error());
if ($db->num_rows($result)){
return "MYDATATHERE";
}
}
I would like to insert myfunction($id_user) between this line
while ($cur_post = $db->fetch_assoc($result))
{
AND this line
}
It's works with punbb 1.1.5 but not with 1.2.10 ! Display only one message ! I don't know why !
Anybody could help me ? I think it's a problem with $result = $db->
thx for ur help