View Full Version : My first script! Yay!
04-05-2003, 09:27 PM
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.
you're welcome. It indeed has a very good searchfunction (php.net)
shoutbox looks nice, but i'd clear the textboxes after submit.
04-05-2003, 10:49 PM
Might suggest also to put newest replies at top.
04-06-2003, 03:06 AM
Okey dokey spooks. :)..
Is there an equivelant of replace or regexp.replace in php? (should be).. What is it?
04-06-2003, 03:29 AM
Heh, php.net saves the day again! str_replace (I think).
04-06-2003, 04:06 AM
Look for preg_replace(), if you want to use regular expressions.
04-06-2003, 04:12 AM
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 :)
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.
Looks great! I think that you should use a textarea for the messages though, there isnt enought room to write.
04-06-2003, 07:18 AM
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. :)
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.