Please help

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

11 replies · 1,087 views · started 20 years ago · 4 min read

Guest #1

where is error in this tabl this is tabl from chatservice_v1

TABL.TXT:

CREATE TABLE bannedib ( mid int(11) NOT NULL auto_increment, ip varchar(30) NOT NULL default '', browser varchar(255) NOT NULL default '', login text NOT NULL, cid int(255) NOT NULL default '0', PRIMARY KEY (mid) ) TYPE=MyISAM AUTO_INCREMENT=12 ;


CREATE TABLE cusers ( cid int(11) NOT NULL auto_increment, admin text NOT NULL, pass text NOT NULL, chatname text NOT NULL, link text NOT NULL, name text NOT NULL, email text NOT NULL, rdate text NOT NULL, date text NOT NULL, today int(11) NOT NULL default '0', allday int(11) NOT NULL default '0', PRIMARY KEY (cid) ) TYPE=MyISAM AUTO_INCREMENT=22 ;

-- -- Дамп данных таблицы cusers


CREATE TABLE ignor ( id int(11) NOT NULL auto_increment, kto text NOT NULL, ykogo text NOT NULL, cid int(255) NOT NULL default '0', PRIMARY KEY (id) ) TYPE=MyISAM AUTO_INCREMENT=13 ;


CREATE TABLE letters ( id int(11) NOT NULL auto_increment, from_user text NOT NULL, to_user text NOT NULL, subject text, letter text NOT NULL, time text NOT NULL, new int(11) default NULL, cid int(11) NOT NULL default '0', PRIMARY KEY (id) ) TYPE=MyISAM AUTO_INCREMENT=6 ;


CREATE TABLE room ( id int(11) NOT NULL auto_increment, login text NOT NULL, idl int(255) NOT NULL default '0', msg text NOT NULL, room text NOT NULL, pr_from text, pr_to text, time time NOT NULL default '00:00:00', dbid int(11) NOT NULL default '0', wtime text NOT NULL, cid int(11) NOT NULL default '0', PRIMARY KEY (id) ) TYPE=MyISAM AUTO_INCREMENT=54 ;

INSERT INTO room VALUES (53, 'bitel', 10, 'Р?СЃР?Рј РїСЂРёРІР?С? РѕС?Р?РЅРё РїРѕРјРѕРіРёС?Р? РјРЅР? РѕР?С?Р?Р№С?Р?СЃСЊ Сѓ РјР?РЅСЏ', 'room1', '-', '-', '10:13:16', 10, '1117177996', 6); INSERT INTO room VALUES (52, 'Pups', 9, 'External image (may be gone)', 'room1', '-', '-', '09:26:23', 9, '1117175183', 5); INSERT INTO room VALUES (51, 'Pups', 9, ':)', 'room1', '-', '-', '09:25:44', 9, '1117175144', 5); INSERT INTO room VALUES (50, 'Pups', 9, 'РџСЂРёРІР?С?', 'room1', '-', '-', '09:25:34', 9, '1117175134', 5);


