16,016,962 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 15021280 (Top 8 by date)
Member 15021280
6-Nov-22 17:24pm
View
def course_options():
cursor = mysql.connection.cursor()
cursor.execute(''' SELECT course_code, name, college_code FROM course ''')
courses = cursor.fetchall()
options = [ tuple(course.values()) for course in courses]
return options
def college_options():
cursor = mysql.connection.cursor()
cursor.execute(''' SELECT college_code, name FROM college ''')
colleges = cursor.fetchall()
options = [tuple(college.values()) for college in colleges]
return options
Member 15021280
6-Nov-22 17:24pm
View
@student_bp.route('/college_search', methods=["POST", "GET"])
def college_search():
search_form = SearchCollegeForm()
form = CollegeForm()
field = search_form.search_field.data
searchby = search_form.search_by.data
cursor = mysql.connection.cursor()
if(searchby == 'all'):
cursor.execute(''' SELECT * FROM college WHERE college_code REGEXP %s or
name REGEXP %s ''', ([field], [field]))
colleges_data = cursor.fetchall()
if(searchby == 'college_code'):
cursor.execute(''' SELECT * FROM college WHERE college_code REGEXP %s ''', [field])
colleges_data = cursor.fetchall()
if(searchby == 'name'):
cursor.execute(''' SELECT * FROM college WHERE name REGEXP %s ''', [field])
colleges_data = cursor.fetchall()
flash("Search results for \" {} \"".format(field),
"success")
return render_template('college/view_colleges.html',
colleges_data=colleges_data,
search_form=search_form,
form=form,
title='Search Results')
def course_options():
cursor = mysql.connection.cursor()
cursor.execute(''' SELECT course_code, name, college_code FROM course ''')
courses = cursor.fetchall()
options = [ tuple(course.values()) for course in courses]
return options
def college_options():
cursor = mysql.connection.cursor()
cursor.execute(''' SELECT college_code, name FROM college ''')
colleges = cursor.fetchall()
options = [tuple(college.values()) for college in colleges]
return options
Member 15021280
20-Mar-22 9:09am
View
Good evening, the problem is that my code so far runs in the terminal it is still not a GUI . I want to turn it into a GUI. Thank you
Member 15021280
10-Oct-21 5:20am
View
I have 1 error message and this comes from this part of the code
// The default constructor
DList()
{
curr = tail = head = new DLink<e>(NULL);
cnt=0;
} And tHE ERROR MESSAGE IS |97|error: no matching function for call to 'DLink<int>::DLink(NULL)'|
Member 15021280
9-Oct-21 2:51am
View
I am having trouble withe the
// The default constructor
DList()
{
//
// ??? - implement this method
//
}
// The class destructor
~DList()
{
//
// ??? - implement this method
//
}
based on what I have tried it send errors // The default constructor
DList()
{
DLink<e> *newLink = new Link <e>(NULL);
assert(newLink != NULL);
curr = tail = head = newLink;
cnt=0;
}
// The class destructor
~DList()
{
DLink<e> *linkPtr, *tempPtr;
linkPtr = head
while (linkPtr != NULL)
{
tempPtr = linkPtr;
linkPtr = linkPtr-> next();
delete tempPtr;
}
}
Member 15021280
25-Jun-21 2:01am
View
i want to display a label history for my scientific calculator but my code doesnt work at all. The history that I want to display is the equation that I inputed in the calculator and tha answer. I would understand if you are having a hard time to understand my problem report because I accept it is my fault that the report was lacking,
Member 15021280
25-Jun-21 1:56am
View
history_string = ttk.StringVar()
history_label = ttk.Label(calculator, textvariable=history_string,
font=("TkDefaultFont", 12), wraplength=600)
history_label.grid(row=0, column=11, columnspan=5)
history_string.set(history_string.get() + "\n" + function + "g" + str(value) + "(" + " " + " ) = " + display.get())
Member 15021280
16-Mar-21 9:59am
View
When answering a question please:
3.If a question is poorly phrased then either ask for clarification, IGNORE IT, or edit the question and fix the problem. INSULTS ARE NOT WELCOME.
4. Don't tell someone to read the manual. Chances are THEY HAVE AND DON'T GET IT. Provide an answer or MOVE ON TO THE NEXT QUESTION.
Let's work to help developers, not make them feel stupid.
Show More