Jump to content

mnielsen

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

About mnielsen

  • Birthday 08/08/1991

Contact Methods

  • Website URL
    http://www.mnielsen.awardspace.com

Profile Information

  • Gender
    Male
  • Location
    New Zealand

mnielsen's Achievements

Member

Member (2/5)

0

Reputation

  1. Click on one of the question and note the '#' at the end of the link in the status bar of your browser. http://www.facebook.com/help.php?page=715
  2. Hi, I'm newish to PHP but I do have a very basic understanding. My question is, When using PHP for example on a standard php page and I want to expand the text to reveal more of the story, like on facebook when you click on a question mark the link has a '#' at the end. What is the code behind it. If you can understand that question some replies would be great. Thanks in advance for any help.
  3. Hi, I'm trying to create a menu for my site to change when the user is logged in or logged out. <?php if(isset($_SESSION['id']) && isset($_SESSION['sessionID'])){ echo "<a href=\"/profile.php?id=";?><?php echo $_SESSION['id'];?><?php "\">Profile</a> <a href=\"/account.php\">Account</a> <a href=\"/logout.php\">Logout</a>"; else{ echo "<a href=\"/index.php\">Home</a> <a href=\"/signUp.php\">Sign Up</a> <a href=\"/index.php\">Login</a>"; } ?> I've done it before but for the life of me I can't remember it. I need to break the php script so it just includes it as normal text then in my php page then start the script again. What my main objective is to have the profile link with the user id, e.g. /profile.php?id=000000001. Any help PLEASE!
  4. NVM, no thanks to anyones suggestions. I have to use the session_start(); in every page.
  5. Hi, I use sessions on my site to get the users id. I'm testing them to make sure they are been set correctly but I can only get there value on the login page which include the procLogin.php file. I thought it was a case of the session_start() needing to be in each page so I added it to the home page to see if it changed anything but no luck. Any suggestions please.
  6. hi, just trying to redirect my user when they login to there profile. I'm trying to do this with the follow but it's not owrking anymore. $profileID = $_SESSION['id']; header("Location: /profile.php?id=$profileID"); it worked the first few times but now its just given up all hope. Help please. Sorry rephrase. The redirection is working but it won't insert the id into the url.
  7. hi, just to confirm, when I'm deleting a session I do the following? unset($_SESSION['id']); I'm doing the above but my sessions wont delete.
  8. Hi, just working on my login system - again! On the login page I include the procLogin.php (attched below) file for the error handeling to work but I seems to be starting the session_start() before its needs to be kickedin. I've tried using a few other methods but didn't make any difference. Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/mnielsen.awardspace.com/index.php:7) in /home/www/mnielsen.awardspace.com/app/procLogin.php on line 14 Could anyone give some suggestions please. Thanks in advance for any help. [attachment deleted by admin]
  9. Youtube.com is seriously not functioning properly. I don't no what specifically but it's down! Ahhhhh...What am I going to do at work.
  10. Hi, I have written my login script but it wont get passed the second 'if' statement. I've tried a few ways to get it working but same result. I end back up at my index page with nothing. The file is attached. Please discard my last topic as it is now solved. Here;s the if statement. else if(confirmEmailPassword($email, $password) == 1 || confirmEmailPassword($email, $password) == 2){ header("Location: /index.php?LoginError=Invalid"); } And here's the function. function confirmEmailPassword($email, $password){ $sql = "SELECT `password` FROM `Accounts` WHERE `email` = '$email'"; $result = mysql_query($sql); if(!$result || (mysql_num_rows($result) < 1)){ return 1; } $dbarray = mysql_fetch_array($result); $dbarray['password'] = stripslashes($dbarray['password']); $password = stripslashes($password); if($password == $dbarray['password']){ return 0; }else{ return 2; } } The source code is attached. [attachment deleted by admin]
  11. kk, thanks I got a little further now but something else isn't quiet right. Dont go anywhere I'll need you help again =]
  12. Hi, I have written my login script but it wont get passed the first 'if' statement. I've tried a few ways to get it working but same result. I end back up at my index page with nothing. The file is attached. Here's the first if statement, please also take a look at the source code too. if(strlenCheck($email, $password) == 1 || 2){ header("Location: /index.php?LoginError=Required"); } Thanks in advance for any help. [attachment deleted by admin]
  13. Could someone please point me in the direction of a solid user management system, what I'm honestly after is a login script that I can base mine off. I'm not the greatest with PHP so I'm reaching out. Any suggestions?
  14. use the print function for each tag, e.g. print "<div class=\"text\"></div>". The advantage of this function is its use to output more complicated actions and messages apposed to echo which is generally used to out put a single line of text.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.