added orai
This commit is contained in:
1 parent
350f937b4f
commit
0158b59ccb
6 files changed
+66
No files matched your search
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
$server = "localhost";
|
||||
$user = "root";
|
||||
$pwd = "";
|
||||
$db = "guest13b";
|
||||
|
||||
$conn = new mysqli($server,$user,$pwd,$db);
|
||||
|
||||
if ($conn->connect_errno)
|
||||
{
|
||||
die("Nem sikerült a kapcsolat kiépítése: ".$conn->connect_error);
|
||||
}
|
||||
|
||||
$sql = "SELECT * FROM felh";
|
||||
$result = $conn->query($sql);
|
||||
|
||||
if($result->num_rows){
|
||||
echo "Van rekord";
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user