« Previous entry | Next entry » Browse > Snippets

Skip to comments (68) simple shoutbox
Posted by Erik on Jan 02 2006 @ 13:18  :: 17066 unique visits

A simple shoutbox using XMLHTTPRequests.


example here


These scripts are used:
javascript to php function call.
mysql functions.


the html:
CODE: HTML
<form onsubmit="shout(); return false">
  <textarea id="shoutbox" readonly="readonly"></textarea><br />
  <input type="text" id="shouttext" size="100" maxlength="100" />
  <input type="submit" value="&nbsp;shout&nbsp;" id="shoutbutton" />
</form>

<script type="text/javascript" src="fn.js"></script>
<script type="text/javascript" src="shoutbox.js"></script>


shoutbox.js
CODE: JAVASCRIPT
var shoutbox    = document.getElementById('shoutbox');
var shouttext   = document.getElementById('shouttext');
var shoutbutton = document.getElementById('shoutbutton');
var lastupdate  = 0;
var updatetime  = 1000; // update every 1 second
var name        = null;

// this file will handle the fn calls
fn_url   = 'shoutbox.php';
fn_debug = false;

// make the width of the shoutbox equal to the width of the input field + the button
shoutbox.style.width  = parseInt(shouttext.offsetWidth) +
                        parseInt(shoutbutton.offsetWidth) + 'px';
shoutbox.style.height = '200px';

shoutbox.value = 'click here to join...';
setTimeout(update, 10);


shouttext.onfocus = function() {
  if (name == null) {
    name = prompt('enter your display name', '');
   
    if (name == null) {
      shouttext.blur();
    } else {
      fn_call('event', false, name, 'joined the shoutbox');
   
      shouttext.value = '';
      shouttext.focus();
    }
  }
}


window.onunload = function() {
  if (name != null) {
    fn_url = 'shoutbox.php';
    fn_call('event', false, name, 'left the shoutbox');

    // withoud this the fn_call will fail
    alert('leaving shoutbox...');
  }
}


function shout() {
  var str = shouttext.value;
 
  if (str != '') {
 
    if (str == '/clear') {
      shoutbox.value = '';
    }
   
    else if ((str.indexOf('/name') == 0) ||
             (str.indexOf('/nick') == 0)) {
      var oldname = name;
      name = prompt('enter your display name', '');

      if (name == null) {
        name = oldname;
      } else if (name != oldname) {
        fn_call('event', false, oldname, 'changed his name to: '+name);
      }
    }
   
    else {
      fn_call('shout', false, name, shouttext.value);

      // stop people from speaking to fast
      shoutbutton.disabled = true;
      setTimeout('shoutbutton.disabled = false;', 500);
    }
   
    shouttext.value = '';
  }
}


function updateresult(arr) {
  lastupdate = arr[0];
  arr        = arr[1];

  for (var i = arr.length - 1; i >= 0; i--) {
    shoutbox.value += '\n' + arr[i];
  }

  // change the update time if there is nothing heapening
  if (arr.length == 0) {
    updatetime += (updatetime > 5000) ? 0 : 500; // max 5 sec
  } else {
    // scroll to the bottom
    shoutbox.scrollTop = shoutbox.scrollHeight * 25; // IE fix
    updatetime = 1000;
  }

  setTimeout(update, updatetime);
}


function update() {
  fn_call('update', updateresult, lastupdate);
}


shoutbox.php
CODE: PHP
<?

include './fn.inc.php';


// make sure this is a single non empty line
function validate($str) {
  if (strpos($str, "\n") !== false) {
    die();
  }

  $str = trim($str);

  if (empty($str)) {
    die();
  }

  return $str;
}


function insertline($name, $str, $type) {
  $name = validate($name);
  $str  = validate($str);
 
  include './mysql.inc.php';

  // I don't use the mysql UNIX_TIMESTAMP() function because our web and sql server
  // don't alwais have the exsact same time which would make you miss some messages or get some twice.
  mysql_do_query('INSERT INTO shoutbox (time, name, type, text) VALUES('.time().', "'.$name.'", '.$type.', "'.$str.'")');
}


