Quantcast
Channel: DaniWeb Code Topics
Browsing all 225 articles
Browse latest View live

Delete duplicate rows in MySQL

Sometimes you need to delete duplicate rows in a database :) In the future, set UNIQUE keys when you need them :) In the example below, we have a table appropriately named TABLE_NAME and there are...

View Article


Search Student Info Fstream

Hey? Can someone help me to this program? I need to Search an specific information of a student.

View Article


java script to python

how would one convert this to python?

View Article

Formatted Integer

I solved a problem some day ago. In that problem you had to format an integer. I found it hard to solve. So here I am sharing my problem with you. Problem: Read an integer variable and print it in...

View Article

How to Find RD Muture value (Yearly,Half yearly,Quarterly, Monthly)

'call it like List1.Clear List1.AddItem RDMature(Val(Text1.Text), Val(Text2.Text), Val(Text3.Text), 12) List1.AddItem RDMature(Val(Text1.Text), Val(Text2.Text), Val(Text3.Text), 2) List1.AddItem...

View Article


A multiple timer application in Python/wxPython

This project implements a multiple timer application. It was written in Python 3.8.2 wxPython 4.1.0 Feel free to experiment. Here are some possible enhancements: Add the ability to run a program when...

View Article

Make a python script single-instance

Sometimes you want to ensure that only one copy of a script can be run at time. Windows provides a facility called a mutex and you can use it to prevent multiple instances. To create the mutex, all I...

View Article

Where to get a good antivirus software

I have recently encountered a problem that my computer always get attacked, it seems antivirus software that has been installed on my pc cant work anymore, So I am planning to get new one from...

View Article


Store database value in variable using php

For example. I have a select statement that is "select ID from students where student name ='name';" Now I don't wanna echo the student ID but I wanna store it in various where I can reuse it. How do...

View Article


how to calculate total of selected combo box items

If Me.cbobraketype.SelectedItem = ("Rim Brakes") Then braketype = ("Rim Brakes") price = "120" braketype = ("Rim Brakes") ElseIf Me.cbobraketype.SelectedItem = ("Disk Brakes") Then braketype = ("Disk...

View Article

C++ Program related question cpp file also attached

Q1. Given the partial implemenatation of Linked List, you are required to add the following functionality in the code Delete the whole list e.g. myList.deleteAll( ); Implement Linked Stack for...

View Article

problem with drawing pyramid pattern by nested loops in c++

int cols, rows; int thehead=9; for( cols = 1; cols <= thehead; cols++) { for(rows = 1; rows <= thehead; rows++) { if(((cols+rows)==5) || ((rows-cols)==5)) { cout << " "; } else { cout...

View Article

Tower game in 84 lines of pure JavaScript

Easy tutorial: https://slicker.me/javascript/tower.htm

View Article


A basic program for a cashier.

Hi there! This is a simple pascal program I wrote for a cashier. Please note that this is only a basic level program code and can't actually be used for commercial use. Thanks for reading!

View Article

FinalGradeCalculator

this is the task given to me guix i hope you can help me Create a program that will read the data from a file and save the output in another file 1.Create an input file named CS122Grades. 2.The...

View Article


INSERT UPDATE process not working

I have a snippet that inserts data in a row in a MySql database. If that data already exists the existing row should be updated. In my case, I continue to get insert only. What is wrong with this...

View Article

Working with Python, Unhiding a frame depending on numeric value in textbox

I have a Py file that consists of 100+ frames, aprox 80+ radio buttons and 65 textboxes. I have attached shortened exert from main file. Textbox 1 takes on a value when a radio button is pressed. When...

View Article


I want to keep first tab open for multiple horizontal tabs.

After page loading , when I click on the ellipsis , horizontal tabs transform from bottom of the product image . After opening of the tabs menu bar , first tab should open by default.I tried multiple...

View Article

Buttons don't work or even appear in my Java GUI in JGRASP

The Action Driver Class when it runs it just brings up a small box with java logo and close and minimize options thats all...... I have reviewd the code over and over and my instuctor said to just...

View Article

Write a program that finds the result of the series using a do whle loop

"1/2+4/55+7/8+..........."

View Article
Browsing all 225 articles
Browse latest View live


Latest Images