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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:52:17+00:00 2026-06-18T12:52:17+00:00

i am beginner in php and mysql, php where I make an HTML table

  • 0

i am beginner in php and mysql, php where I make an HTML table display name hour date and show me the table of my database containing the fields “name” “hour” “date”
The name of the database is androidhive and the table name is products

My code is:

<?php
include("connectbd.php"); //importamos el archivo para la coneccion a la base de datos

$res=mysql_query("SELECT * FROM products",$link); //Hacemos la consulta
?>
<html>
<head></head>
<body>
<?php
echo"<table><tr><td>Nombre</td><td>hora<td>fecha</td></tr>" //Hacemos una tabla html para ordenar los datos

while($row=mysql_fetch_array($res)){ //Guardaremos los datos en un array llamado $row cada indice del array sera el nombre del campo "Nombre","Apellidos", "Email", "Id"
echo"<td>".$row["Nombre"]." ".$row["hora"]."".$row["fecha"]</td>"; //le pasamos el id a la pagina del link para que reconosca el dato
}
echo"</table>";
?>
</body>
</html>

the error is SCREAM:

Error suppression ignored for
( ! ) Parse error: syntax error, unexpected ‘while’ (T_WHILE), expecting ‘,’ or ‘;’ in C:\wamp\www\droidlogin\citas.php on line 13

  • 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-18T12:52:18+00:00Added an answer on June 18, 2026 at 12:52 pm

    Replace :

    echo"<td>".$row["Nombre"]." ".$row["hora"]."".$row["fecha"]</td>"; //le pasamos el id a la pagina del link para que reconosca el dato
    

    To

    echo"<td>".$row["Nombre"]." ".$row["hora"]."".$row["fecha"]."</td>"; //le pasamos el id a la pagina del link para que reconosca el dato
    

    Missing ." after $row["fecha"]

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

Sidebar

Related Questions

I am a beginner in Mysql Php. I want to make a search box
I want to get array format from mysql database. Example,Let I have name table
I am a beginner to php and mySQL and I am currently using dreamweaver
I am beginner to PHP and mySQL. I am creating a navigation trough my
I am a beginner to PHP and MySQL so please bear with me... I
Here's my background: Decent experience with PHP/MySql. Beginner's experience with OOP Why I want
I'm a beginner with php and have created a code displaying a table with
hi everyone im beginner in php & mysql here im joining 3 tables but
Im making a (small) site in php & mysql. The mysql database consists of
This is a beginner php/mysql question, I've messed around for hours with various loops

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.