Jump to content

WebStyles

Members
  • Posts

    1,216
  • Joined

  • Last visited

Everything posted by WebStyles

  1. I know what you have, I saw your code before. $contents[] is an array that was not initialized.
  2. 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.
  3. 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?
  4. 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 />'; }
  5. lol. Nobody 'speaka-da' english in London anymore, so I moved to Portugal.
  6. that's beautiful. (I'm english btw) not on the list: continue; should be please_go_on;
  7. or you could destroy all session variables except that one...
  8. yet nobody know what it is in Esperanto, which is supposed to be the f'ing universal language.
  9. ..oh, and they all have 6 sides... never seen one with 24.
  10. lol if you're wondering, in portuguese it's DADO and DADOS
  11. <?php echo $row['id']; ?> what do you mean "it doesnt like the line?" what error do you get?
  12. $_POST[noIdentity] should be $_POST['noIdentity']
  13. $email doesn't seem to be defined before this: if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "kill") && ($email != $target)) {
  14. 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?
  15. 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]; ?>
  16. 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.
  17. they're optional parameters. the ones that don't have the square brackets are mandatory.
  18. 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.
  19. Did you try my code? (changing the date to your var?) echo date("m/d/Y",strtotime($rsjobs['PostedOnDate']));
  20. 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.
  21. but you agree that 0 means false ? what if false was the "desired" outcome? you wouldn't use a 1 for false....
  22. 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.