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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:24:09+00:00 2026-06-03T03:24:09+00:00

My issue is I have a website that is linking to multiple tables in

  • 0

My issue is I have a website that is linking to multiple tables in Oracle. I currently have PHP code that checks user input assigned to a variable to find data in a table, then the oci_fetch_row statement that grabs the row where the data matches. This works fine but I cannot find how to output more than one row from a table if some values are the same?

Currently the one row it grabs is put into a simple HTML table.

Any help in to how to fetch all rows that the data matches and output to table would be appreciated.

My code is:

$userfeedback = "SELECT * FROM ASSET_FEEDBACK WHERE USER_EMAIL = '$userEmail' ORDER BY FEEDBACK_DATE";

$stmt3 = oci_parse($conn, $userfeedback);

if(oci_execute($stmt3))

{


    $row=oci_fetch_row($stmt3) ;

    print"<h2 id='title'>This Users Feedback</h2>";
    "<table border='2'>";

    print"<tr><td><p>Feedback ID:</td><td>$row[0]</td></tr>";
    print"<tr><td>Asset ID:</td><td>$row[1]</td></tr>";
    print"<tr><td>Feedback:</td><td>$row[3]</td></tr>";
    print"<tr><td>Date added:</td><td>$row[4]</td></tr>";

    print"</table></br>";   

}
  • 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-03T03:24:10+00:00Added an answer on June 3, 2026 at 3:24 am

    Put the oci_fetch_row statement into a while loop. OCI Fetch Array for a code sample

    print"<h2 id='title'>This Users Feedback</h2>";
    print"<table border='2'>";
    
    while ($row=oci_fetch_row($stmt3))
    {
    
        print"<tr><td><p>Feedback ID:</td><td>$row[0]</td></tr>";
        print"<tr><td>Asset ID:</td><td>$row[1]</td></tr>";
        print"<tr><td>Feedback:</td><td>$row[3]</td></tr>";
        print"<tr><td>Date added:</td><td>$row[4]</td></tr>";
    
    
    }
    print"</table></br>"; 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website that passes some GET variables to different pages in PHP.
I have a website project that is consuming user controls from another shared project.
I've got an issue involving a website that I have been using VS 2008
I have an issue. We have a website, where person can login and make
I have several performance issue in my website. I'm using asp.net mvc 2 and
I have a somehow funny issue. While trying to understand why a certain website
Here is my issue. I have an ASPX web site and I have code
I have issue that is reproduced on g++. VC++ doesn't meet any problems. So
I have this issue: I have WebSite with asp.net pages. http://desiis:90/WebSite1 In this webSite,
I have rewritten the below based on the answers. I have a website that

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.