Skip to content

Instantly share code, notes, and snippets.

@ShanakaWickramaarachchi
Created December 7, 2016 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShanakaWickramaarachchi/cb3546c1fae443e8680ec60ca50c36ca to your computer and use it in GitHub Desktop.
Save ShanakaWickramaarachchi/cb3546c1fae443e8680ec60ca50c36ca to your computer and use it in GitHub Desktop.
<?php
$db = mysqli_connect($servername ,$username,$password);
$dbSelected = mysqli_select_db($db,$databaseName);
?>
<?php
$x= 'SELECT * FROM Engineering WHERE institute = ' . $_SESSION['username'];
$result =mysqli_query($db,$x);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment