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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:46:48+00:00 2026-06-12T06:46:48+00:00

i am trying to display mysql data in html table format is table name::

  • 0

i am trying to display mysql data in html

table format is

table name:: App

   appid |    app    | version |     date     |      apk file   |
   1        sample     1.0.0      2012-10-12         sample.apk

//mysql query is

   <?php
    $query="SELECT * FROM `App` where appid=1";
    $res=mysql_query($query);
    $row=mysql_fetch_row($res);
    $app=$row[1];
    $vesion=$row[2];
    $date1=date('M j,Y',strtotime($row[3]));
 ?>

//html code is given below

 <html>
     <body>
      <div style="text-align:left"><p>App:<b><? $app.' '.$vesion ?></b></p></div>
      <div style="text-align:left"><p>Date Uploaded: <b><? $date1 ?></b></p></div>
      <ol class="instructions">
         <li>Click <a href="http://localhost/downloads/$row[4]">Here</a> todownload.
 <br></li>

     </ol>
     </body>
     </html>
<?php 

?>

but do not getting mysql data in html file

any one help me for correct solution

  • 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-12T06:46:49+00:00Added an answer on June 12, 2026 at 6:46 am

    Ok so two things may be happening here.

    1. You need to wrap any PHP code with the opening and closing PHP tags – <?php ?>. This includes single variables like you did with row[4]. You’ll also need to echo out the variable –

      <a href="http://localhost/downloads/<?php echo $row[4]; ?>">Here</a>

    2. Make sure you HTML file has the .php file extension. Other wise the server will simply not parse the file as PHP and your code will not be executed as PHP but rather as plain text. You can setup your server to parse PHP even in HTML files – this is done sometimes for security measures as to not let users know what technologies are being used on the server (but I’m not sure if that’s what you are going for here).

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

Sidebar

Related Questions

Quick PHP/MySQL question: I'm trying to display the data from a MySQL database table
Please excuse my newbie Question. I'm tryin to display data from a mysql table
I am trying to retrieve data from mysql then display it on android listview.
I have been trying to display a MySQL table for some time and I
I am trying to show the data coming from mysql database as a table
I am trying to return all selected data from mysql table. What I want
I'm trying to get the $url value to display from the MySQL database but
I'm trying to loop through a list of results from MySQL and display all
I am trying to modify a wordpress / MySQL function to display a little
trying to display data only after variables have been set. $(document).ready(function () { function

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.