Ive not asked the owner of the module (RottNKorpse) because I have looked though is forum support section and he states PHPNuke is dead and this module will only work on Evo and Evo Extreme.. and that he has no intention to convert it any other distro.
However once I do get it all working okay, I will email him a asking for permission to release it to the RN community.
Anyway's that to one side, I got it working on Ravens Nuke, but with one small problem I just cant sort.
What I am stuck on is calling the Database from a database.php file that is included in a playlist.php file
The Evo database.php file is simply
Code:
include('../../config.php');
$dbcnx = mysql_connect("$dbhost","$dbuname","$dbpass");
$dbselect = mysql_select_db("$dbname");
if ((!$dbcnx) || (!$dbselect)) { echo "Can't connect to database"; }
And it calls the DB fine and works no problem
However to get the same thing working in RN I have to change the above code to
Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
Posted:
Fri Jan 22, 2010 4:05 pm
Code:
require_once ('mainfile.php');
global $db, $prefix;
$result = $db->sql_query("SELECT * FROM ".$prefix."_rottnaudio_config");
$song_order_sql = $db->sql_fetchrow($result);
$song_order = $song_order_sql['song_order'];
$playlist_sql = $db->sql_query("SELECT * FROM ".$prefix."_rottnaudio_songs ORDER BY ".$song_order." ASC") or die('Query failed: ' . mysql_error());
The above should work. There has to be some details you are not mentioning. If you wnat to send it to me I can take a look at it, but if it is a module and you are doing the above it should work fine.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum