hi,
i've a trouble with a php script:
[..]
$uname[1] = "test";
$upass[1] = "test";
$known_as[1] = "test user";
[..]
// check through all the users to see if they exist
for ($i = 1; $i <= $user_count; $i++) {
if ($uname[$i] == $username && $upass[$i] == $password){
$user_id=$i;
$welcome = $known_as[$i];
$user_exists = true;
}
[..]
Now is the main problem: if i call the $welcome var in the logged
page, it won't print the user name... why?
I use:
print($welcome);
and doesn't work...
but if I use:
print($known_as[1]);
it work, but only print the 1 name...
can u help me? tnx in advance! bye!
-Europe-