[quote author=Crayon Violent link=topic=113954.msg463512#msg463512 date=1162800071] okay so i went to the tutorial link you provided and they have user/pass authentication using a database. If you had followed the tutorial all you would have had to do is add more rows to your database table with usernames/passwords and the script would automatically be multi-user compatible. [/quote] Ive been following the tutorials closely. What tutorials does it explain how to add more rows to my database with usernames/passwords? I havent gone much further then part 4 of the tutorials because im wondering why I can only get one user name and password to work. [url=http://codegrrl.com/!/tutorials/view/part_4_passwording_individual_entries/]click here to view part 4[/url] Ok i added the code alpine posted to my journal.php page and nothing worked.. I then saved it as a seperate page called userpass.php with just this code in below and it didnt respond to the journal.php [url=http://www.webdesignhull.lincoln.ac.uk/jecgardner/mpr/display_blog.php]CLICK HERE TO SEE THE PAGE[/url] [quote author=alpine link=topic=113954.msg463495#msg463495 date=1162796419] [code] <?php $data = array("Harry"=>"7467hg","John"=>"84748hfd","Alice"=>"83rswg77"); $valid = 0; foreach($data as $user => $pass) { if($user == $_POST['username'] && $pass == $_POST['password']) { // We have a match $valid = 1; break; } } if($valid == 1) { // user stuff } else { // No match in login } ?> [/code] [/quote] Im still a bit lost please help to make things clearer!