script from php 4.0 to 4.3
Posted: Thu Mar 18, 2004 3:36 am
hi,
I am new in PHP, and trying to understand something...
i've this script that works with php ver. 4.0, but not with 4.3(installed on my pc).
session.php:
how i've to do to make it works?
(see $username and $password....)
thanks to all
I am new in PHP, and trying to understand something...
i've this script that works with php ver. 4.0, but not with 4.3(installed on my pc).
session.php:
Code: Select all
<?
session_start();
//dbconnect();
if (!isset($verified_user)) $verified_user='';
if ($action=='login') {
$result=mysql_query("SELECT id_utente FROM utenti WHERE username='{$username}' AND password='{$password}'");
if (mysql_num_rows($result)>0) list($verified_user)=mysql_fetch_row($result);
else $verified_user='';
$_SESSIONї"verified_user"];
$_SESSIONї"id_user"]=$verified_user;
if ($verified_user == '') header("location: error.htm"); }
?>(see $username and $password....)
thanks to all