1

i have this problem

Warning: mysqli_query() expects parameter 1 to be mysqli, string given in E:\Oficina\xampp\htdocs\Formulario-Oficina\listartecnicas.php on line 6

and

Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in E:\Oficina\xampp\htdocs\Formulario-Oficina\listartecnicas.php on line 25

this is my code enter image description here

Dharman
  • 26,923
  • 21
  • 73
  • 125

1 Answers1

1

I think you should write $con at first like this.

mysqli_query($con,"SELECT * FROM Persons");

The syntax is this mysqli_query(connection,query,resultmode);

Dharman
  • 26,923
  • 21
  • 73
  • 125
Aram Grigoryan
  • 716
  • 1
  • 6
  • 23