Putin suport pentru un script de login
Scris: 16-Apr-2006, 11:14:28
Salutare prieteni, daca ma puteti ajuta si pe mine cu un script.......am facut un script pentru inregistrare. cu o sectiune destinata membrilor....numai ca as vrea daca se poate sa fac cumva legatura cu fisierele pe care le am si sa imi afiseze intr-o alta pagina utilizatorii inregistrati, si daca se poate si cu data cand au fost inregistrati.
Va voi arata urmatoarele fisiere pe care le-am folosit, si daca ma puteti ajuta va-si fi recunoscator.
login.php
logout.php
members.php
register.php
config.php
create.php
list.php
Va multumesc super mult celor care au bunavointa sa ma ajute. Thanks a lot !
Va voi arata urmatoarele fisiere pe care le-am folosit, si daca ma puteti ajuta va-si fi recunoscator.
login.php
Cod: Selectaţi tot
<?php
ob_start();
include("config.php");
// connect to the mysql server
$link = mysql_connect($server, $db_user, $db_pass)
or die ("Could not connect to mysql because ".mysql_error());
// select the database
mysql_select_db($database)
or die ("Could not select database because ".mysql_error());
$match = "select id from $table where username = '".$_POST['username']."'
and password = '".$_POST['password']."';";
$qry = mysql_query($match)
or die ("Could not match data because ".mysql_error());
$num_rows = mysql_num_rows($qry);
if ($num_rows </a>
logout.php
Cod: Selectaţi tot
</a>
Cod: Selectaţi tot
<html>
<head>
<title>Sectiune membri</title>
</head>
<body>
</a>
<a href="logout.php">Delogheaza-te</a>
</body>
</html>
Cod: Selectaţi tot
</a>
Cod: Selectaţi tot
<php>
Cod: Selectaţi tot
<php>
Cod: Selectaţi tot
</li>