Jump to content
  • 0

Converting this to FluxCP


Reducto

Question


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  231
  • Reputation:   9
  • Joined:  12/16/11
  • Last Seen:  

Can anybody help me convert this to fluxcp.

mysql_connect('127.0.01', 'ragnarok', 'ragnarok');
mysql_select_db('ragnarok');
$res = mysql_query('SELECT `value` FROM `mapreg` WHERE `index` = 0 AND `varname` = \'$poringwinner$\' LIMIT 1');
$res = mysql_fetch_row($res);

thank you!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

by default, you dont really need to re-create the connection to sql.

 

in your module folder, just write the statement for sql to retrieve the data. 

then in your theme folder, write the html/php code to display the data.

Link to comment
Share on other sites

×
×
  • Create New...