Selasa, 04 November 2025
Senin, 03 November 2025
JavaScript - Menu
<html>
<HEAD><TITLE>menu
</TITLE>
<style>
a:hover {color:white; text-decoration:none;}
a:link {color:yellow; text-decoration:none}
a:visited {color:white; text-decoration:none}
#essenmenu
{
position: absolute;
top: 0;
left: 0;
z-index: 1;
font:xx-large arial
}
#essen
{
position: absolute;
top: -120;
left: 0;
z-index: 0;
font:xx-large arial
}
#trinkenmenu
{
position: absolute;
top: 0;
left: 120;
z-index: 1;
font:xx-large arial
}
#trinken
{
position: absolute;
top: -92;
left: 120;
z-index: 0;
font:xx-large arial
}
</style>
<script language="JavaScript">
var eypos=-124, ejump=-4;
var typos=-92, tjump=-4;
var delay=2;
function do_essen()
{
if(typos>-92)
{
tjump=-4;
if(typos>=30)
trinken_fahren();
}
ejump=-ejump;
if(eypos<=-122 || eypos>=30)
essen_fahren();
}
function essen_fahren()
{
if(document.layers) document.essen.top=eypos; else document.all.essen.style.top=eypos;
eypos+=ejump;
if(eypos>-122 && eypos<30)
setTimeout("essen_fahren()", delay);
}
function do_trinken()
{
if(eypos>-122)
{
ejump=-4;
if(eypos>=30)
essen_fahren();
}
tjump=-tjump;
if(typos<=-92 || typos>=30)
trinken_fahren();
}
function trinken_fahren()
{
if(document.layers) document.trinken.top=typos; else document.all.trinken.style.top=typos;
typos+=tjump;
if(typos>-92 && typos<30)
setTimeout("trinken_fahren()", delay);
}
</script>
</HEAD>
<BODY>
<div id=essenmenu>
<table width=120 height=30 bgcolor="deeppink" cellspacing=0>
<tr><td align=middle><a href="javascript:do_essen()"><b>Masakan</b></a>
</table>
</div>
<div id=trinkenmenu>
<table width=150 height=30 bgcolor="deeppink" cellspacing=0>
<tr><td align=middle><a href="javascript:do_trinken()"><b>Minuman</b></a>
</table>
</div>
<div id=essen>
<table bgcolor=blue width=120 height=150 cellspacing=2>
<tr><td align=middle><button>Sayur Sop</button>
<tr><td align=middle><button >Nasi Goreng</button>
<tr><td align=middle><button >Rendang</button>
<tr><td align=middle><button>Soto Ayam</button>
</table>
</div>
<div id=trinken>
<table bgcolor=blue width=150 height=118 cellspacing=2 style="font-weight:bold;color:white">
<tr><td align=middle>Air Mineral</a>
<tr><td align=middle>Kopi</a>
<tr><td align=middle>Teh Matcha</a>
<tr><td align=middle>Boba</a>
</table>
</div>
</BODY>
</HTML>
Additional Named Entities for HTML
The following table contains additional named entities, their numeric character references, and a description of each. With the exception of the left and right-pointing brackets (〈 and 〉), the entities on this page are rendered using Lucida sans Unicode.
| Character | Named entity | Numeric character reference | Description |
|---|---|---|---|
| Latin Extended-B | |||
| ƒ | ƒ | ƒ | Latin small f with hook, =function, =florin, U0192 ISOtech |
| Greek | |||
| Α | Α | Α | Greek capital letter alpha, U0391 |
| Β | Β | Β | Greek capital letter beta, U0392 |
| Γ | Γ | Γ | Greek capital letter gamma, U0393 ISOgrk3 |
| Δ | Δ | Δ | Greek capital letter delta, U0394 ISOgrk3 |
| Ε | Ε | Ε | Greek capital letter epsilon, U0395 |
| Ζ | Ζ | Ζ | Greek capital letter zeta, U0396 |
| Η | Η | Η | Greek capital letter eta, U0397 |
| Θ | Θ | Θ | Greek capital letter theta, U0398 ISOgrk3 |
| Ι | Ι | Ι | Greek capital letter iota, U0399 |
| Κ | Κ | Κ | Greek capital letter kappa, U039A |
| Λ | Λ | Λ | Greek capital letter lambda, U039B ISOgrk3 |
| Μ | Μ | Μ | Greek capital letter mu, U039C |
| Ν | Ν | Ν | Greek capital letter nu, U039D |
| Ξ | Ξ | Ξ | Greek capital letter xi, U039E ISOgrk3 |
| Ο | Ο | Ο | Greek capital letter omicron, U039F |
| Π | Π | Π | Greek capital letter pi, U03A0 ISOgrk3 |
| Ρ | Ρ | Ρ | Greek capital letter rho, U03A1 |
| Σ | Σ | Σ | Greek capital letter sigma, U03A3 ISOgrk3 |
| Τ | Τ | Τ | Greek capital letter tau, U03A4 |
| Υ | Υ | Υ | Greek capital letter upsilon, U03A5 ISOgrk3 |
| Φ | Φ | Φ | Greek capital letter phi, U03A6 ISOgrk3 |
| Χ | Χ | Χ | Greek capital letter chi, U03A7 |
| Ψ | Ψ | Ψ | Greek capital letter psi, U03A8 ISOgrk3 |
| Ω | Ω | Ω | Greek capital letter omega, U03A9 ISOgrk3 |
| α | α | α | Greek small letter alpha, U03B1 ISOgrk3 |
| β | β | β | Greek small letter beta, U03B2 ISOgrk3 |
| γ | γ | γ | Greek small letter gamma, U03B3 ISOgrk3 |
| δ | δ | δ | Greek small letter delta, U03B4 ISOgrk3 |
| ε | ε | ε | Greek small letter epsilon, U03B5 ISOgrk3 |
| ζ | ζ | ζ | Greek small letter zeta, U03B6 ISOgrk3 |
| η | η | η | Greek small letter eta, U03B7 ISOgrk3 |
| θ | θ | θ | Greek small letter theta, U03B8 ISOgrk3 |
| ι | ι | ι | Greek small letter iota, U03B9 ISOgrk3 |
| κ | κ | κ | Greek small letter kappa, U03BA ISOgrk3 |
| λ | λ | λ | Greek small letter lambda, U03BB ISOgrk3 |
| μ | μ | μ | Greek small letter mu, U03BC ISOgrk3 |
| ν | ν | ν | Greek small letter nu, U03BD ISOgrk3 |
| ξ | ξ | ξ | Greek small letter xi, U03BE ISOgrk3 |
| ο | ο | ο | Greek small letter omicron, U03BF NEW |
| π | π | π | Greek small letter pi, U03C0 ISOgrk3 |
| ρ | ρ | ρ | Greek small letter rho, U03C1 ISOgrk3 |
| ς | ς | ς | Greek small letter final sigma, U03C2 ISOgrk3 |
| σ | σ | σ | Greek small letter sigma, U03C3 ISOgrk3 |
| τ | τ | τ | Greek small letter tau, U03C4 ISOgrk3 |
| υ | υ | υ | Greek small letter upsilon, U03C5 ISOgrk3 |
| φ | φ | φ | Greek small letter phi, U03C6 ISOgrk3 |
| χ | χ | χ | Greek small letter chi, U03C7 ISOgrk3 |
| ψ | ψ | ψ | Greek small letter psi, U03C8 ISOgrk3 |
| ω | ω | ω | Greek small letter omega, U03C9 ISOgrk3 |
| ϑ | ϑ | ϑ | Greek small letter theta symbol, U03D1 NEW |
| ϒ | ϒ | ϒ | Greek upsilon with hook symbol, U03D2 NEW |
| ϖ | ϖ | ϖ | Greek pi symbol, U03D6 ISOgrk3 |
| General Punctuation | |||
| • | • | • | bullet, =black small circle, U2022 ISOpub |
| … | … | … | horizontal ellipsis, =three dot leader, U2026 ISOpub |
| ′ | ′ | ′ | prime, =minutes, =feet, U2032 ISOtech |
| ″ | ″ | ″ | double prime, =seconds, =inches, U2033 ISOtech |
| ‾ | ‾ | ‾ | overline, =spacing overscore, U203E NEW |
| ⁄ | ⁄ | ⁄ | fraction slash, U2044 NEW |
| Letterlike Symbols | |||
| ℘ | ℘ | ℘ | script capital P, =power set, =Weierstrass p, U2118 ISOamso |
| ℑ | ℑ | ℑ | blackletter capital I, =imaginary part, U2111 ISOamso |
| ℜ | ℜ | ℜ | blackletter capital R, =real part symbol, U211C ISOamso |
| ™ | ™ | ™ | trade mark sign, U2122 ISOnum |
| ℵ | ℵ | ℵ | alef symbol, =first transfinite cardinal, U2135 NEW |
| Arrows | |||
| ← | ← | ← | leftward arrow, U2190 ISOnum |
| ↑ | ↑ | ↑ | upward arrow, U2191 ISOnum |
| → | → | → | rightward arrow, U2192 ISOnum |
| ↓ | ↓ | ↓ | downward arrow, U2193 ISOnum |
| ↔ | ↔ | ↔ | left right arrow, U2194 ISOamsa |
| ↵ | ↵ | ↵ | downward arrow with corner leftward, =carriage return, U21B5 NEW |
| ⇐ | ⇐ | ⇐ | leftward double arrow, U21D0 ISOtech |
| ⇑ | ⇑ | ⇑ | upward double arrow, U21D1 ISOamsa |
| ⇒ | ⇒ | ⇒ | rightward double arrow, U21D2 ISOtech |
| ⇓ | ⇓ | ⇓ | downward double arrow, U21D3 ISOamsa |
| ⇔ | ⇔ | ⇔ | left right double arrow, U21D4 ISOamsa |
| Mathematical Operators | |||
| ∀ | ∀ | ∀ | for all, U2200 ISOtech |
| ∂ | ∂ | ∂ | partial differential, U2202 ISOtech |
| ∃ | ∃ | ∃ | there exists, U2203 ISOtech |
| ∅ | ∅ | ∅ | empty set, =null set, =diameter, U2205 ISOamso |
| ∇ | ∇ | ∇ | nabla, =backward difference, U2207 ISOtech |
| ∈ | ∈ | ∈ | element of, U2208 ISOtech |
| ∉ | ∉ | ∉ | not an element of, U2209 ISOtech |
| ∋ | ∋ | ∋ | contains as member, U220B ISOtech |
| ∏ | ∏ | ∏ | n-ary product, =product sign, U220F ISOamsb |
| − | ∑ | − | n-ary sumation, U2211 ISOamsb |
| − | − | − | minus sign, U2212 ISOtech |
| ∗ | ∗ | ∗ | asterisk operator, U2217 ISOtech |
| √ | √ | √ | square root, =radical sign, U221A ISOtech |
| ∝ | ∝ | ∝ | proportional to, U221D ISOtech |
| ∞ | ∞ | ∞ | infinity, U221E ISOtech |
| ∠ | ∠ | ∠ | angle, U2220 ISOamso |
| ⊥ | ∧ | ⊥ | logical and, =wedge, U2227 ISOtech |
| ⊦ | ∨ | ⊦ | logical or, =vee, U2228 ISOtech |
| ∩ | ∩ | ∩ | intersection, =cap, U2229 ISOtech |
| ∪ | ∪ | ∪ | union, =cup, U222A ISOtech |
| ∫ | ∫ | ∫ | integral, U222B ISOtech |
| ∴ | ∴ | ∴ | therefore, U2234 ISOtech |
| ∼ | ∼ | ∼ | tilde operator, =varies with, =similar to, U223C ISOtech |
| ≅ | ≅ | ≅ | approximately equal to, U2245 ISOtech |
| ≅ | ≈ | ≅ | almost equal to, =asymptotic to, U2248 ISOamsr |
| ≠ | ≠ | ≠ | not equal to, U2260 ISOtech |
| ≡ | ≡ | ≡ | identical to, U2261 ISOtech |
| ≤ | ≤ | ≤ | less-than or equal to, U2264 ISOtech |
| ≥ | ≥ | ≥ | greater-than or equal to, U2265 ISOtech |
| ⊂ | ⊂ | ⊂ | subset of, U2282 ISOtech |
| ⊃ | ⊃ | ⊃ | superset of, U2283 ISOtech |
| ⊄ | ⊄ | ⊄ | not a subset of, U2284 ISOamsn |
| ⊆ | ⊆ | ⊆ | subset of or equal to, U2286 ISOtech |
| ⊇ | ⊇ | ⊇ | superset of or equal to, U2287 ISOtech |
| ⊕ | ⊕ | ⊕ | circled plus, =direct sum, U2295 ISOamsb |
| ⊗ | ⊗ | ⊗ | circled times, =vector product, U2297 ISOamsb |
| ⊥ | ⊥ | ⊥ | up tack, =orthogonal to, =perpendicular, U22A5 ISOtech |
| ⋅ | ⋅ | ⋅ | dot operator, U22C5 ISOamsb |
| Miscellaneous Technical | |||
| ⌈ | ⌈ | ⌈ | left ceiling, =apl upstile, U2308, ISOamsc |
| ⌉ | ⌉ | ⌉ | right ceiling, U2309, ISOamsc |
| ⌊ | ⌊ | ⌊ | left floor, =apl downstile, U230A, ISOamsc |
| ⌋ | ⌋ | ⌋ | right floor, U230B, ISOamsc |
| 〈 | ⟨ | 〈 | left-pointing angle bracket, =bra, U2329 ISOtech |
| 〉 | ⟩ | 〉 | right-pointing angle bracket, =ket, U232A ISOtech |
| Geometric Shapes | |||
| ◊ | ◊ | ◊ | lozenge, U25CA ISOpub |
| Miscellaneous Symbols | |||
| ♠ | ♠ | ♠ | black spade suit, U2660 ISOpub |
| ♣ | ♣ | ♣ | black club suit, =shamrock, U2663 ISOpub |
| ♥ | ♥ | ♥ | black heart suit, =valentine, U2665 ISOpub |
| ♦ | ♦ | ♦ | black diamond suit, U2666 ISOpub |
Jumat, 31 Oktober 2025
Rabu, 29 Oktober 2025
Selasa, 28 Oktober 2025
PYHTON - SQLITE - CRUD - MASIH ERROR
import sqlite3
# FOR CREATING RECORDS FUNCTION DEFINITION
def create():
try:
con = sqlite3.connect("data.db")
cursor = con.cursor()
while (True):
name = input("Enter Name: ")
age = int(input("Enter Age: "))
gender = input("Enter Gender: ")
salary = int(input("Enter Salary: "))
data = (name, age, gender, salary,)
query = "INSERT into USERS (name, age, gender, salary) VALUES (?, ?, ?,?)"
cursor.execute(query, data)
con.commit()
ch = input("Do You want to Add More Records(Y/N): ")
if ch == "N" or ch == "n":
cursor.close()
break
else:
pass
except:
print("Error in Record Creation")
# FOR READING ONE RECORD FUNCTION DEFINITION
def read_one():
con = sqlite3.connect("data.db")
cursor = con.cursor()
ids = int(input("Enter Your ID: "))
query = "SELECT * from USERS WHERE id = ?"
result = cursor.execute(query, (ids,))
if (result):
for i in result:
print(f"Name is: {i[1]}")
print(f"Age is: {i[2]}")
print(f"Salary is: {i[4]}")
else:
print("Roll Number Does not Exist")
cursor.close()
# FOR READING ALL RECORDS FUNCTION DEFINITION
def read_all():
con = sqlite3.connect("data.db")
cursor = con.cursor()
query = "SELECT * from USERS"
result = cursor.execute(query)
if (result):
print("\n<===Available Records===>")
for i in result:
print(f"Name is : {i[1]}")
print(f"Age is : {i[2]}")
print(f"Salary is : {i[4]}\n")
else:
pass
# FOR UPDATING RECORDS FUNCTION DEFINITION
def update():
con = sqlite3.connect("data.db")
cursor = con.cursor()
idd = int(input("Enter ID: "))
name = input("Enter Name: ")
age = int(input("Enter Age: "))
gender = input("Enter Gender: ")
salary = int(input("Enter Salary: "))
data = (name, age, gender, salary, idd,)
query = "UPDATE USERS set name = ?, age = ?, gender = ?, salary = ? WHERE id = ?"
result = cursor.execute(query, data)
con.commit()
cursor.close()
if (result):
print("Records Updated")
else:
print("Something Error in Updation")
# FOR DELETING RECORDS FUNCTION DEFINITION
def delete():
con = sqlite3.connect("data.db")
cursor = con.cursor()
idd = int(input("Enter ID: "))
query = "DELETE from USERS where ID = ?"
result = cursor.execute(query, (idd,))
con.commit()
cursor.close()
if (result):
print("One record Deleted")
else:
print("Something Error in Deletion")
# MAIN BLOCK
try:
while (True):
print("1). Create Records: ")
print("2). Read Records: ")
print("3). Update Records: ")
print("4). Delete Records: ")
print("5). Exit")
ch = int(input("Enter Your Choice: "))
if ch == 1:
create()
elif ch == 2:
print("1). Read Single Record")
print("2). Read All Records")
choice = int(input("Enter Your Choice: "))
if choice == 1:
read_one()
elif choice == 2:
read_all()
else:
print("Wrong Choice Entered")
elif ch == 3:
update()
elif ch == 4:
delete()
elif ch == 5:
break
else:
print("Enter Correct Choice")
except:
print("Database Error")
#END
=============================================
import sqlite3 # Database Connectivity try: con = sqlite3.connect("data.db") cursor = con.cursor() print("Connected to Database Successfully") #Data Updating Process-(Single Row & Column) query = "Update USERS set age = 26 where id = 3" cursor.execute(query) con.commit() cursor.close() except: print("Database Error")
import sqlite3 # Database Connectivity def updation(names,idd): try: con = sqlite3.connect("data.db") cursor = con.cursor() print("Connected to Database Successfully") #Data Updating Process-(Single Row & Column) query = "Update USERS set name = ? where id = ?" cursor.execute(query,(names,idd,)) con.commit() cursor.close() except: print("Database Error") updation("Newton",3)
import sqlite3 # Database Connectivity def updation(data): try: con = sqlite3.connect("data.db") cursor = con.cursor() print("Connected to Database Successfully") #Data Updating Process-(multiple-rows) query = "Update USERS set name = ? where id = ?" cursor.executemany(query,data) con.commit() cursor.close() except: print("Database Error") data = [("Newton",3), ("Ricky",4)] updation(data)import sqlite3 # Database Connectivity def updation(data): try: con = sqlite3.connect("data.db") cursor = con.cursor() print("Connected to Database Successfully") #Data Updating Process-(multiple-rows) query = "Update USERS set name = ? where id = ?" cursor.executemany(query,data) con.commit() cursor.close() except: print("Database Error") data = [("Newton",3), ("Ricky",4)] updation(data)import sqlite3 # Database Connectivity try: con = sqlite3.connect("data.db") cursor = con.cursor() print("Connected to Database Successfully") #Data Updating Process-(multiple-columns) query = "Update USERS set name = ?, age = ? where id = ?" cursor.execute(query,("Jordan",28,4,)) con.commit() cursor.close() except: print("Database Error")import sqlite3 # Database Connectivity try: con = sqlite3.connect("data.db") cursor = con.cursor() print("Connected to Database Successfully") #Data fetching Process-(One Record) query = "SELECT * from USERS" x = cursor.execute(query).fetchone() print(x) #format print(f" ID is {x[0]} Age is {x[1]} & Name is {x[2]}") except: print("Database Error")
#Importing Database Library import sqlite3 # Database Connectivity try: con = sqlite3.connect("data.db") cursor = con.cursor() print("Connected to Database Successfully") #Data fetching Process-(Many Record) query = "SELECT * from USERS" x = cursor.execute(query).fetchmany(2) for i in x: print(f" ID is {i[0]} Age is {i[1]} & Name is {i[2]}\n") except: print("Database Error") #END
import sqlite3 # Database Connectivity try: con = sqlite3.connect("data.db") cursor = con.cursor() print("Connected to Database Successfully") #Data fetching Process-(ALL Records) query = "SELECT * from USERS" x = cursor.execute(query).fetchall() for i in x: print(f" ID is {i[0]} Age is {i[1]} & Name is {i[2]}\n") except: print("Database Error")
import sqlite3
# Database Connectivity
try:
con = sqlite3.connect("data.db")
cursor = con.cursor()
print("Connected to Database Successfully")
#Data Insertion Process
name = input("Enter Name: ")
age = int(input("Enter Age: "))
gender = input("Enter your Gender: ")
query = "INSERT into USERS(name, age, gender) VALUES (?,?,?)"
data = (name, age, gender,)
cursor.execute(query, data)
con.commit()
if(cursor.execute(query,data)):
print("Data Inserted Successfully")
else:
print("Data not Inserted")
cursor.close()
except:
print("Database Error")
import sqlite3
# Database Connectivity
try:
con = sqlite3.connect("data.db")
cursor = con.cursor()
print("Connected to Database Successfully")
#Data inserting Process-(Multiple Records)
while(True):
name = input("Enter your Name: ")
age = int(input("Enter your Age: "))
gender = input("Enter your gender: ")
data = (name, age, gender,)
query = "INSERT into USERS(name,age,gender) VALUES (?,?,?)"
cursor.execute(query,data)
con.commit()
ch = input("Do you want to Enter more Records(Y/N): ")
if ch == "n" or ch == "N":
break
else:
pass
cursor.close()
except:
print("Database Error")
import sqlite3
# Database Connectivity
def variables(name,age,gender):
try:
con = sqlite3.connect("data.db")
cursor = con.cursor()
print("Connected to Database Successfully")
#Data inserting Process-(Parameterized Query)
data = (name, age, gender,)
query = "INSERT into USERS(name,age,gender) VALUES (?,?,?)"
cursor.execute(query,data)
con.commit()
cursor.close()
except:
print("Database Error")
variables("Amanda",22,"F")













