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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:08:56+00:00 2026-05-29T05:08:56+00:00

I am having some difficulty using PHP with jQTouch. I am fairly confident with

  • 0

I am having some difficulty using PHP with jQTouch.
I am fairly
confident with JavaScript however my PHP skills are little to none.

I am creating an application for my final year project at University
what displays football rumours posted by different users.

My problem
is as follows:
I have one screen that displays each individual rumour, using a while
loop in PHP I am able to get each rumour from the database and display
them correctly. However I want to be able to click on one rumour which
then displays this rumour in a different screen, along with options to
reply/share etc. However I do not know how to tell which rumour has
been clicked on.

Snippets of my code:
All rumours page:

    <?php 
        $q1 = "SELECT * FROM tblrumours;"; 
        $r1 = mysql_query($q1); 
        while( $row1 = mysql_fetch_assoc($r1) ){ 
?> 
    <a class="rumourTag submit" id="<?php echo $row1['rumourID']; ?>"> 
            <div class='oneRumour'> 
            <div class='standardBubble'> 
                    <p> 
                    <?php 
                            $userID = $row1['userID']; 
                            $q2 = "SELECT * FROM tblusers WHERE userID = $userID;"; 
                            $r2 = mysql_query($q2); 
                            while( $row2 = mysql_fetch_array($r2) ){ 
                                    $username = $row2['username']; 
                                    $teamID = $row2['teamID']; 
                            } 
                            $q5 = "SELECT * FROM tblteams WHERE teamID = $teamID;"; 
                            $r5 = mysql_query($q5); 
                            while( $row5 = mysql_fetch_array($r5) ){ 
                                    echo "<img src='img/".$row5['teamPicture']."' alt='' 
    class='teamImg' />"; 
                            } 
                    ?> 
                    <span class='username'> 
                    <?php 
                            echo $username; 
                    ?> 
                    </span> 
                    <br/> 
                    <span class='rumourMsg'><?php echo $row1['rumourText']; ?></ 
    span> 
            </p> 
        </div>
    </a>

SINGLE RUMOURS PAGE:

<?php 
       $q1 = "SELECT * FROM tblrumours WHERE rumourID = 1;"; /* NEED 
TO SELECT WHERE RUMOUR ID IS THE ONE THAT IS CLICKED */ 
        $r1 = mysql_query($q1); 
        while( $row1 = mysql_fetch_array($r1) ){ 
?>.......... 

I have tried using Session variables, storing the ID’s in an array,
creating a separate php file for the single rumour page, and all to no
avail. I am guessing I have to use AJAX in some way, but I have no
idea where to even begin. Any help is greatly appreciated!
Thanks!

  • 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-29T05:08:57+00:00Added an answer on May 29, 2026 at 5:08 am

    If you need to click on a rumour to see more details about it, you could always output in the HTML a unique value used to reference that rumour in the DB.

    e.g. have <span class='rumourMsg' id='rumourName'> where rumourName is a unique value stored in your database to reference that rumour. Then when a user clicks to see more details, you can make a request to the PHP page with that value and return the content.

    e.g. rumourDetails?rumourName=uniqueRumourName

    (make sure to escape all your data properly to avoid SQL injection vulnerabilities.)

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

Sidebar

Related Questions

I'm very familiar with using Enums in other languages, but I'm having some difficulty
I'm having difficulty parsing some JSON data returned from my server using jQuery.ajax() To
I am having some difficulty using a UIWebView to render PDF files on the
I'm having some difficulty understanding how to validate a date (DOB) using MVC2. What
I'm trying to parse an mrss feed using jquery but am having some difficulty
I am having some difficulty in using the jQuery Validator plugin. I have a
I'm using the Joda-Time library with Java. I'm having some difficulty trying to turn
I'm having some difficulty creating nested objects between a one-to-many relationship. My models are
I am writing a GAE application and am having some difficulty with the following
I'm having some difficulty including a directory into the jar maven is creating. I

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.