This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try { | |
$connection = new PDO('mysql:host=localhost;dbname=jtest2', 'root', 'admin123'); | |
} catch (PDOException $e) { | |
echo $e->getMessage(); | |
} | |
$firstName = isset($_POST['first_name']) ? $_POST['first_name'] : ''; | |
$lastName = isset($_POST['last_name']) ? $_POST['last_name'] : ''; | |
$position = isset($_POST['position']) ? $_POST['position'] : ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try { | |
$connection = new PDO('mysql:host=localhost;dbname=jtest2', 'root', 'admin123'); | |
} catch (PDOException $e) { | |
echo $e->getMessage(); | |
} | |
try { | |
$querySelect = 'SELECT id, course_type FROM course_type'; | |
$statementSelect = $connection->prepare($querySelect); | |
$statementSelect->execute(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap 101 Template</title> | |
<!-- Bootstrap --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# A fatal error has been detected by the Java Runtime Environment: | |
# | |
# SIGSEGV (0xb) at pc=0xb7771428, pid=6705, tid=1691421504 | |
# | |
# JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17) | |
# Java VM: Java HotSpot(TM) Server VM (25.65-b01 mixed mode linux-x86 ) | |
# Problematic frame: | |
# C [+0x428] __kernel_vsyscall+0x10 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class While { | |
public static void whileLoop1() { | |
int columnCounter = 5; | |
while (columnCounter >= 1) { | |
int rowCounter = 1; | |
int space = 5 - columnCounter; | |
while (space > 0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DoWhile { | |
public static void doWhileLoop1() { | |
int columnCounter = 5; | |
do { | |
int rowCounter = 1; | |
int space = 5 - columnCounter; | |
do { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.BorderLayout; | |
import java.awt.Dimension; | |
import javax.swing.JButton; | |
import javax.swing.JFrame; | |
import javax.swing.JLabel; | |
public class JFrameDemo { | |
public static void main(String[] args) { | |
String name = "Juan"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.github.julianjupiter.javafx; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
/** | |
* Database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function sql($terms) | |
{ | |
$q = "SELECT * FROM table1 WHERE "; | |
$i = 0; | |
foreach ($terms as $each) | |
{ | |
$i++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class CalculatorTest { | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); | |
System.out.print("First Number: "); | |
double firstNumber = input.nextDouble(); | |
System.out.print("Second Number: "); | |
double secondNumber = input.nextDouble(); | |
Calculator calculator = new Calculator(); |
OlderNewer