Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post

    My first script! Yay!

    PHP is so awesome, I am getting used to it already!

    Here is my first script: http://mhtml.ithium.net
    My very own shoutbox.

    Also php.net is awesome thanks for the link, I got stuck so many times but it was easy to look up the syntax.

    http://www.spoono.com has a shout box tutorial but it didn't work, so I had to learn myself. I recommend the page below as a guide to learning how to use mysql with php.

    http://www.freewebmasterhelp.com/tutorials/phpmysql/3
    Omnis mico antequam dominus Spookster!

  • #2
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you're welcome. It indeed has a very good searchfunction (php.net)

    shoutbox looks nice, but i'd clear the textboxes after submit.

  • #3
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Might suggest also to put newest replies at top.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #4
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Okey dokey spooks. ..

    Is there an equivelant of replace or regexp.replace in php? (should be).. What is it?
    Omnis mico antequam dominus Spookster!

  • #5
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Heh, php.net saves the day again! str_replace (I think).
    Omnis mico antequam dominus Spookster!

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Look for preg_replace(), if you want to use regular expressions.

  • #7
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Ahh, so that's what that is. I saw on the str_replace() page the comments were talking about how much faster str_replace() is.

    But I figured out str_replace already! check out my new emoticons.. hehe

    http://mhtml.ithium.net

    Also the message goes back to the original text when you submit, and that is validated against so you can't just enter that in.
    Omnis mico antequam dominus Spookster!

  • #8
    Regular Coder
    Join Date
    Jan 2003
    Posts
    400
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Looks great! I think that you should use a textarea for the messages though, there isnt enought room to write.

  • #9
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Well, in a few minutes you won't be allowed to enter more than say 30 characters. It's only supposed to be a small message thingy.

    I will add a bigger guest book style on to my site in half an hour.
    Omnis mico antequam dominus Spookster!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •