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 6769027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:08:39+00:00 2026-05-26T15:08:39+00:00

just wondering is there any way that I can return one value from my

  • 0

just wondering is there any way that I can return one value from my SQL database? Basically I am writining a website for my A level ICT coursework.
The website must allow posts to be made users and these posts must be stored in a table and then can be viewed by clicking on them
So far I have created a registration form and log in script to authenticate the session and delegate permission levels to users, I have created scripts which post threads to my database and have another script in place to store the data in the table
Now I wish to be able to view my posts when I click on them
So far my script is as follows

    <?php include_once('scripts/session_a.php') ; ?>
<?php include_once('scripts/connection.php') ; ?>


<?php


            $strSQL = "SELECT description FROM posts WHERE description=description";
            $result = mysql_query($strSQL) or die('SQL Error :: '.mysql_error());
            $row = mysql_fetch_assoc($result);

            echo $row['description'];


?>

and this script is called from

   <!--////////////////////////////////////////////////////////
    // Project : Absolute Beginners log in system ///////////
    // Purpose : A2 Level Coursework for ICT ////////////////
    // Teacher : Mr L Hawkins ///////////////////////////////
    // Student : Alex Sims //////////////////////////////////
    // Candidate No. : 4173 /////////////////////////////////
    // Centre No : 27168 ////////////////////////////////////
    /////////////////////////////////////////////////////////-->

    <?php include_once('includes/header.php') ; ?>
    <?php include_once('includes/posts-header.php') ;?>

    <div> <!-- Main Wrapper -->
        <div class="Post Head"/><!-- Start Page -->
            <name="Post" id="Post"/>
            <h2>Absolute Beginners Forum</h2>




        <div name="postname" id="postname"/>    <!--PHP SCRIPT FEEDS NAME DATE AND AUTHOR HERE -->
                <label></label>

                <?php include('scripts/echo_test.php');?>

        </div>


        <div name="content" id="content"/>     <!-- PHP SCRIPT FEEDS CONTENT HERE -->

                <?php include('scripts/get_post_content.php')?>

        </div>

    </div><!-- End board-->







</div><!--End of page-->






</div> <!-- Main Wrapper Ends -->
<?php

a screenshot can be seen here of what I was trying to describe

http://gyazo.com/a8cfda3735c8bf2fd26b3b1c70fab191

Hopefully this generates a better understanding of my problem.

Thanks

Alex.

  • 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-05-26T15:08:39+00:00Added an answer on May 26, 2026 at 3:08 pm

    instead of WHERE description=description you need to put something like WHERE id=$someid. this way you grab only the record matching a certain primary key id field. you would want to pass $someid to the page via a GET variable in the link most likely. you could also ad LIMIT 1 at the end to make sure the query only grabs one.

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

Sidebar

Related Questions

Just wondering if there is any benchmark software that I can download that will
I am wondering if there is any way that I can call a template
Just wondering if there is any way to get the NS records in C#.
I'm just wondering, is there any way to run Selenium tests on Android in
I was wondering if there was any decent way, other than NSLog-ing just about
i just wondering is there any performance issue or anything thing wrong if that
Just wondering if there are any pitfalls using .net as the extension for a
Was just wondering if there are any built in functions in c++ OR c#
Was just wondering if there was any software out there to do this? The
Hey, I'm just wondering if there's any easy function to make text suitable to

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.