Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Have you tried echoing out $admin and the session variables to ensure they are correct? Try to assign $admin = 9 to make sure your if statement works. You also don't need single quotes around integers.
  2. If someone has an email that long they're either a spammer or don't deserve to be stored in a database. Problem solved...
  3. Both...
  4. Awesome. I wasn't sure what you exactly were trying to do. So you were actually trying to make a dynamic signature with changing images...?
  5. Man, programmers are weird... (this includes myself)
  6. To answer your question, whichever you want/like. Why are you asking about forums when you don't even know how to start a website? Well what are you doing? Do you have any code? What's the problem?
  7. That's what I meant, you fixed it. Now I'm not overwhelmed with links. Looks a lot better!
  8. if (isset($_COOKIE["user"])) echo "Welcome " . $_COOKIE["user"] . "! "; $user = $_COOKIE["user"]; echo "Logout" else echo "Welcome guest! "; ?> If the user clicks logout it goes to the logout.php page where you can create your own logout logic (unset the session, turn him offline in your DB, w/e). To retrieve the user name just use $_GET['user']; Does this help?
  9. Why do you not have any structure for you links? I hope this wasn't your intent. It's impossible to find certain categories, topics, etc...
  10. 1) Why are you asking a Javascript question in the PHP Help section? 2) Why don't you use PHP to check the cookies? if (isset($_COOKIE["user"])) echo "Welcome " . $_COOKIE["user"] . "! "; else echo "Welcome guest! "; ?> Check out w3schools - cookies for a full explanation.
  11. *snip* edit by ober: That was truly unwarranted and unnecessary.
  12. Where are the images going to live? It's OK, we all start somewhere. Yeah... How will your code get executed and rendered without one?
  13. Shouldn't you know this before you take the exam?
  14. I amaze myself sometimes.
  15. Can't you just call it like this?
  16. I think you're looking for this. When you store the HTML in the DB you need to use this function. htmlspecialchars()
  17. That's what I was thinking... Good Job!
  18. You can learn a lot through trial and error
  19. Please don't give us that run-around. I did 1 search and clicked on 1 page and found this.
  20. ??? What was wrong (curious)? Echoing $sql obviously did not solve anything.
  21. Dude, stop short sentencing everything. No one knows what you're talking about... You need to elaborate and give more details.
  22. What is it supposed to do? Details please...
  23. Can you echo $sql to make sure the values are valid?
×
×
  • 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.