Please help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Please help

    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, '[img]smiles/smiles/smirk.gif[/img]', '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( 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( 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

    #2
    I found one error in that the ----------------------------- lines mySQL does't geret and make some errror. Delete them and run SQL again

    Comment


      #3
      I found one error in that the ----------------------------- lines mySQL does't geret and make some errror. Delete them and run SQL again [/b]

      Not work again


      please help i need chat service script for wap

      Comment


        #4
        Don't panic here are script of chat service http://kazwap.user.kz/script/servisq/chatservice_v2.zip , and there SQL works im tested that

        Comment


          #5
          is it now everything ok bro ? bhvalter ,hope it is

          Comment


            #6
            Don't panic here are script of chat service http://kazwap.user.kz/script/servisq/chatservice_v2.zip , and there SQL works im tested that [/b]

            i have this scripts wap chat service, admin server work update mysql 4.025 with ver 4.1.19 and scripts not work

            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

            Comment


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

              Comment


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

                Comment


                  #9
                  does it work now?........ hey give me online.php out of that script[/b]
                  <?php

                  header ("Content-type:text/vnd.wap.wml; charset=utf-8");

                  print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
                  print &#39;<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"&#39;.
                  &#39; "http://www.wapforum.org/DTD/wml_1.1.xml">&#39;.
                  &#39;<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>&#39;;

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

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

                  $count = @mysql_fetch_array($q_count);

                  print &#39;<card title="&#39;.$lang[&#39;who_online&#39;].&#39; (&#39;.$count[&#39;count(*)&#39;].&#39;)">&#39;.
                  &#39;

                  &#39;;

                  if($login[&#39;fsize&#39;] == "small") { $fsize1 = ""; $fsize2 = ""; }
                  elseif($login[&#39;fsize&#39;] == "big") { $fsize1 = "<big>"; $fsize2 = "</big>"; }
                  elseif($login[&#39;fsize&#39;] == "verysmall") { $fsize1 = "<small>"; $fsize2 = "</small>"; }
                  else { $fsize1 = ""; $fsize2 = ""; }
                  print $fsize1;

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

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

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

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

                  @mysql_close();
                  ob_end_flush();
                  ?>

                  Comment


                    #10
                    wot wud you do with the online.php

                    Comment


                      #11
                      thanks im gonna test something...

                      Comment


                        #12
                        hehe did you finish it man?

                        Comment

                        Working...
                        X