Jump to content

WebStyles

Members
  • Posts

    1,216
  • Joined

  • Last visited

Everything posted by WebStyles

  1. $contents = array();
  2. I know what you have, I saw your code before. $contents[] is an array that was not initialized.
  3. I think it was the creator of hotmail who said something like "if a project seems useful to me, maybe it's useful to 10 million people". If you have a good idea, people will follow, but a big percentage of success is how and where the product is marketed.
  4. means exactly what it says: It's a Notice, not an error, and it's saying that the variable contents ($contents) is undefined. Check where $contents is used and initialize it first to avoid this error. Apart from that, is the script working?
  5. according to the php manual: so if you're checking if they were deleted on the same page, they probably aren't yet. At the end of your logout.php, redirect to another page and check the cookie again with something like this: (just to be sure if it's deleting or not) foreach($_COOKIE as $k=>$v){ echo 'Cookie <b>'.$k.'</b> still exists with value: '.$v.'<br />'; }
  6. lol. Nobody 'speaka-da' english in London anymore, so I moved to Portugal.
  7. that's beautiful. (I'm english btw) not on the list: continue; should be please_go_on;
  8. or you could destroy all session variables except that one...
  9. yet nobody know what it is in Esperanto, which is supposed to be the f'ing universal language.
  10. ..oh, and they all have 6 sides... never seen one with 24.
  11. lol if you're wondering, in portuguese it's DADO and DADOS
  12. <?php echo $row['id']; ?> what do you mean "it doesnt like the line?" what error do you get?
  13. $_POST[noIdentity] should be $_POST['noIdentity']
  14. $email doesn't seem to be defined before this: if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "kill") && ($email != $target)) {
  15. but what exactly is the error you're getting in your error logs? have you echo'ed the POST vars to see if they're all reaching the page correctly?
  16. Very basic example <?php // value for each side (using colors and the 'standard' 6 sides) $values = array('BROWN','PINK','YELLOW','BLUE','RED','GREEN'); // random value $number = rand(0,sizeof($values)-1); // show result; echo $values[$number]; ?>
  17. so it's working ? or do you still have bugs?
  18. why not? he's using that so that he can have the same name and the values will be stored in arrays. It's perfectly good.
  19. they're optional parameters. the ones that don't have the square brackets are mandatory.
  20. to access any session variable, you must have session_start() at the top of the file, so login.php should be: <?php session_start(); if(isset($_SESSION['ls']) && isset($_SESSION['id']) && isset($_SESSION['user_name']) && isset($_SESSION['email']) ) { header('location:members.php'); die(" "); } ?> in this case, you need to remove the other session_start() you have in login, or it will throw a warning.
  21. Did you try my code? (changing the date to your var?) echo date("m/d/Y",strtotime($rsjobs['PostedOnDate']));
  22. I know what you mean, and I confess I've also used it the other way round in some cases. But I have also had problems because of that. I manage a lot of different systems, some of them built over 10 years ago, and I always have to go and check if 1 meant good/bad, etc... If I had used the same rule from the start, 15 years ago, for everything, it would have saved me a lot of time... That's why I though I would mention it.
  23. but you agree that 0 means false ? what if false was the "desired" outcome? you wouldn't use a 1 for false....
  24. echo date("m/d/Y",strtotime('2011-08-26 04:07:23'));
×
×
  • 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.