Jump to content

briant

Members
  • Posts

    50
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

briant's Achievements

Member

Member (2/5)

0

Reputation

  1. It worked, thanks so much. My example was kind of stupid since the numbers 456 should've been anything including letters. But I'll figure it out. Thanks for your example gevans. You've been more than helpful.
  2. Oh sorry, I should have looked through the other forums. Thank you for your help. I will try that out and let you know. I will try to read the tutorial as well. If it doesn't work out, I think I will just do a strstr function to get what I want. Thanks for your assistance.
  3. These regular expressions are so hard to understand. Anyone know of a really good tutorial? My problem is this. $content = "<h2>hi</h2> 123 (cats)<br> 456 (dogs)<br> 789 (fishes)"; I want to be able to match 456 because of dogs. Usually I can do it if the pattern is before but since this is after, how can I do it? PS: This is for content I have no control over, so I can't change the content.
  4. Beautiful, \r worked. I should have guessed \r is for return. Thanks Little Guy.
  5. I believe you'll need to create a .htaccess file. Allow it to redirect all /DIRECTORYID to /index.php?id=DIRECTORYID And exclude ID names such as images, etc. Google search htaccess and mod_rewrite as Michdd has mentioned.
  6. Hello, I have a field that contains values that I want to explode into an array but the values are on new lines. How would I explode it? I think \n is a return but that doesn't work. explode("\n", $field); Thanks in advance.
  7. Should be right. unlink("gallery".$itemurl);
  8. That doesn't look right. Watch your quotes. You need to have them paired. I need to know what your variable values are. If $itemurl equals to what the file name is including the file type (jpg, gif) then that is correct, except the extra quote. Please give me an example of what $itemurl will output.
  9. Actually, place it right after this line: $Result1 = mysql_query($insertSQL, $inteecom_ellen) or die(mysql_error()); That way, if someone refreshes the page, it won't send you an email every single time.
  10. It's very easy actually. You use the mail function. Put this inside your success page. $youremailaddress = 'email@address.com'; $subject = 'Someone just signed up.'; $message = 'Go check it out.'; mail($youremailaddress, $subject, $message);
  11. I believe what you are looking for is an unlink function. You place whatever the URL of the image is inside the unlink function. unlink(IMAGE-URL);
  12. I'm sure there's a function for this, I just don't know what it is. In the database I have a 13 character number. I want to add a dash after the 3rd number. 948-3750279853 I tried wordwrap, that kind worked but it added a dash after every 3rd. number_format is a no. I was going to do a substr twice but that's kind of sloppy. There must be a better way. Thanks for any help in advanced.
  13. Please be patient. There's so much going on. After the Go Advanced button, what is that bracket for? Also, with the bottom blotch. You don't need to make all that inside an echo. You should just end the php code and then start on with the html code. I am off to bed now.
  14. There are some echos you haven't closed with a semi colon. You don't have to echo every line of html/javascript you have. For print you do but the beauty of echo is you can have as many lines in side as you like.
  15. What you can do is remove all functions but just the first. And test it out one by one. If it works, go on to the next til you find the function with the problem. Just a suggestion, I'm no pro.
×
×
  • 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.