Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. Do you have session_start() at the top of the page? Try this and see where you get: <?php if (isset($_SESSION['myemail'])){   echo 'test1'; } else{   echo 'test2'; } ?>
  2. Your second echo is still messed up though. Look at the post, see where the colors go all funky? You need to escape quotes.
  3. Idea! On page load, generate the timestamp and put it in an array in the session. Then on the processing page, check how many values are in there. This will tell you if they have more than one page open. If they do, don't process it. At the end of the processing, emtpy that array. so on the bank page: $times = $_SESSION['times']; $times[] = time(); $_SESSION['times'] = $times; on processing: if(count($_SESSION['times'] > 1)){   // Too Many Pages! }else{ //okay! }
  4. $getinfo= "SELECT ip,status FROM users (`id`, `ip`, `voted`,`status`) WHERE ip="userip" AND status="normal""; you exit the string, see the color change in your code? $getinfo= "SELECT ip,status FROM users (`id`, `ip`, `voted`,`status`) WHERE ip='userip' AND status='normal'";
  5. $result = mysql_query($query) OR die(mysql_error());
  6. http://www.phpfreaks.com/forums/index.php/topic,58799.0.html
  7. That's kind of overkill. Plus md5 can collide.
  8. or use the current timestamp. That's what a legacy program I once had to maintain did. Seriously, no one will care but you...
  9. Copy, Paste, Highlight and hit the # button.
  10. No, I can access nested objects fine. do print_r($a); What do you see?
  11. If you already have the value, instead of passing it via another form, simply keep it in the session and access it that way when you process the form.
  12. To have all of them in one single var would be more like $_SESSION['post'] = $_POST;
  13. Project's way is a good one, IMO. That's how I do it.
  14. My mom's dead, you jerk! *runs off crying* I didn't start crap dude. I sent you a PM pointing out that your sentences make no sense. Perhaps if you took the time to write coherently, you'd get more help, since people would understand what the heck you're talking about. Then you posted here that I was insulting you, so I figured I might as well, since you were already insulted.
  15. You never close the function, or call it.
  16. Would you rather I say it here? Okay. I simply pointed out that for someone who claims to be a writer, which you do on your site, you make a lot of grammatical mistakes and spelling errors. You're making very fraudulent claims on your site about your level of expertise and I think it's pretty ridiculous. I would never hire someone who can't be bothered to fix simple mistakes such as these, and I'm amazed you've taken advantage of your "clients" the way you apparently have. "In the world of web development, there are a lot of web developers out there who are not what they seem. They do bad practices, or have bad habits, and don't treat there clients right. I am a freelance web developer, that likes handling all your web development needs, and try my hardest to satisfy everything you might need done, in a timely, and professional manner." This alone should tell your visitors you ARE one of those developers.
  17. That's called a watermark. Create a gif or png image with transparency and overlay it, or just write the text on it. There are plenty of tutorials for that.
  18. Post the new code, I don't think you changed it correctly to reflect what was posted.
  19. When they login, set their username in the session, then check to see if the session variable exists. $_SESSION['username'] = $username; then if($_SESSION['username'])
  20. So use the function chronister posted and use 'root' as username and '' as password.
  21. Why are you passing it $username in the first place? Take that out. function GetUsername() { }
  22. In phpmyadmin, there is a config file which has your username and password. If you never set those, your username is root, no password. Is this on a hosted server, or your own? If it's hosted, they set the config file with your username and password and can supply you with them.
  23. You really should look at what you've written before hitting that Post button - perhaps more of what you say would make sense if you proofread it. Then you'd catch all the misspellings, words and letters missing, and caps lock. If you actually care about what you're saying, you can take two seconds to say it right.
×
×
  • 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.