-1

I would appreciate some help with this. It has been two years since I tried any PHP and I'm having issues running an SQL query. I just want to connect to the server and display some test data from a table

$dbconn = mysqli_connect("ip address and socket for server", "databaseusername", "databasepassword") or die ("Could not connect to database server."); 

mysqli_select_db($dbconn, "gig_calender") or die ("Could not select db.");

$sql = 'SELECT * FROM test';

mysqli_query($conn , $sql);

It gives no errors until i add in the mysqli_query();

Tom Peters
  • 31
  • 3

1 Answers1

2

You miss-typed a variable, it should be:

mysqli_query($dbconn , $sql);
yardie
  • 1,583
  • 1
  • 14
  • 29