/    Sign up×
Community /Pin to ProfileBookmark

display user’s comments in webpage.

i have a comment box made in css. i need a way of getting the comments to display on the page. how do i do this?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@LandslydeFeb 03.2015 — Please be more difinitive. After the user adds a comment, you want it to be displayed on the same page, in another area?
Copy linkTweet thisAlerts:
@webdevelopfunauthorFeb 03.2015 — Please be more difinitive. After the user adds a comment, you want it to be displayed on the same page, in another area?[/QUOTE]

i want it to display in the same page. below the comment box where users will write their comment. i want the background of the box to be green (which users write in) and the background of the box where their comments are displayed to be green with the transparence to be 75% visible.
Copy linkTweet thisAlerts:
@gjerichFeb 06.2015 — hi webdevelopfun,

there is a lot of ways to do this.
[LIST=1]
  • [*] create input form.. for example: username, email and message.

  • [*] you store data in database.

  • [*] retrieve data from db and show them on website.

  • [*] good practice can be to secure input to avoid spam.

  • [*] after posting comment simply redirect to previous/same page.

  • [/LIST]

    usually email information isn't shown to visitors. storing data:
    [LIST]
  • [*] flat database (store comments in a file).

  • [*] mysqli, mysql, postgresql, mongodb ...

  • [/LIST]

    type of database depends of how many records do you expect and what to do with them. you probably want to administrate them a little. for example to delete spams or violent talk..
    ×

    Success!

    Help @webdevelopfun spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 4.29,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,

    tipper: @Samric24,
    tipped: article
    amount: 1000 SATS,
    )...