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
  • 30,962
  • 25
  • 85
  • 135

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
  • 30,962
  • 25
  • 85
  • 135
Aram Grigoryan
  • 740
  • 1
  • 6
  • 24