PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
corporalstorm
Hangin' Around


Joined: Nov 06, 2006
Posts: 46

PostPosted: Sat Jun 09, 2007 12:29 am Reply with quote Back to top

I've ported most of my site over but I'm havig a problem with this block that worked with PHP Nuke 8.. I don't know if some coding changed or if MySQL 5.0 is way different then what I'm use to.. I looked in my book and it appears right.. Any ideas? I keep getting no content for this block message.

Code:
<?PHP

if ( !defined('BLOCK_FILE') ) {
    Header('Location: ../index.php');
    die();
}

global $prefix, $db;

$result = $db->sql_query("SELECT uname, uid FROM ".$prefix."_nsngr_users WHERE gid = '2', uid > '0' ORDER BY uname ASC");
while ($row = $db->sql_fetchrow($result)) {
$title = filter($row['uname'], "nohtml");
$uid = filter($row['uid']);
    $content = "<strong><big>&middot;</big></strong>&nbsp;<a href=\"/modules.php?name=Private_Messages&mode=post&u=$uid\">$title</a><br>";

}

?>


What I'm doing is.. The block is for Guild Officers.. If the user is in the Guild Office Group which has GID of "2" and UID of "0".. I'm telling it to grab the uname and gid from nuke_nsngr_users to print the user in alphabetical order to show who our Guild Officers are.. It works flawlessly in PHP Nuke 8..

What'd I do wrong?!
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sat Jun 09, 2007 10:05 am Reply with quote Back to top

Your $content = statement should be $content .=

I would also try changing the SQL to 'WHERE gid = 2 AND uid > 0'
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum