Right now, I have a login script...however I want a couple of things to show up when they login in. For example id like there email. Below you can see it as $email (i dont know what type of coding it needs to equal i was just playing around with it). When the user logs in i want the code to grab there e-mail. Do i need to put in the $query some code that makes it also grab the email? Dont know, first time using it, help would u be great
includes all fields of table users to the resultset. If you're sure about the needed fields you can limit it to only those, e.g. you're only interested in the fields email and id you can perform
What they do is insert a USERNAME and PASSWORD (http://www.beyond-reason.net/t), and when they log in I want it to display information from the database (ie. e-mail, name, etc) WHen I do what u told me 2 do, all I get is "Invalid Username/Password"
go to http://www.beyond-reason.net/t First box type illusiondev 2nd box type test. Press login. There you see it says "welcome illusiondev, to your contorl panel. You remail is (then a blank). I want there email to show up there. Now how do i edit the PHP code so that the EMAIL will show up there?>!
because you are including test.php and I don't know what you are doing to blank out the screen and start agian but you should just be able to echo out the value in email like so:
echo $row[email];
where ever you want it.
by including the test.php file it has access to all the variables in the page that included it.
Or you might want to do some thing like
<html>
<head>
<title>
</title>
</head>
<body>
<?
$email = $rowїemail];
echo("Welcome $username to your control panel. Your email is $email.");
?>
See the problem with that stuff, is that more then half of it is like foreign to me. It makes no sense. Thats why im always looking for help or tutorials that actually make it clear
Im still trying to learn PHP so im new and its making me really mad and stuff, and I thank you for making my day . Also thanks for the others for the help. Im going out today to get some books, hopefully I can learn more with those, maybe get some classes to. Once again, thanks scott.