<?php
#http://localhost:8080/aula4/connection.php
define("host","localhost");
define("user","root");
define("password","usbw");
define("database","sistema");
$connect=mysqli_connect(host,user,password,database) or die(header("Location:Erroconnection.html"));
#define("table","users");
$table="users";
$sql="SELECT * FROM $table";
mysqli_query($connect,$sql) or die($sql);
?>
Sem comentários:
Enviar um comentário