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>