My First Web application .. a real shitty one
My First Web application .. a real shitty one
This commit is contained in:
1 parent
610af7dff3
commit
34753111ed
106 files changed
+41611
No files matched your search
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
$conn="";
|
||||
function getConnected()
|
||||
{
|
||||
$host = "localhost";
|
||||
$dbuser="root";
|
||||
$pass="";
|
||||
$dbname="photoshare";
|
||||
global $conn;
|
||||
$conn=mysqli_connect($host,$dbuser,$pass, $dbname);
|
||||
if(mysqli_connect_errno())
|
||||
{
|
||||
die("Connection Failed!").mysqli_connect_error();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
$res ="";
|
||||
?>
|
||||
Reference in new issue
Block a user