Unrealx Forum Errors!

Started on the old forum in June 2006 · view the original in the archive · old links redirect here

15 replies · 1,325 views · started 20 years ago · 1 min read

wapped #1

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /public_html/core.php on line 578

that is this line while ($narys=mysql_fetch_array($nariai)) it is in this part /////////////////////////////////Get the memberlist////////////////////////// function membersget($nick,$pass,$whattoget,$page) { // if ($page==1) $pagest=0; else $pagest=$page*$page+1; $page=$page-1; if (!$page==0) $pagest=$page5; else $pagest=0; if ($whattoget=="id") $nariai=mysql_query("SELECT name,pluses FROM users ORDER BY id DESC LIMIT ".$pagest.", 5"); if ($whattoget=="name") $nariai=mysql_query("SELECT name,pluses FROM users ORDER BY name LIMIT ".$pagest.", 5"); while ($narys=mysql_fetch_array($nariai)) { $postu=mysql_fetch_array(mysql_query("SELECT COUNT() FROM posts WHERE postedby='".$narys[0]."'")); echo "<a href="index.php?action=viewuser&nick=$nick&pass=$pass&who=$narys[0]">Name: $narys[0], Posts: $postu[0], Pluses: $narys[1]</a> "; }; }; ///////////////////////////////////////////////////////////////////////////// and only one more error it is with private messages,when go on index.php?action=viewuser&nick=SOMENICK&pass=SOMEPASS&who=SOMENICK and click on send PM goes to this link index.php?action=sendpm&nick=bb&pass=bb&who= without SOMENICK then doesn want to send pm!, it is like this on every version tried,it must be something with mysql or what

please helpppp!!!!!!! External image (may be gone) External image (may be gone) External image (may be gone)

wapped #3

yes it is ,everybody told me,it is happening all version,ain't full....i will se the php version,thanx anyway!

abhisar #4

See if u installed the tables correctly.

/////////////////////////////////Get the memberlist////////////////////////// function membersget($nick,$pass,$whattoget,$page) { // if ($page==1) $pagest=0; else $pagest=$page*$page+1; $page=$page-1; if (!$page==0) $pagest=$page5; else $pagest=0; if ($whattoget=="id") $nariai=mysql_query("SELECT name,pluses FROM users ORDER BY id DESC LIMIT ".$pagest.", 5"); if ($whattoget=="name") $nariai=mysql_query("SELECT name,pluses FROM users ORDER BY name LIMIT ".$pagest.", 5"); while ($narys=mysql_fetch_array($nariai)) { $postu=mysql_fetch_array(mysql_query("SELECT COUNT() FROM posts WHERE postedby='".$narys[0]."'")); echo "<a href="index.php?action=viewuser&nick=$nick&pass=$pass&who=$narys[0]">Name: $narys[0], Posts: $postu[0], Pluses: $narys[1]</a> "; }; }; /////////////////////////////////////////////////////////////////////////////

wapped #5

bro can somebody leave here the sql file for all versions! i got one of this irisblaze.sql -- phpMyAdmin SQL Dump -- version 2.6.0-pl1 -- http://www.phpmyadmin.net

-- Host: localhost -- Generation Time: Nov 13, 2004 at 06:56 PM -- Server version: 4.1.7 -- PHP Version: 4.3.9

-- Database: wapforum


-- -- Table structure for table administrators

CREATE TABLE administrators ( id int(11) NOT NULL auto_increment, name varchar(99) NOT NULL default '', PRIMARY KEY (id) );


-- -- Table structure for table counter

CREATE TABLE counter ( id int(5) NOT NULL default '0', visitors int(99) NOT NULL default '0' ) ;


-- -- Table structure for table forums

CREATE TABLE forums ( id int(10) NOT NULL auto_increment, name varchar(99) NOT NULL default '', perms int(99) NOT NULL default '0', position int(99) NOT NULL default '0', adminonl varchar(10) NOT NULL default '', modonl varchar(10) NOT NULL default '', PRIMARY KEY (id) ) ;


-- -- Table structure for table log