function fn_event($name, $str) {
  insertline($name, $str, 1);
}


function fn_shout($name, $str) {
  insertline($name, $str, 0);
}


function fn_update($last) {
  include './mysql.inc.php';

  $query = "
    SELECT id, time, name, type, text
    FROM shoutbox
    WHERE id > $last
    ORDER BY time DESC
    LIMIT 100
   "
;
  $arr = mysql_rows($query);
 
  foreach ($arr as &$row) {
    $last = max($last, $row[0]);

    $n = '['.date('h:i:s', $row[1]).'] ';
   
    if ($row[3] == 0) {
      $row = $n.'<'.$row[2].'> '.$row[4];
    } else {
      $row = $n.$row[2].' '.$row[4];
    }
  }

  return array($last, $arr);
}

?>


mysql table layout
CODE: SQL
CREATE TABLE shoutbox (
  id   int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  time int(10) UNSIGNED NOT NULL DEFAULT '0',
  name varchar(16)      NOT NULL DEFAULT '',
  type int(10) UNSIGNED NOT NULL DEFAULT '0',
  text varchar(100)     NOT NULL DEFAULT '',
  PRIMARY KEY (id)
) TYPE=MyISAM;

68 comments posted so far
Add your own »

1. On Jan 23 2006 @ 07:06 Saivert wrote:

It might even be possible to create an AJAX based IRC client if you code a PHP backend that links with a IRC bot.

2. On Jan 26 2006 @ 03:06 guest wrote:

ssxsxsxsx

3. On Jan 30 2006 @ 23:28 guest wrote:

hope this works

4. On Feb 02 2006 @ 20:42 aNieto2k wrote:

I have a problem with arr variable.

Error: arr has no properties
Archivo de origen: http://localhost/CHAT/shoutbox.js
Línea: 86

5. On Mar 01 2006 @ 20:36 guest wrote:

what's up with "include './mysql.inc.php';" and "include './fn.inc.php';" ?

6. On Mar 01 2006 @ 23:13 Erik wrote:

fn.inc.php is for javascript to php function calls and mysql.inc.php contains some usefull database functions and connects to the mysql database.

7. On Mar 15 2006 @ 05:05 guest wrote:

wow kool shoutbox :)

8. On Mar 15 2006 @ 17:30 guest wrote:

this is awesome!

9. On Apr 11 2006 @ 20:05 guest wrote:

Do I have to create the 2 files and put them in a folder? add tables to the MYsql DB? and then add the HTML text to the Index page?

OR Is there some way to add everything in the index page?

thanks

10. On Apr 12 2006 @ 10:18 guest wrote:

cool

11. On Apr 13 2006 @ 22:58 TestUser wrote:

wastes too much space imo

12. On Apr 26 2006 @ 06:30 Ralph wrote:

Im very disappointed. This script seems excellent but this tutorial is horrible. It worked after I made some adjustments in the script but its spitting out incorrect content for the ID, TIME, TYPE (look for yourself http://www.project07.com/shout).

please help me out or redo this tutorial

13. On Apr 27 2006 @ 20:11 Unadrien wrote:

Without any knowledges at all within Ajax, mySQL, php and javascript I made this work! Im impressed that i solved it without any big problems. I borrowed a friends server wich could handle php and mySQL, there I also loaded up the database. Thank you for these scripts!

14. On Jun 29 2006 @ 15:18 guest wrote:

:-) good in deed

15. On Jul 11 2006 @ 02:54 Prism wrote:

Hey, havin some problems with this system.

I cant get it to display the chat or save it to the database, followed your guide to the letter.

If you wana have a look, http://shite.prism27.net/shout

cheers,

- Prism

16. On Jul 11 2006 @ 03:08 Prism wrote:

Kinda found the problem. This is an extract from my error_log file:

PHP Parse error:  parse error, unexpected '&', expecting T_VARIABLE or '$' in /home/.../shite/shout/shoutbox.php on line 56

