Problem when doing an echo with data brought from a database

0

Good Day I am making a query from php to sql server 2005, I already made the connection and I can show a result, but if I want to add more fields I returned an error, I'm working with WebMatrix and IIS Express,

include("header.php");
include("conexion.php");

$query=sqlsrv_query($con, 'SELECT * FROM ticket');

while ($row = sqlsrv_fetch_array($query)) {
    echo($row['usuario']
    echo($row['area']
    );
}

My fields are:

id_ticket, user, area, description, high date, end date, status, solution

I have the problem when putting the second field, I do not know how to finish the first one, try several things but it marks me error, if I only leave the user field if it shows it correctly, if I put the second one it marks syntax error, in the Documentation comes with a "."

Greetings!

    
asked by EduardoVelazquez 22.08.2017 в 19:01
source

1 answer

2

Notice that you are mishandling the instruction ..

That's why I asked in my comment and Kevin put it in his.

 echo($row['usuario']);
 echo($row['area']);

And what you say about . is because it is used as a concatenation symbol in PHP.

    
answered by 22.08.2017 / 19:26
source