CREATE TABLE setts ( id int(External image (may be gone) NOT NULL auto_increment, mod varchar(10) default NULL, var varchar(40) default NULL, val1 varchar(40) default NULL, val2 varchar(40) default NULL, val3 int(External image (may be gone) default '0', cid int(11) NOT NULL default '0', PRIMARY KEY (id) ) TYPE=MyISAM AUTO_INCREMENT=492 ;


CREATE TABLE users ( id int(11) NOT NULL auto_increment, login text NOT NULL, pass text NOT NULL, name text NOT NULL, sex text NOT NULL, bday int(11) default NULL, bmonth int(11) default NULL, byear int(11) default NULL, photo text, live text, mobile text, email text, url text, about text, icq int(9) NOT NULL default '0', regdate date NOT NULL default '0000-00-00', status text NOT NULL, posts int(11) NOT NULL default '0', num_msgs int(11) NOT NULL default '8', time_update int(11) default NULL, trans int(11) default NULL, smile int(11) default NULL, ban text, banb text NOT NULL, banf int(15) NOT NULL default '0', banw text NOT NULL, moder int(11) default NULL, admin int(11) default NULL, smoder int(11) default NULL, vip int(11) default NULL, ltime int(11) NOT NULL default '0', lroom text NOT NULL, ip varchar(30) NOT NULL default '', browser varchar(255) NOT NULL default '', safe int(2) NOT NULL default '0', vposts int(255) NOT NULL default '0', fsize varchar(10) NOT NULL default 'small', cid int(255) NOT NULL default '0', PRIMARY KEY (id) ) TYPE=MyISAM AUTO_INCREMENT=26 ;


CREATE TABLE vstrechi ( id int(11) NOT NULL auto_increment, login text NOT NULL, title text NOT NULL, content text NOT NULL, organizatory text NOT NULL, cid int(11) NOT NULL default '0', PRIMARY KEY (id) ) TYPE=MyISAM AUTO_INCREMENT=1 ;


ERROR IN MYSQL:

Error

SQL query:

CREATE TABLE bannedib ( mid int( 11 ) NOT NULL AUTO_INCREMENT , ip varchar( 30 ) NOT NULL default '', browser varchar( 255 ) NOT NULL default '', login text NOT NULL , cid int( 255 ) NOT NULL default '0', PRIMARY KEY ( mid ) ) TYPE = MYISAM AUTO_INCREMENT =12

MySQL said:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TABLE bannedib ( mid int(11) NOT NULL auto_incr

mobix #2

I found one error in that the ----------------------------- lines mySQL does't geret and make some errror. Delete them and run SQL again External image (may be gone)

Guest #3

I found one error in that the ----------------------------- lines mySQL does't geret and make some errror. Delete them and run SQL again External image (may be gone)

Not work again

please help i need chat service script for wap

Guest #6

Don't panic External image (may be gone) here are script of chat service http://kazwap.user.kz/script/servisq/chatservice_v2.zip , and there SQL works im tested that External image (may be gone)

i have this scripts wap chat service, admin server work update mysql 4.025 with ver 4.1.19 and scripts not work External image (may be gone) External image (may be gone)

i have install the scripts, not work : who is, delete room, ....

http://www.sbportal.t34.biz/proba/

you test now

Admin: aa

admin passsword: aa

wapkralj Developer · 237 posts #7

majstore primi li ti zadnji pp moj ? ne odg. nista

lamar-wap #8

does it work now?........ hey give me online.php out of that script

Guest #9

does it work now?........ hey give me online.php out of that script

<?php header ("Content-type:text/vnd.wap.wml; charset=utf-8"); print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";

print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"'. ' "http://www.wapforum.org/DTD/wml_1.1.xml">'. '<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>';

include "./ini.php"; mysql_query ("select * from bannedib WHERE ci='$ci' AND (ip = '".getenv(REMOTE_ADDR)."')and(browser = '".getenv(HTTP_USER_AGENT)."')"); if(mysql_affected_rows()!=0){include "b.php";} $login = autorize();

$q_count = @mysql_query("SELECT count(*) FROM ".$px.$utable." WHERE ltime>'".intval(time()-$offline )."'and ci='$ci'");

$count = @mysql_fetch_array($q_count);

print '<card title="'.$lang['who_online'].' ('.$count['count(*)'].')">'. '

';

    if($login['fsize'] == "small") { $fsize1 = ""; $fsize2 = ""; }
    elseif($login['fsize'] == "big") { $fsize1 = ""; $fsize2 = ""; }
    elseif($login['fsize'] == "verysmall") { $fsize1 = ""; $fsize2 = ""; }
    else { $fsize1 = ""; $fsize2 = ""; }
    print $fsize1;

    $q = @mysql_query("select `var`,`val1` from `".$px.$stable."` where mod='room'  and ci='$ci' order by val3;");

    while($droom = @mysql_fetch_array($q)) {
            $q_online = @mysql_query("SELECT `login` FROM `".$px.$utable."` WHERE ltime>'".intval(time()-$offline)."' AND room='".$droom['var']."'  and ci='$ci' order by ltime desc;");
            print '.'"]'.$droom['val1'].':

'; while($donline = @mysql_fetch_array($q_online)) { print $donline['login'].", "; } print ' '; }

$pr_count = @mysql_query("SELECT count(*) FROM ".$px.$utable." WHERE ltime>'".intval(time()-$offline)."' AND room='' and ci='$ci';");

$pdc = @mysql_fetch_array($pr_count); print "<a href="enter.php?ci=$ci&id=$id&pass=$pass">".$lang['holl']." (".$pdc['count(*)'].")</a> "; print $fsize2; print ' '. '</card>'. '</wml>';

@mysql_close(); ob_end_flush(); ?>

abhisar #10

wot wud you do with the online.php

lamar-wap #11

thanks im gonna test something...

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