CREATE TABLE log ( id int(10) NOT NULL auto_increment, date varchar(99) NOT NULL default '', text varchar(255) NOT NULL default '', PRIMARY KEY (id) );


-- -- Table structure for table moderators

CREATE TABLE moderators ( id int(11) NOT NULL auto_increment, name varchar(99) NOT NULL default '', forum varchar(99) NOT NULL default '0', PRIMARY KEY (id) ) ;


-- -- Table structure for table online

CREATE TABLE online ( laikas int(15) NOT NULL default '0', username varchar(40) NOT NULL default '', PRIMARY KEY (laikas), UNIQUE KEY username (username) ) ;


-- -- Table structure for table permissions

CREATE TABLE permissions ( id int(99) NOT NULL auto_increment, name varchar(99) NOT NULL default '', forum varchar(99) NOT NULL default '', PRIMARY KEY (id) );


-- -- Table structure for table posts

CREATE TABLE posts ( id int(99) NOT NULL auto_increment, forum int(99) NOT NULL default '0', postedby varchar(99) NOT NULL default '', name varchar(30) NOT NULL default '', text varchar(200) NOT NULL default '', thread char(1) NOT NULL default '', position bigint(99) NOT NULL default '0', perms int(99) NOT NULL default '0', pinned varchar(5) NOT NULL default '', closed varchar(5) NOT NULL default '', date varchar(255) NOT NULL default '', PRIMARY KEY (id), FULLTEXT KEY text_2 (text), KEY name (name), KEY text (text) ) ;


-- -- Table structure for table private

CREATE TABLE private ( id int(99) NOT NULL auto_increment, unread varchar(5) NOT NULL default '', sentby varchar(255) NOT NULL default '', sentto varchar(255) NOT NULL default '', text varchar(255) NOT NULL default '', date varchar(100) NOT NULL default '', timesent int(50) NOT NULL default '0', PRIMARY KEY (id) ) ;


-- -- Table structure for table smilies

CREATE TABLE smilies ( id int(10) NOT NULL auto_increment, bbcode varchar(200) NOT NULL default '', changeto varchar(200) NOT NULL default '', PRIMARY KEY (id) );



-- -- Table structure for table avatars

CREATE TABLE avatars ( id int(10) NOT NULL auto_increment, avlink varchar(200) NOT NULL default '', PRIMARY KEY (id) );



-- -- Table structure for table misc

CREATE TABLE misc ( id int(10) NOT NULL auto_increment, desc varchar(200) NOT NULL default '', text varchar(250) NOT NULL default '', PRIMARY KEY (id) );


-- -- Table structure for table users

CREATE TABLE users ( id int(10) NOT NULL auto_increment, name varchar(32) NOT NULL default '', pass varchar(54) NOT NULL default '', postno int(100) NOT NULL default '0', pluses int(99) NOT NULL default '0', status varchar(99) NOT NULL default '', owntext varchar(100) NOT NULL default '', email varchar(50) NOT NULL default '', banned char(2) NOT NULL default '', bannedby varchar(100) NOT NULL default '', banto int(40) NOT NULL default '0', tlphone varchar(99) NOT NULL default '', site varchar(50) NOT NULL default '', asl varchar(100) NOT NULL default '', avatar varchar(100) NOT NULL default '', lastpost int(100) NOT NULL default '0', lastthread int(100) NOT NULL default '0', banreason varchar(255) NOT NULL default '', plusreason varchar(255) NOT NULL default '', regdate varchar(255) NOT NULL default '', PRIMARY KEY (id), UNIQUE KEY name (name) ) ;

abhisar #7

LEAVE A COPY OF SCRIPT THAT YOU ARE USING.

naveen-PHP LEARNER #8

yes it is ,everybody told me,it is happening all version,ain't full....i will se the php version,thanx anyway!

Ur welcome. External image (may be gone)

lamar-wap #9

Not All Host Supports Unrealx Script What Host Are You On?....

wapkralj Developer · 237 posts #16

this errors seems to be because of little misphp heh

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close