Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8943071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:41:02+00:00 2026-06-15T11:41:02+00:00

I’m very new to web development (I have limited experience with HTML). I’m creating

  • 0

I’m very new to web development (I have limited experience with HTML). I’m creating a debate website. Currently, each debate is stored in a MySQL database. When the user submits the information to the database, I want a new page to be created, that contains their debate, and the ability to comment and rate it.

The problem I’m having is that, from the research I’ve done so far, I’m not finding a solution to having a new web page for each debate. Does anyone have any suggestions on how to write the data to a unique web page??

Thanks,
George

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:41:03+00:00Added an answer on June 15, 2026 at 11:41 am

    Let’s assume you are using PHP and MySQL.

    I will keep this very simple as possible probably need these files in a basic example plus your hopefull explanatory SQL tables (debates, comments, etc).

    • /debatelist.php | Dipslays all debateshas a form to create a debate
    • /debateprocessor.php | Your ‘all in one’ data manipulation file.
    • /debate_detail.php | Your detail page where the index of debates points to.

    Form to CREATE A DEBATE

    <form action='debateprocessor.php' action='POST'>
    <input type='hidden' name='action' value='create'/>
    <input type='text name='debate_name'/>
    /// Other inputs - debate topic, debate author, subject etc? same as above
    </form>
    

    then that would send the form data to debateprocessor.php where we’d sanitize and prepit.

    $_GET[‘action’]=”create” #this tells us we are creating the a debate
    $_GET[‘debate_name’]=”SomeDebate”

    debateprocessor.php – you’d want to to pull that in:

    if (mysql_real_escape_text($_GET['action'])) == 'create'){
        $debate_name = mysql_real_escape_text($_GET['debate_name']);
        //sanitize other variables as above
    
        //Insert debate name
        mysql_query=("INSERT INTO debates (debate_id,debate_name) VALUES ('$debate_name'");
    
    }
    

    Note the action if($action == ‘foo’){ //do something; } statement – this would allow you to handle updates (comments, editing debate names etc) all in one file. other values for action in forms could be ‘edit’, ‘add_comment’ etc – you could have separate files to do all this but this allows you to do it all one. All you’d do is add on elseifs or other if statements like above for each action to modify a table.

    So displaying your debates you’d have something like a master list of debates in a table, say you had

    debatelist.php

    <?
    $getDebates = mysql_query("SELECT * FROM debates";); 
    $rowNum = 0;
    
    while($row = mysql_fetch_array($getDebates))
    {
        $thisDebate = $row['debate_name'];
        $thisDebateID = $row['debate_id'];;
    
        echo
        "
            <tr>
            <td>
               <a href='debate_detail.php?debateid=$thisDebateID'>
                $thisDebate
            </a>
            </td>
    
        </tr>
        ";
        $rowNum++;
    }
    

    That would output a list of debate names with a link to ea. debate_detail.php page for a given debate pulled by the PK, debate ID. In that file you’d use a similar combination of SELECT (ONLY USE ‘WHERE debate_id = ‘xyz’ and would likely JOIN tables like comments etc on debate_id=’zyx’ = debate_id=’zyx’.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have this code to decode numeric html entities to the UTF8 equivalent character.
I want use html5's new tag to play a wav file (currently only supported
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have thousands of HTML files to process using Groovy/Java and I need to
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I have a jquery bug and I've been looking for hours now, I can't
That's pretty much it. I'm using Nokogiri to scrape a web page what has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.