Skip to content

Instantly share code, notes, and snippets.

<?php
// Create a connection to the database
$conn = new mysqli("localhost", "root", "", "students");
// Check if the connection failed
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// Get form data using POST method
@leonka1
leonka1 / Roro
Created January 6, 2026 09:17
Phproro
<?php
$conn = new mysqli("localhost", "root", "", "students");
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$id = $_POST['id'] ?? '';
$name = $_POST['name'] ?? '';
$email = $_POST['email'] ?? '';
<?php
$conn = new mysqli("localhost", "root", "", "students");
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$id = $_POST['id'] ?? '';
$name = $_POST['name'] ?? '';
$email = $_POST['email'] ?? '';
public class workshJFrame extends javax.swing.JFrame {
/**
* Creates new form workshJFrame
*/
public workshJFrame() {
initComponents();
Timer FTimer= new Timer(500,new ActionListener(){
boolean Visible=true;
@Override
@leonka1
leonka1 / Htmlkareem
Created January 6, 2026 02:14
2html example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Cybersecurity Training Platform</title>
<link rel="stylesheet" href="stylee.css">
</head>
<body>
public class workshJFrame extends javax.swing.JFrame {
/**
* Creates new form workshJFrame
*/
public workshJFrame() {
initComponents();
Timer FTimer= new Timer(500,new ActionListener(){
boolean Visible=true;
@Override
<?php
$conn = new mysqli("localhost", "root", "", "students");
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$id = $_POST['id'] ?? '';
$name = $_POST['name'] ?? '';
$email = $_POST['email'] ?? '';
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Online Fitness Training Platform</title>
<link rel="stylesheet" href="stylee.css">
</head>
<body>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}
body {
background-color: #f4f6f8;
color: #333;
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}
body {
background-color: #f4f6f8;
color: #333;