Gossamer Forum
Home : General : Perl Programming :

php for community login

Quote Reply
php for community login
i am trying to create a PHP login for community, i am hung up on the encrypted password in red. how do i phrase it so that it encryts correctly

<?php
include 'config.php';
include $inc_dir.'config_db.php';
$tpl_tbid = $_REQUEST['tbid'];
$user = $_REQUEST['user_name'];
$pass = $_REQUEST['user_pass'];
$sql_pass_get = "SELECT * FROM tb_notify WHERE login='$user'";
$user_info = mysql_fetch_array(mysql_query($sql_pass_get));
$login = $user_info['login'];
$password = $user_info['password'];
if ($user != $login || md5($pass) != $password)
{