Jump to content

adrianle

Members
  • Posts

    59
  • Joined

  • Last visited

Everything posted by adrianle

  1. So.. any final thoughts on why this is happening for me?
  2. This sets the cookie: <?php setcookie ('April09', 'confirmed', time() + (60*60*48)); ?>
  3. I put this in and I ONLY see the chunk after the 'else' even if the cookie is set: <?PHP if (isset($_COOKIE["April09"])){ ?> <a href="p20090419show.php"><img src="archive.gif" width="35" height="48" border="0"></a> <?PHP } else { ?> Cookie not set <?PHP } ?>
  4. ok, I tried that too and all I see is the 'else' chunk of the code.. and I think I know why.. the script HTML I have in the first chunk has single ticks in it.. and it's interfering with the PHP perhaps...
  5. Believe it or not, I actually have that part! What I don't have is how to add in regular HTML code in the spaces in between the statements, marked in your comment by "// code"
  6. Hi all.. I need to figure out this little snippet right quick.. seems like it should be easy enough to do, but I'm flailing here... I need to have a blurb that checks to see if a cookie of a specific name is set, and if it is - then show a certain line of code (basic href link).. but if the cookie is NOT set, to show a different line of link code. HELP!?!!?
  7. Thanks for the help.. that defnitely helped with the address question.. now, how would I modify this so that if the email field is blank, then the page just skips that line and goes to the next value?
  8. I'm pulling a record from mySQL to display on a page. I need to write something so that if a particular field (say, Address2) is empty in the recordset, to hide the other wise displayed field value on the page. Help?
×
×
  • 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.