PHP Status Help!!!

Discussion in 'PHP' started by Spudster, May 3, 2012.

  1. #1
    I have created a few features ones fully done and the other one is still under procces. Now im trying to create a comment feature so when someone makes a status a user can comment toit at the momment a user carnt comment.

    Heres the status codes to help

    HTML CODE
    PHP CODE
    [/code:][/QUOTE]
     
    Spudster, May 3, 2012 IP
  2. Spudster

    Spudster Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Bump? i need some help asap!!
     
    Spudster, May 3, 2012 IP
  3. wd0325

    wd0325 Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What you ask is how to display the data result?
    Here is my additional code.
    If you want to display the data in the order, add a number or date time field.

     
    wd0325, May 3, 2012 IP
  4. webxtech

    webxtech Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This information is very very helpfull for me and my 5 other friends. So Very Very ThankYou
     
    webxtech, May 3, 2012 IP
  5. Spudster

    Spudster Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Dont spam this post! webxtech
    Thanks

    And i was meaning how do i allow users to comment to a status update.

    Thanks for your help:)
     
    Spudster, May 3, 2012 IP
  6. wd0325

    wd0325 Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You must create a login form so that user can update own status.


    Here is a simple example to login.


    file: login.php



    Then, you can include links to the other pages as I demonstrated it.
     
    wd0325, May 4, 2012 IP
  7. Spudster

    Spudster Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I already have all this, what im meaning is like a social network ((eg. facebook etc) for a prime example, Someone can create there own status with there login, username and passwords But at the momment i dont have a feature where they can comment to a status update that they have created.

    For Another Example i put a status update saying 'Site Coming Soon' Noone can currently comment to that (like other social sites)
     
    Spudster, May 4, 2012 IP
  8. ezprint2008

    ezprint2008 Well-Known Member

    Messages:
    611
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    140
    Digital Goods:
    1
    #8
    How are your $SESSIONS getting started? I dont see you picking up variables anywhere in that form theres no
    <input type="submit" value="Submit" onclick="this.form.submit">

    1. so nothing is getting sent back to your page using POST method
    2. it appears you're dumping your entire database using the wildcard * for SQL rather than looking for a matching user/pass
    that's pretty bad coding to have to dump an entire database out on a script. If I'm looking at that correctly. Unless this is only being used by one person as in an Administrator, I can't see why you'd dump out your database on them OR where you will find their specific user/pass match.

    It looks to me that your HTML form is bad /incomplete and your SQL queries I dont fully understand what you're tyring to do.

    How many people will use this system you're making? If its a standard login and member type of script ..you're looking at a do-over.
    1.
    <form name="your_form" method="post" action="your_landing_page.php">
    <text area name="mes" cols=20 rows=3> </textarea>
    <input type="submit" value="Submit" onclick="this.form.submit">

    2.
    At top of your page that the form sends to, pick up the vars:
    <?php
    $mes = $_POST['mes'];

    // SQL Query here
    ?>

    at least that much, then run your SQL query below it.
    What $_SESSIONS are you starting, are these occuring from a previous page? if so then add your session_start()
    at the top of page and indicate the sessions you want started $_SESSION['user_name'];

    Or tell us here on the forum where this script your making is at. Is it a login, is it a page that occurs after your users are already logged in and now they're just sending some textarea info?
     
    ezprint2008, May 4, 2012 IP
  9. Spudster

    Spudster Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    it will start like session_start
    then you use a login for that connects to the database that searches for the user called
    $_SESSION['username'];

    And its a status system like facebook but more basic

    You have a form where they can post the data but they carnt comment to a post.

    I need a comment system asap this would help me learn more about php.

    and to view one comment at a time this is located at viewstatuspost.php?id=1 etc...

    or you can view all of the posts by going to viewstatus.php
     
    Spudster, May 4, 2012 IP
  10. warek44

    warek44 Greenhorn

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #10
    I don't know about cache but the strange thing is I can not see the impressions in Google website for couple of days back and people do come from google which I have seen in Google Analytics, so something is going on with Google.
     
    warek44, May 6, 2012 IP
  11. Spudster

    Spudster Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    good is not and will never be perfect :)


    Hey,

    im trying to make a video site like YouTube but for webmasters.

    Now i have created the form to upload the video to the server but when i click onto a file, It only displays the files name? and not the actual thing that whats in the file.
     
    Spudster, May 7, 2012 IP
  12. Spudster

    Spudster Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I mean with the above posts that its only uploading the title of the page and not the actual content such as if i uploaded a video it only uploads on the title of the video from my computer and not the content.
     
    Spudster, May 7, 2012 IP