17. On Jul 11 2006 @ 03:11 Prism wrote:

Sorry to spam, found the error.

Change:
CODE: PHP
function fn_update($last) {
  include './mysql.inc.php';

  $query = "
    SELECT id, time, name, type, text
    FROM shoutbox
    WHERE id > $last
    ORDER BY time DESC
    LIMIT 100
   "
;
  $arr = mysql_rows($query);
 
  foreach ($arr as &$row) {
    $last = max($last, $row[0]);

    $n = '['.date('h:i:s', $row[1]).'] ';
   
    if ($row[3] == 0) {
      $row = $n.'<'.$row[2].'> '.$row[4];
    } else {
      $row = $n.$row[2].' '.$row[4];
    }
  }

  return array($last, $arr);
}

?>


to
CODE: PHP
function fn_update($last) {
  include './mysql.inc.php';

  $query = "
    SELECT id, time, name, type, text
    FROM shoutbox
    WHERE id > $last
    ORDER BY time DESC
    LIMIT 100
   "
;
  $arr = mysql_rows($query);
 
  foreach ($arr as $row) {
    $last = max($last, $row[0]);

    $n = '['.date('h:i:s', $row[1]).'] ';
   
    if ($row[3] == 0) {
      $row = $n.'<'.$row[2].'> '.$row[4];
    } else {
      $row = $n.$row[2].' '.$row[4];
    }
  }

  return array($last, $arr);
}

?>


Sorry for the triple post!

18. On Jul 26 2006 @ 16:44 guest wrote:

so for dreamweaver what is the code for the shoutbox?

19. On Aug 07 2006 @ 12:27 Deepdrone wrote:

^There is no code for Dreamweaver. Use plain editor instead.

And thanks to the Labs for the utility!

20. On Aug 17 2006 @ 19:46 guest wrote:

me da este error, alguien ayudeme porfavor.


PHP Parse error:  parse error, unexpected '&', expecting T_VARIABLE or '$' in /home/.../shite/shout/shoutbox.php on line 56

21. On Aug 22 2006 @ 06:49 guest wrote:

test

22. On Sep 02 2006 @ 21:26 ricky wrote:

have a look at my site...
www.jaat-union.uni.cc
which type code do i use for it...
i used html...
the shoutbox appears to my forum...but its not showing shouts...

23. On Jun 28 2007 @ 11:26 guest wrote:

test

24. On Aug 09 2007 @ 12:55 guest wrote:

aaaa

25. On Sep 04 2007 @ 08:01 Bobo wrote:

Giggity!

26. On Sep 16 2007 @ 23:15 guest wrote:

mooo

27. On Sep 30 2007 @ 01:32 guest wrote:

dezrt.co.nr

28. On Oct 30 2007 @ 02:53 guest wrote:

s.a

29. On Nov 14 2007 @ 08:02 guest wrote:

www.gevrip.5u.com     free stuff and goods

30. On Nov 14 2007 @ 20:52 Whinnie26 wrote:

hi,
can you use the javascript code on dreamweaver(p.s i'm only 12)

31. On Feb 23 2008 @ 16:32 bbb wrote:

there seems to be a javascript error preventing the code to work.. does somebody know how to solve that?

32. On Feb 23 2008 @ 16:33 bbb wrote:

what i forgot in the comment above: to see what i mean just click on "show example" above.. it doesn't work in any of my browsers..

33. On Jun 29 2008 @ 18:06 guest wrote:

gbhgdf

34. On Jul 06 2008 @ 17:00 DrunkenDragon wrote:

The shout didn't show up

Drunken Dragon

35. On Jul 06 2008 @ 17:00 Drunkendragon wrote:

Uhh... even comment didn't show up http://drunkendragon.cn

36. On Sep 14 2008 @ 13:58 guest wrote:

where do i put the mysql table layout??

37. On Oct 26 2008 @ 15:07 eusouobob wrote:

<META HTTP-EQUIV=Refresh CONTENT="10; URL=enteredtopichere.php">

39. On Jan 10 2009 @ 09:10 battery wrote:

http://www.batteryfast.com/
http://www.batteryfast.co.uk/

40. On Feb 23 2009 @ 11:51 lol wrote:

pricks.

41. On Feb 28 2009 @ 16:02 gabo wrote:

please in spanish

42. On Mar 02 2009 @ 07:46 guest wrote:

When the wolf wow gold finally found the hole Buy Wow Gold in the chimney he Cheap WoW Gold crawled down and KERSPLASH right into that kettle of water cheapest wow gold and that was the end of his troubles with the big bad wolf.
The next day the wow gold cheap little pig invited his mother over . She said "You see it is just as I told you. The way to get along in the world is to do things as well as you can." Fortunately for that world of warcraft gold little pig, he learned that lesson. And he just lived happily ever after!  buy wow gold .

43. On Mar 09 2009 @ 09:56 guest wrote:

Weaknesses of world of warcraft gold the client-server model used by World of Warcraft have been wow power levelingexploited in order to crash the cluster of servers that make up a realm. Exploits also include characters being able to instantly change location or teleport. The situation Cheap Wow Goldbecame worse when trying to coordinate activities across a number of players cheapest wow goldor guilds on the same realm.World of Warcraft Lead Producer, stated that new realms would be introduced to relieve the burden on existing ones. Existing realms would be upgraded.

Although the game wow gold follows a similar model to others in the genreand was noted for having buy cheap wow gold many familiar concepts from roleplaying games, the new approaches wow gold cheapto reduce pauses between game encounters was well liked. At various times, World of Warcraft players have experienced problems with connecting to and logging in to wow gold for salethe game. Sudden server crashes that would force realms offline also occurred.

44. On Mar 11 2009 @ 03:42 notebook wrote:

cool

http://www.notebook-batteries.org/acer-lcbtp03003.htm    ACER LCBTP03003
               http://www.notebook-batteries.org/acer-aspire-1300-series.htm     ACER Aspire 1300 Battery
               http://www.notebook-batteries.org/acer-aspire-1680-series.htm    ACER Aspire 1680 Battery
               http://www.notebook-batteries.org/acer-aspire-3000.htm    ACER Aspire 3000  Battery
               http://www.notebook-batteries.org/acer-travelmate-4000-series.htm     Travelmate 4000 Battery
               http://www.notebook-batteries.org/acer-travelmate-4600.htm    Travelmate 4600 Battery

45. On Mar 15 2009 @ 16:00 guest wrote:

Our wholesale replica handbags  is one of the best Replica Purses  wholesaler.we are selling  Louis vuitton replica ,Chanel Replica ,Gucci Replica ,The handbags are Hermes Birkin ,Hermes Kelly ,Chanel 2.55 bag ,Louis vuitton replica Speedy 30 ,Louis vuitton Damier Canvas ,and we selling high and top Chanel wallet ,Louis Vuitton wallet ,Hermes belt . Choosing Replica handbags  to perfect your lifestyle: Business Opportunities.

Jadeshow’s replica Tiffany Jewelry  and Replica Bvlgari Jewelery  looks just like the real thing. Why pay more for a single piece of Tiffany Replica  jewelry,Bvlgari Replica Jewelry  when you can treat yourself to a number of replica pieces for the same price or less? Be simply spectacular with contemporary Tiffany-inspired jewelry!Jadwshow delights in the opportunity to offer our customers fine Tiffany Bracelets , Tiffany Necklaces , Tiffany Earrings , Tiffany Rings , Tiffany Bangles ,Gucci jewelry replica , Chanel wallet  and Louis Vuitton wallet
all at remarkably low prices.

We are top designer wholesale Replica handbags ,Louis vuitton replica  ,replica jewelry ,Bvlgari Replica ,Gucci Replica jewelry ,Swarovski Crystal , We offer a wide variety of high quality Tiffany inspired jewelry at very low prices. Gucci Necklaces ,Gucci Bracelets , Gucci rings , Gucci Earrings , Links Jewelry ,Chanel Rings  and Tiffany replica , Cartier Jewelry   more. Free shipping with any purchase over 5 items.Replica Louis Vuitton chanel replica handbag



We are the best and top Replica handbag  ,replica bags ,Replica watches  wholesaler in china,Our products is Replica louis vuitton handbags ,Chanel replica handbags ,Gucci replica handbags ,Miu Miu handbag  and we are selling Replica wallet ,best Louis Vuitton wallet ,Chanel wallet  replica,and sell Rolex replica watches ,Omega replica watches .Hermes replica bag

46. On Mar 16 2009 @ 11:09 guest wrote:

To see what i mean just click on "show example" above.. it doesn't work in any of my browsers..does somebody know how to solve that?
tower defense

47. On Mar 18 2009 @ 03:53 notebook wrote:

http://www.laptopbatterymart.co.uk/hpzt3000battery.htm hp zt3000 battery
http://www.laptopbatterymart.co.uk/delld600battery.htm dell d600 battery
http://www.laptopbatterymart.co.uk/toshiba1800battery.htm toshiba 1800 battery
http://www.laptopbatterymart.co.uk/dell6000battery.htm dell inspiron 6000 battery
http://www.laptopbatterymart.co.uk/compaq319411-001battery.htm compaq 319411-001 battery
http://www.laptopbatterymart.co.uk/dellc600battery.htm dell c600 battery
http://www.laptopbatterymart.co.uk/hpdv1000dv4000battery.htm hp dv1000 battery
http://www.laptopbatterymart.co.uk/ibm380battery.htm ibm 380 battery

48. On Mar 18 2009 @ 09:41 guest wrote:

Weaknesses of world of warcraft gold the client-server model used by World of Warcraft have been wow power levelingexploited in order to crash the cluster of servers that wow8goldmake up a realm. Exploits also include characters being able to instantly Cheapest Wow Goldchange location or teleport. The situation became worse when cheap wow goldtrying to coordinate activities across a number of players or guilds on the same realm.World of Warcraft Lead Producer, stated that new realms would be introduced to relieve warhammer gold the burden on existing ones. Existing realms would be upgraded.

Although the game wow gold follows a similar model to others in the genreand was noted for having wow gold cheap many familiar concepts from roleplaying games, the new approaches gold4powerto reduce pauses between game encounters was well liked. At various times, World of Warcraft players have experienced problems with connecting to and logging in to wow gold for salethe game. Sudden server crashes that would force realms offline also occurred.

49. On Apr 02 2009 @ 13:30 Certifications wrote:

This is really simple to use and its really simple shoutbox i must use it after my 350-030 Cisco certifications exam which i had prepared form best Cisco services provider as I have already passed my 640-553 IINS Implementing Cisco IOS Network Security exam which is associated with the CCNA along with the 220-602 Exam which is one of two exams required to achieve A+ 2006 certification as an IT Technician certification from world most recognized IT Training services provider with high score as i will be free from all this i must try that code to php.

50. On Apr 14 2009 @ 08:37 guest wrote:

&#27743;&#21407;&#36947;&#21270;&#31911;&#21697;&#12362;&#35430;&#12375;&#12475;&#12483;&#12488;
&#12488;&#12522;&#12491;&#12486;&#12451;&#12540;&#12521;&#12452;&#12531;
&#12502;&#12525;&#12540;&#12489;&#12452;&#12458;&#12531;&#12288;&#36890;&#36009;
&#12454;&#12451;&#12288;&#12450;&#12500;&#12471;&#12450;
&#19977;&#19971;&#30707;&#40568;
&#12490;&#12494;&#12450;&#12463;&#12450; &#12490;&#12481;&#12517;&#12521;&#12523;&#12477;&#12540;&#12503;
&#12458;&#12501;&#12451;&#12473;&#23478;&#20855; &#36890;&#36009;
&#12522;&#12496;&#12452;&#12479;&#12521;&#12483;&#12471;&#12517;
&#12505;&#12450;&#12511;&#12493;&#12521;&#12523;:baremineral
&#12450;&#12531;&#12503;&#12523;&#12540;&#12523;
&#12450;&#12473;&#12479;&#12522;&#12501;&#12488;
&#33590;&#12398;&#12375;&#12378;&#12367;&#12362;&#35430;&#12375;&#12475;&#12483;&#12488;
&#33590;&#12398;&#12375;&#12378;&#12367;&#24736;&#39321;&#12398;&#30707;&#40568;
&#33590;&#12398;&#12375;&#12378;&#12367;&#30707;&#40568;
&#33590;&#12398;&#12375;&#12378;&#12367;
&#12450;&#12512;&#12521;&#12456;&#12483;&#12475;&#12531;&#12473;
&#12524;&#12487;&#12451;&#12540;&#12473;&#12503;&#12456;&#12521;&#12522;&#12450;
&#12524;&#12487;&#12451;&#12540;&#12473;&#12503;&#12456;&#12521;&#12522;&#12450;
&#12512;&#12481;&#12515;&#12481;&#12515;
&#12464;&#12521;&#12464;&#12521;
&#20108;&#37325;&#12414;&#12406;&#12383;&#12395;&#12377;&#12427;(&#12394;&#12427;&#65289;&#26041;&#27861;
&#12475;&#12523;&#12502;&#12521;&#12452;&#12488;
&#12475;&#12523;&#12502;&#12521;&#12452;&#12488;
&#12522;&#12496;&#12452;&#12479;&#12521;&#12483;&#12471;&#12517;
&#12501;&#12455;&#12502;&#12522;&#12490;(&#12501;&#12455;&#12532;&#12522;&#12490;&#65289;&#12472;&#12455;&#12523;&#12497;&#12483;&#12463;
&#12414;&#12388;&#12370;&#12456;&#12463;&#12473;&#12486;&#12300;&#12450;&#12452;&#12521;&#12483;&#12471;&#12517;&#12301;&#36890;&#36009;
&#12450;&#12452;&#12507;&#12540;&#12531;
&#12487;&#12451;&#12475;&#12531;&#12471;&#12450;&#65288;decencia)
&#12463;&#12522;&#12450;&#12472;&#12540;&#12494;
&#12500;&#12517;&#12450;&#12495;&#12540;&#12496;&#12523;&#12504;&#12450;&#12459;&#12521;&#12540;
&#12456;&#12463;&#12473;&#12508;&#12540;&#12486; &#22899;&#20778;&#32908;
&#12450;&#12473;&#12459;&#12288;&#12501;&#12484;&#12540;&#12523;&#12488;&#12521;&#12452;&#12450;&#12523;

52. On Apr 15 2009 @ 11:45 guest wrote:

Nice method to create [C#] new language features in C# 3.0. I am waiting of next C#, version 3.0 because I am needy of it and I like so much your typed Examples. Anyhow, there is need to say more but you know I in san diego flight by this  us airway now I am using this luxury vacations. Your article is giving us great information. Thanks

53. On May 05 2009 @ 19:03 guest wrote:

sohbet sohbet sohbet radyo okey oyna chat sohbet mirc yükle

54. On May 11 2009 @ 11:41 guest wrote:

QIXINYAN


Way to teach a dog infected with love and enjoyment of the people around them is dog training. Not all the people who keep the dog know how to train a puppy, but who often find it impossible to carry out dog obedience training , people who have a different feel that they do so. Although some people will tend to the field of veterinary medicine, other people will choose more specific career dog. Perhaps the most popular dog-centric professional area is that dog training.
Police dog training is a great way for those who love the dogs, to help them use and dissemination of information. One important thing to remember is that the dog trainer can not only teach dog tricks and working dogs and their masters. In fact, owners tend to play a bigger roll than the dogs training process.
Some people choose to learn some dog training tips from an experienced coach or a veterinary surgeon of similar projects in the apprenticeship. This is often useful, because many of these puppies training experience in the field and constant practice. Customers will often choose a coach approved no more than one certification. Other routes may be the next dog learning how to train a puppy through the animal science program behavior.

Do you know how to lose weight? No matter how you do, do not skip breakfast. People who began the day a good healthy breakfast does not have loss weight diet throughout the day than those who do not eat breakfast. Or, if you prefer to drink your breakfast to reach weight loss, fruit juice is a good choice. All you need to do is the integration and go! Super simple!
In addition, how to lose pounds? Plan your meals so you eat every 3-4 hours, about 5-6 times a day. Do you want to ensure that your last meal is 3-4 hours, and then go to bed. It seems to eat more frequently in the first strange, but studies ways to lose weight by the books and internet, you’ll not only lose pounds success, but also have the energy level of the day.

Are you annoying with belly fat? I am sure you hear that sit-ups are one of the best belly fat exercises. How to lose belly fat? There are not only belly fat exercises, but have belly fat diet. Although it is entirely correct sit-ups will strengthen the abdominal muscles and make you more powerful in this regard, you may get rid of belly fat because you’re fat to improve the muscle to hold better, which in fact did not lose belly fat itself.
The key to lose belly fat is actually quite simple. Therefore, these two key points, first of all to take action to belly fat exercises, second, have belly fat diet every day. Do these, you will lose belly fat!

As a child, you can find kids jobs to get money. If not, maybe you are considering how to make children work in additional funds. jobs for 15 year olds are so many. However, we know that you will not find a real job; you just need a working pocket money. Finding jobs for 16 year olds is not a difficult task.

To make money online, first you need to make necessary preparations. In any field or industry you need in all walks of life through appropriate channels to meet their own, in order to succeed. Can you imagine how to starting your own business? It would be a good way to Make Money on the Internet and move forward at full speed is going to just be disastrous.
In the network marketing, you can set up shop online, start flower shop, or you can start carpet cleaning business.In my opinion, there are also other popular ways to make money,for instance, So starting a laundromat business at home, another way is to manage furniture making business at home.

55. On May 23 2009 @ 12:01 guess wrote:

When the wolf wow gold finally found the hole Buy Wow Gold in the chimney he Cheap WoW Gold crawled down and KERSPLASH right into that kettle of water cheapest wow gold and that was the end of his troubles with the big bad wolf.

game4power,buy cheap wow gold
WOW GOLD

The next day the wow gold cheap little pig invited his mother over . She said "You see it is just as buy gold wowI told you. The way to Wow Goldget along in the world is to do things as well as you can." Fortunately for that world of warcraft gold little pig, he Cheapest wow Goldlearned that lesson. And he just lived happily ever after!

56. On Jun 03 2009 @ 07:01 guest wrote:

PHP Parse error:  parse error, unexpected '&', expecting T_VARIABLE or '$' in /home/.../shite/shout/shoutbox.php on line 56
<a href="http://www.club-penguin.org/">club penguin</a>

57. On Jun 04 2009 @ 03:39 guest wrote:

Do ten elevator exercises each day. Sit in a chair with one hand over your navel and one hand under you. Foods for a flat stomach Inhale deeply into your abdomen, expanding your mid-section fully. Then exhale through your nose very slowly while pulling your belly How to do crunches button in toward your backbone. Do five small squeezes (pulling your belly button back toward your spine). Repeat. You must talk to your doctor before doing this exercise. Best Way to Lose Belly Fat If your body isn't ready for it, you could do yourself far more harm than good.ways to lose belly fatAnother exercise, similar to the elevator exercise is called, simply, contraction. Sit in the same chair, get rid of belly fat how to get rid of bwith one hand above your belly button and one hand below your belly button. Breathe in to expand your stomach and then bring it back to the halfway point.<a ref="http://www.2losebellyfat.com/] Exhale while pulling your belly how to lose belly fat the healthy way button in and then squeeze your belly and hold that position for a second. Release and expand your belly back to its halfway point. Do 100 of these each day and you'll see your baby belly fat burn belly fatreduced in no time! Lose belly fat Focus on exercises that strengthen your muscles and raise your heart rate, which strengthens your cardiovascular system. These exercises tend to burn more calories than passive exercises like yoga or lengthening exercises. how to burn belly fat Even better, these calories increase blood flow to all areas of the body, lose lower belly fat allowing the body to This allows your body to build your exercises to lose fat lose love handles get rid of love handles diet to lose belly fat belly fat diet get six pack abs foods that burn fatmuscles back up and strengthen them so that they'll be better prepared for your next "hard" day at the gym. Exercises to burn belly fat You also want to make sure to eat as healthy a diet as you possibly can.Losing belly fat If you are breastfeeding, you will be burning plenty of calories, so you don't have to worry about counting anything, flat stomach foods and kinds of crunches also losing belly fat but make sure that the  to both you and your baby. Remember, when you breastfeed, whatever you eat, your baby eats! reverse crunches On top of burning calories you should concentrate on toning your muscles, but know that you need to tone your entire body. If you focus on just your abdominal muscles, you could end up causing your belly fat to become more flat stomach foods pronounced instead of shrinking. This is because your belly fat sits on top of your abdominal muscles. When you over train a muscle group that muscle group grows in size and becomes more pronounced, causing the fat layer to extend outward as well. kinds of crunches for losing belly fatMake sure that the food you eat can be processed entirely by your body. When you eat refined foods and foods that are high fat burning foods Stand up straight. The distance between your feet should be equidistant to the width of your hips. negative calorie foods lose stomach fat foods for flat stomachSqueeze your abdominal muscles so that your navel pulls in toward your spine and contract your abs. flat stomach foods bad foods belly The goal is to create a ninety degree angle with your knees, but if you aren't able to lower yourself that farbad belly foods foods to avoid in fatty  Stay away from packaged and processed foods because there are elements of these that your body simply cannot deal with. BMI calculator tips to lose belly fat ab crunches The lunge is also a great exercise for shaping your backside!belly fat exercises The goal is go get your pelvis into a straight line with your right knee.

62. On Jul 11 2009 @ 04:28 sunzheng wrote:

cheap wow power leveling
buy wow gold
my wow power leveling
cheapest wow gold
CHEAP wow power leveling
BUY wow gold
MY rs gold
good wow power leveling
CHEAPEST lotro gold
cheap aion gold
buy wow gold
my wow gold
cheapest wow gold

63. On Jul 14 2009 @ 03:51 guest wrote:

buy wow gold
my wow power leveling
buy wow gold
good wow power leveling
BUY wow gold
my wow power leveling
CHEAP rs gold
cheap wow power leveling
CHEAPEST lotro gold
MY aion gold
buy wow gold
cheap wow gold
CHEAPEST wow gold

66. On Nov 06 2009 @ 17:34 Jenna wrote:

Cool scripts.  Shoutbox for free!!

Online Recruitment | E-Recruitment

67. On Nov 19 2009 @ 16:25 airmax wrote:

Nice post!

68. On Dec 28 2009 @ 19:56 sru wrote:

No, it's not an error really. You guys are probably using php4, php5 allows one to do foreach ($array as &$reference) which modifies the array on-the-fly (should the $reference be modified in the loop).
In PHP5 leave it as is.
For PHP4 (not sure which version of PHP allows &$ref in foreach, check for yourself - works for me in PHP5) do something like:
CODE: PHP
foreach ($arr as &$row) {
    $last = max($last, $row[0]);

    $n = '['.date('h:i:s', $row[1]).'] ';
   
    if ($row[3] == 0) {
      $row = $n.'<'.$row[2].'> '.$row[4];
    } else {
      $row = $n.$row[2].' '.$row[4];
    }
  }

to:

CODE: PHP
foreach ($arr as $blah => $row) {
    $last = max($last, $row[0]);

    $n = '['.date('h:i:s', $row[1]).'] ';
   
    if ($row[3] == 0) {
      $arr[$blah] = $n.'<'.$row[2].'> '.$row[4];
    } else {
      $arr[$blah] = $n.$row[2].' '.$row[4];
    }
  }

although it's a quick 'n nasty fix.

Add a new comment

Name:
Password: (leave empty for anonymous comment)
 
View formatting tags Comment: