Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
13% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
9
Posts with Downvotes
8
Downvoting Members
5
4 Commented Posts
0 Endorsements
~32.3K People Reached
Favorite Tags
Member Avatar for dean.ong.14

Parse error: syntax error, unexpected T_IF in H:\xampp\htdocs\login.php on line 74 i don't see any mistake here? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Yakity Yak</title> <link href='http://fonts.googleapis.com/css?family=Oswald:400,300' rel='stylesheet' type='text/css'> <link …

Member Avatar for Dani
1
5K
Member Avatar for dean.ong.14

# calc.py - a Python calculator from tkinter import * # the main class class Calc(): def __init__(self): self.total = 0 self.current = "" self.new_num = True self.op_pending = False self.op = "" self.eq = False def num_press(self, num): self.eq = False temp = text_box.get() temp2 = str(num) if self.new_num: …

Member Avatar for Gribouillis
0
14K
Member Avatar for dean.ong.14

how can i produce my buttons using while loop and a list if stirng # python 2.x #from Tkinter import * #from tkFont import Font # python 3.x from tkinter import * from tkinter.font import Font def button(frame, text, command=None): ft = Font(family=('Verdana'), size=14) return Button(frame, text=text, font=ft, width=3, command=command) …

Member Avatar for vegaseat
0
239
Member Avatar for dean.ong.14

how do i backspace from last number and also clear th? last equation and add a quit button????????? from tkinter import * from tkinter.font import Font def button(frame, text, command=None): ft = Font(family=('Verdana'), size=14) return Button(frame, text=text, font=ft, width=3, command=command) def frame(frame, side=LEFT, bg="black"): f = Frame(frame, background=bg, padx=5, pady=5) …

Member Avatar for TrustyTony
0
481
Member Avatar for dean.ong.14

Fatal error: Call to undefined function dean-ueki@hotmail.com() in F:\xampp\htdocs\contact.php on line 87 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Yakity Yak</title> <link href='http://fonts.googleapis.com/css?family=Oswald:400,300' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Abel|Satisfy' rel='stylesheet' type='text/css'> <link href="style.css" …

Member Avatar for pzuurveen
0
207
Member Avatar for dean.ong.14

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in F:\xampp\htdocs\s.php on line 95 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR...l1-strict.dtd"> <!-- --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Yakity Yak</title> <link href='http://fonts.googlea...=Oswald:400,300' rel='stylesheet' type='text/css'> <link href='http://fonts.googlea...css?family=Abel|Satisfy' rel='stylesheet' …

Member Avatar for diafol
0
342
Member Avatar for dean.ong.14

"The page isn't redirecting properly" <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR...l1-strict.dtd"> <!-- --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Yakity Yak</title> <link href='http://fonts.googlea...=Oswald:400,300' rel='stylesheet' type='text/css'> <link href='http://fonts.googlea...css?family=Abel|Satisfy' rel='stylesheet' type='text/css'> <link href="style.css" rel="stylesheet" type="text/css" media="screen" /> </head> <body> <div …

Member Avatar for dean.ong.14
-1
177
Member Avatar for dean.ong.14

I know this is stupid but how do i add a quit button? from tkinter import * from tkinter.font import Font def button(frame, text, command=None): ft = Font(family=('Verdana'), size=14) return Button(frame, text=text, font=ft, width=3, command=command) def frame(frame, side=LEFT, bg="black"): f = Frame(frame, background=bg, padx=5, pady=5) f.pack(side=side, expand=YES, fill=BOTH) return f …

Member Avatar for dean.ong.14
0
193
Member Avatar for dean.ong.14

raceback (most recent call last): File "C:/Python32/n", line 1, in <module> from Tkinter import * # button text list cmdlst = ['7', '8', '9', '+', '%', '4', '5', '6', '-', '**', '1', '2', '3', '*', '//', '.', '0', 'CL', '/', '='] class MyButton(Button): backref = None def Click(self): # back …

Member Avatar for sneekula
0
753
Member Avatar for dean.ong.14

Notice: Undefined index: username in C:\Users\User\l\htdocs\register.php on line 12 Notice: Undefined index: password in C:\Users\User\l\htdocs\register.php on line 13 <html> <body> <?php $connect=mysql_connect("localhost","root",""); $db_selected = mysql_select_db("users", $connect); if(isset($_POST['register'])){ $username = $_POST['username']; $password = $_POST['password']; if(!$username || !$password){ echo "One of the fields are empty"; }else{ $find_multiple=" SELECT username FROM resgistration WHERE …

0
100
Member Avatar for dean.ong.14

ok so i am trying to do multiple checkboxes that will directed to their own page with a single submit but not working <form action ="trip1.php" method="post" name="form1"> <p><input type="checkbox" name="agree" /> Auckland</p> </form> <form action ="trip.php" method="post" name="form2"> <p><input type="checkbox" name="agree" /> North Shore</p> <p><input type="checkbox" name="agree" /> Waikato</p> …

Member Avatar for diafol
0
175
Member Avatar for dean.ong.14

Notice: Undefined variable: result in C:\Users\User\Desktop\Desktop\htdocs\trip1.php on line 67 Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in C:\Users\User\Desktop\Desktop\htdocs\trip1.php on line 67 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> …

Member Avatar for Assembly Guy
-1
8K
Member Avatar for dean.ong.14

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\registration\r­egistration.php on line 66 i already tried mysqli_error() and does not fix this problem <html> <head> <title>Registration Form</title> </head> <body> <form method='post' action='registration.php'> <table width='400' border='5' align='center'> <tr> <td><h1>Registration Form</h1></td> </tr> <tr> <td>User Name:</td> <td><input type='text' name='name'/></td> </tr> <tr> …

Member Avatar for dean.ong.14
0
1K
Member Avatar for dean.ong.14

i want to make sure that people can quit in the middle of the game and the question is random not in order... please help me.. # make input equal to Python3 style input even in Python2 import random try: input = raw_input except: pass question =" " print("Welcome to …

Member Avatar for dean.ong.14
0
440
Member Avatar for dean.ong.14

I stuck at the part about how many question they want for their game.This is the requrirement. Write a program for an application that let the user host a quiz game. The application will have a collection of questions with short answers. The program should ask the user how many …

Member Avatar for dean.ong.14
-2
170
Member Avatar for dean.ong.14

My import random not working...... can anyone help me? and i need to make sure that people can quit in the middle of the quiz... THX import random # make input equal to Python3 style input even in Python2 def question (): try: input = raw_input except: pass question =" …

Member Avatar for dean.ong.14
0
285
Member Avatar for dean.ong.14

i need help. i want to make sure that people can ask how many question the want to answer in my quiz. how can i do that? # make input equal to Python3 style input even in Python2 try: input = raw_input except: pass print("Welcome to my yes or no …

Member Avatar for dean.ong.14
0
99
Member Avatar for dean.ong.14

how to loop and how to add score? and i want to make sure that people can ask how many question the want to answer in my quiz. how can i do that? # make input equal to Python3 style input even in Python2 try: input = raw_input except: pass …

Member Avatar for dean.ong.14
0
134
Member Avatar for dean.ong.14
Member Avatar for dean.ong.14

` print "Welcome to my quiz" begin = raw_input("would you like to begin?: ") if begin =="yes": print "A)True" print "B)False" q1 = raw_input("Is Steve Jobs is the founder of Apple?") if q1 == "A" or q1 == "a": print "well done! you got it right!" else: print "thanks for …

Member Avatar for 铃
0
112
Member Avatar for dean.ong.14
Member Avatar for dean.ong.14

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in G:\xampp\htdocs\Thorndon.php on line 57 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name = "description" content = "Wellington Real Estate"/> <meta name = "keywords" content = "home, housing, Karori, Mirimar, Te Aro, Thorndon, …

Member Avatar for jwer
0
91
Member Avatar for dean.ong.14

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name = "description" content = "Wellington Real Estate"/> <meta name = "keywords" content = "home, housing, Karori, Mirimar, Te Aro, Thorndon, Farcourts, Jonnys, Relax"/> <title> Agents </title> <link rel = "stylesheet" type = "text/css" href = "assessment.css"/> </head> …

Member Avatar for rpv_sen
0
257
Member Avatar for dean.ong.14

<html> <head> </head> <body> <table border='1'> <tr> <th>Agent_ID</th> <th>Address</th> <th>Bedrooms</th> <th>Price</th> <?php $connect=mysql_connect("localhost","root",""); mysql_select_db("ong_assesment',$connect); $query = mysql_query (SELECT Agent_ID,Address/Suburb,Bedrooms/Bathrooms,Price FROM suburbs); { echo '<tr>'; echo '<td>'. $row[Agent_ID].'</td>'; echo '<td>'. $row[Address].'</td>'; echo '<td>'. $row[Bedrooms].'</td>'; echo '<td>'. $row[Price].'</td>'; echo '</table>' mysql_close(); } ?php> </body> </html>

Member Avatar for phorce
0
250
Member Avatar for dean.ong.14

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name = "description" content = "Wellington Real Estate"/> <meta name = "keywords" content = "home, housing, Karori, Mirimar, Te Aro, Thorndon, Farcourts, Jonnys, Relax"/> <title> Agents </title> <link rel = "stylesheet" type = "text/css" href = "assessment.css"/> </head> …

Member Avatar for phorce
0
142