View Full Version : Alert System :D
J-Rap
01-19-2006, 01:19 PM
Right. Im thinking here. I want to use php and myswl for the alert system on my site....
I want to be able to type something in a textbox click alert and everyone on the index get it...
I thinking. If it read it from an sql table. And when new text was put in the text box the old text is deleted if u get me..
U know what i mean lol
I dunno if theres any easier way ;P
Well stuck lol
degsy
01-19-2006, 01:27 PM
That sounds ok. You want to create a page with an update form.
When the page is loaded it will query the database and populate a textarea with the text.
When submitted the data will update the database.
If it is more than just text, e.g. HTML, then you may want to checkout a Rich Text Editor to submit the HTML to the database.
J-Rap
01-19-2006, 01:38 PM
Yes. But i want it so they dont have to reload the page :P
degsy
01-19-2006, 01:43 PM
You can use javascript/ajax to refresh the content on a setTimeOut
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
http://www.sonofsofaman.com/hobbies/code/settimeout.asp
J-Rap
01-19-2006, 04:29 PM
Yeah. If possible can u give me a link to a tutorial
degsy
01-19-2006, 06:37 PM
tutorial for what?
I've posted links to Ajax and setTimeout examples.
J-Rap
01-19-2006, 07:09 PM
Wait... I just checked em. Not what i want... I want it so WHEN i click the alert button. the text in the textarea will alert everyone on the site. ONLY when i click the alert button ;D
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.