SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: Please Help Me

  1. #1
    Non-Member
    Join Date
    Mar 2005
    Posts
    832
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Please Help Me

    Hello im making a basic chat like a shoutbox kind of and i have a few frames - Onlinelist, Message and chat window. In message you can type something but it dosnt appear on the chat window how do i do this?

    You can see what i mean here -> www.php.ninechat.com/production/ninechat

  2. #2
    Level 8 Chinese guy Archbob's Avatar
    Join Date
    Sep 2001
    Location
    Somewhere in this vast universe
    Posts
    3,741
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't see a "submit" button on the forum for the message. Also are you using flush and ob_flush ton refresh the page?

    Usually in a shoutbox, every time you input and hit "submit", it just refreshes the page and the what you just typed comes out.

  3. #3
    Non-Member
    Join Date
    Mar 2005
    Posts
    832
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you type then press enter. How would i be able to get it to work

  4. #4
    SitePoint Enthusiast
    Join Date
    Oct 2004
    Location
    Australia
    Posts
    84
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's posting the message to your script so I wouldn't be worrying about the submit button.

    1) Is the script processing the messages being posted actually saving the message? Do you store it in a db or a file? Is the message showing up where it's meant to be?

    2) If it is being saved properly then look at the script showing the messages.

  5. #5
    Non-Member
    Join Date
    Mar 2005
    Posts
    832
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i want to store it on a database how would i do that?

  6. #6
    SitePoint Enthusiast
    Join Date
    Oct 2004
    Location
    Australia
    Posts
    84
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well you'd need to make sure that you have a database available. Create your tables and connect to it from your scripts. Depending on which database you have you would use different functions in php. Check out the manual.

    I think you'd probably be better off using a premade shoutbox if your skills aren't quite up to it. Unless you want to learn.

    There's some good db tutorials on www.zend.com and www.phpbuilder.com. For some shoutbox scripts try www.hotscripts.com


Bookmarks

Posting Permissions

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