1 (edited by gostbuster 2006-11-15 18:46)

Topic: [resolved]Put an information from a code in the head

Hello everybody, first, I wanted to apologize if my english is not so good, because I'm a french guy.

Well, My forum is http://riffdenfer.free.fr and I would like to put an information in the same line the word "forum" is (with the grey backround). I want to put it on the right site.

the code I would like to put is

<?php

$requete = "SELECT * FROM daterepete WHERE id=1";
$result = mysql_query ($requete,$db);
$daterepete =mysql_fetch_object($result);
mysql_free_result($result);

 echo ("$daterepete->joursemaine");
echo (" $daterepete->numerojour" );
 echo (" $daterepete->mois" );
 ?>

The problem is I don't know where to put it !

it would be grateful If you could help me.

thank you very much

Re: [resolved]Put an information from a code in the head

Moved to Integration

Re: [resolved]Put an information from a code in the head

please, i need help !

Re: [resolved]Put an information from a code in the head

Could you put your PHP into a file in include/user and include it in the right place via the templates?

Re: [resolved]Put an information from a code in the head

Yes but i cant find Where can I put my PHP code. I would, like to put it is the same line that "forum" with the grey background.... sad

Re: [resolved]Put an information from a code in the head

Include the file after <pun_desc> in main.tpl

Re: [resolved]Put an information from a code in the head

how can I do that exactly ? please

Re: [resolved]Put an information from a code in the head

I have put just after pun_desc this :

<?php
include 'affichagetest.php';
?>

i don't have any error but it doesn't display the information

Re: [resolved]Put an information from a code in the head

I don't understand sad:(:(:(:(

Re: [resolved]Put an information from a code in the head

Please, be a little patient smile
http://punbb.org/docs/faq.html#faq3_4
That is what I meant

Re: [resolved]Put an information from a code in the head

Yes it works ! thank you very much !