www.Hacking-Romania.com
Hacking, gaby hacker team, programe hack, radmin hack, hi5 hack, hack the west, hacking romania, hacking stuff, hacking tools, 1 hack, 1st hacks, 2 hack, 2 hacks, 3 hack, 3 hacks, 3000 hack, 3004 hack, 4 hack, 4 hacks, 55 hack, 6 hack, 6 hacks, 7 hack, 7 hacks, 9 hack, 9dragons hack, a hack, adventure quest hack, aim hack, alz hack, and hacks, best hack, blue hack, bots hack, bots hacks, buy hack, cabal online hack, chaos hacks, cheat engine hack, cheat hack, cheats and hacks, cheats hacks, city hack, club hack, combo hack, conquer hacks, conquer online hack, conquer online hacks, conquer speed hack, conquiztador hack, counter strike 1.6 hack, damage hack, de hack, download hack, download hack for, dragonfable hack, dragonfable hacks, drakkarious hack, exp hack, flyff hack, free hack, free hacks, game hack, game hacks, garena exp hack, gladiatus hack, gm hack, gold hack, gunz hack, hack, hack 5, hack a pc, hack a site, hack a website, hack blog, hack conquer, hack counter strike, hack crack, hack cs, hack cs 1.6, hack dvd, hack email, hack forum, hack hunter, hack id, hack info, hack it, hack mess, hack muonline, hack net, hack password, hack passwords, hack pc, hack pdf, hack programs, hack site, hack sites, hack soft, hack software, hack team, hack the game, hack this, hack website, hack windows xp, hack world, hack xp, hacked, hacking, hacking game, hacking programs, hacking software, hacking tutorials, hacks, how hack, how to hack, icon hack, last chaos hack, last chaos hacks, life hack, lineage 2 hack, lineage 2 hacks, linux hack, lvl hack, maplestory hacks, mobile hack, multi hack 3.0, mybrute hack, naruto arena hack, naruto arena hacks, one hit kill hack, online hacks, perfect world hacks, pool hack, programe hack, resolution hack, resource hack, roll hack, royal hack, silkroad hack, source hack, speed hack, speed hacks, super hack, the west hack, warrock hack, warrock hacks, web hack, xpango hack, lockerz forum
Lista Forumurilor Pe Tematici
www.Hacking-Romania.com | Reguli | Inregistrare | Login

POZE WWW.HACKING-ROMANIA.COM

Nu sunteti logat.
Nou pe simpatie:
maryya.manuela la Simpatie.ro
Femeie
22 ani
Dolj
cauta Barbat
26 - 50 ani
www.Hacking-Romania.com / Tutoriale PHP / cati vizitatori sunt On  
Autor
Mesaj Pagini: 1
948Y-H4(K3R
☻ADM!N☻

Inregistrat: acum 17 ani
Postari: 2716
Introducere

In acest tutorial va voi arata cum puteti obtine si afisa nr. vizitatorilor care sunt online pe site.



Cuprins

Pasul 1

Creeaza o baza de date numita "test".



Pasul 2

Creeaza un tabel numit "useri_online" in baza de date care ai creat-o mai devreme.

Code:

CREATE TABLE `useri_online` (

`session` char(100) NOT NULL default '',

`time` int(11) NOT NULL default '0'

) TYPE=MyISAM;

Pasul 3

Creeaza un fisier numit useri_online.php in care vei adauga urmatorul cod cu un editor de texte(ex. wordpad):

Code:

session_start();

$session=session_id();

$time=time();

$time_check=$time-600;



$host="localhost"; // host

$username=""; // username mysql

$password=""; // parola mysql

$db_name="test"; // nume baza de date

$tbl_name="useri_online"; // nume tabel baza de date



mysql_connect("$host", "$username", "$password")or die("Nu ma pot
conecta la baza de date,informatii gresite sau baza de date moarta!");

mysql_select_db("$db_name");



$sql="SELECT * FROM $tbl_name WHERE session='$session'";

$result=mysql_query($sql);



$count=mysql_num_rows($result);



if($count=="0"){

$sql1="INSERT INTO $tbl_name(session, time)VALUES('$session', '$time')";

$result1=mysql_query($sql1);

}

else {

"$sql2=UPDATE $tbl_name SET time='$time' WHERE session = '$session'";

$result2=mysql_query($sql2);

}



$sql3="SELECT * FROM $tbl_name";

$result3=mysql_query($sql3);



$count_user_online=mysql_num_rows($result3);



echo "Useri online : $count_user_online ";



$sql4="DELETE FROM $tbl_name WHERE time<$time_check";

$result4=mysql_query($sql4);



mysql_close();

?>



pus acum 16 ani
   
llama2115
INCEPATOR

Inregistrat: acum 16 ani
Postari: 46
thx

pus acum 16 ani
   
maria910
SPAMMER

Inregistrat: acum 15 ani
Postari: 4
da dar cum creiezi o baza de date.
Poti sa imi scri si mie codul?


pus acum 15 ani
   
Calyn
MEMBRU

Inregistrat: acum 16 ani
Postari: 184
iti trevuie un server pe care sa pui site-ul si apoi serveru-l respectiv sa aiba php si sa iti ofere mysql. sau daca vrei sa faci teste pe pc mysql si php sunt free si le poti dowloada. nu e complicat deloc sa faci o baza de date din moment ce ai acces la mysql pe un server sau pe pc-u tau. tabelul nici asa ... floare la nas.
deci iti trebuie un server, provider de hosting care sa iti ofere mysql daca ai site pe net. 


_______________________________________
Vrei sa faci bani pe net? acum e cel mai simplu ...


[url]http://www.onbux.com/?rh=39115a08c2f09f822e3724fda9d8522a[/url]

pus acum 14 ani
   
Pagini: 1  

Mergi la