News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

about $context

Started by Azoula, January 31, 2015, 08:33:50 PM

Previous topic - Next topic

Azoula

Helle every body please i have a question , today i add a custom action using integration hooks and every thing is working fine but the problem is how can i add a text inside the Body from table example :

this my table :

<?php
    $base 
mysql_connect ('................''..............''..............');
    
mysql_select_db ('..............'$base);
    
$sql 'SELECT * FROM test';
    
$req mysql_query($sql);
    while(
$data mysql_fetch_array($req)){
        
$pun $data['test'];
        echo 
"$pun<br />";
    }
    
mysql_close();
?>


now how can i put it inside the $context (Body) example like:

$context['youraction_Body'] ='hello'

$context['youraction_Body'] =

Azoula


Kindred

Do not bump like that... Especially not after less than an hour.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Azoula

i'm so sorry really i need help.

Advertisement: