Skip to content

Instantly share code, notes, and snippets.

View topspinppy's full-sized avatar
🏠
Working from home

topspinppy

🏠
Working from home
  • Information Technology, KMUTNB Prachinburi Campus
View GitHub Profile
<?php
$topspin = 1234
echo $topspin;
?>
<%
String Topspin = "Paranat";
int age = 15;
out.println("Name :"+Topspin);
out.println("age :"+age);
%>
<%@page contentType="text/html" %>
<%@page pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<!--เรียกใช้ Class ใน Bean -->
<jsp:useBean id="std" scope="page" class="bean.StudentBean">
package bean;
public class StudentBean
{
//มี property
String fName;
String lName;
float gpa;
//มี Get และ Set
<?xml version="1.0"?>
<?php
$db = "(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ไอพี)(PORT = พอรืต)))(CONNECT_DATA=(SID=ชื่อinstance)))";
$objConnect = oci_connect("ชื่อ","รหัส",$db);
if (!$objConnect)
echo 'Failed to connect to Oracle';
else
echo 'Succesfully connected with Oracle DB';
oci_close($objConnect);
php -S 0.0.0.0:port -t c:\xampp\htdocs
-S S ตัวใหญ่
-t path webroot
eat(fred,meat).
eat(wima,meat).
eat(wima,vegetables).
eat(betty,vegetables).
eat(barney,meat).
eat(barney,vegetables).
food(meat).
food(vegetables).
carnivore(X):- eat(X,meat).
omnivore(X):- eat(X,meat), eat(X,vegetables).
course(01).
course(02).
course(03).
course(04).
teachers(wmk).
teachers(spk).
teachers(ppk).
student(jack).
student(noei).
student(sai).
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">