199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Sahishnu

My php code to populate drop downs look like this: <head> <title>STOCKINSERT</title> <?php session_start(); $conn = new mysqli('localhost', 'root', 's', 'smv') or die ('Cannot connect to db'); $result = $conn->query("select code, name from itemname"); $hvo = $conn->query("select code, name from hvomaster where TYPE=1"); $spoke = $conn->query("select code, name from hvomaster …

Member Avatar for hericles
0
241
Member Avatar for RikTelner

Recently I opened game with "hex editor". You know, it's kind of program for newbies that makes it able to read program in hexadecimal code and make it able to turn, or rather read code and try to reverse engineer it by turning hexa's into Assembler commands(?). And then I …

Member Avatar for gusano79
0
223
Member Avatar for FruitPunch

I can't figure out the code for, 1) Get an error message dialog when there's no input in the textfield. 2) Get an error message when you put alphabets or other characters except for numbers.

Member Avatar for Freaky_Chris
0
264
Member Avatar for adsegzy

Hello Friends, Am working on a greeting card project (like www.funkypigeon.com) where after customizing a card, you can submit it to DB and a thumbnail of what you created will be generated. At submitting the card, I generate d customization in txt like below.But how do i generate a thumnail …

Member Avatar for cereal
0
436
Member Avatar for GoneGirl

SO i feel totally annoying but I got to ask for advice. As you see in the title im trying to call a constructor from an other class. Im trying to add and create a new gymMember for every weight that is found in the file into a new array …

Member Avatar for GoneGirl
0
165
Member Avatar for ademmeda

Hi, I have the following code in my .htaccess file to block an IP from accessing a file on my site and it works fine. <Files mypage.html> Order Deny,Allow Deny from XXX.XXX.XXX.XXX </Files> Is there a way to block an IP from accessing a page (e.g., mydomain.com/mypage/)? Thanks for a …

Member Avatar for cereal
0
289
Member Avatar for aditya55

[B]Can anybody tell me that session can be use in windows Form if yes how?.....[/B][/B]

Member Avatar for ChrisHunter
0
566
Member Avatar for PinoyDev

Good day! I have a listview loaded in a form in a **lvwIcon** view with checkboxes enabled.. I have checked some items from it, let say 5 items. Now when I switch the view to **lvwReport**, the checked items are gone. How to make it selected again? Thank you for …

Member Avatar for PinoyDev
0
183
Member Avatar for My_1

I got 1 when i pass button and if i pass the second timeis still 1 not is ++ int click = 0; public ButtonHandler(int x, int y, MineGrid g) { row = x; col = y; grid = g; } public void actionPerformed(ActionEvent event) else { click ++; JButton …

Member Avatar for My_1
0
181
Member Avatar for OMER AHMED

why i am receiving this error and how i can solve it See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.IndexOutOfRangeException: Index was outside the bounds of the array. at WindowsApplication1.fol_hide.fol_hide_Load(Object sender, EventArgs e) in D:\Projects\3 …

Member Avatar for OMER AHMED
0
740
Member Avatar for Papa_Don

Group, In a post in VB 4/5/6, I question how to open a file with a wildcard as the file extension ([https://www.daniweb.com/software-development/visual-basic-4-5-6/threads/488809/accessing-a-file-with-a-ever-changing-name](null). That worked fine for VBA. However I'm trying to do the same thing using VB.net. I'm having trouble finding the correct syntax. I hope you can help. Specifically, …

Member Avatar for Papa_Don
0
4K
Member Avatar for Noorul Ariff

Hi Friends, I want to do a project for Parsing Resume in C#. i.e when we upload resumes(More than 100), it should extract Name, email id, phone no, skills. **Please don't tell that software’s are available. I tried those soft wares, but they are not working properly.** So, I wanted …

Member Avatar for overwraith
0
1K
Member Avatar for CodyOebel

OK down below where my IDM button is under WM_COMMAND: is my checkbox processing body. Under WM_CREATE is the checkbox being created. The problem is my application always starts with the check box checked, and will NOT let me uncheck it with the mouse. Please help would be great! /********************************************************************/ …

Member Avatar for CodyOebel
0
677
Member Avatar for CodyOebel

Can someone please tell me why when I check one of my boxes, and click the button I get no message box in accordance to which checkbox I checked. #include <windows.h> #include <dos.h> #include <stdlib.h> #include <fstream> using namespace std; #define IDC_MAIN_BUTTON 101 // Button identifier #define IDC_MAIN_EDIT 102 // …

Member Avatar for CodyOebel
0
1K
Member Avatar for ericcarver

Hello. I am tasked with making a small survey for internal use. I have the HTML made up where it asks for a incident number (6 digit number) and has 15 checkbox items. Users here will goto the survey as needed, type in an incident number and check the box …

Member Avatar for diafol
0
731
Member Avatar for Labdabeta

Hello, I posted on this forum two times before about a particular pair of non-printing characters being inserted into my code. You can find the threads [here](https://www.daniweb.com/software-development/threads/441611/stray-non-printing-characters-in-my-programs) and [here](https://www.daniweb.com/software-development/cpp/threads/450296/arbitrarily-appearing-non-printing-character). Two great posters tried their best to solve this problem (mike_2000_17 and deceptikon) to no avail. Finally, using the hints that …

0
157
Member Avatar for veselin.lalov.3

I want to get the occurence of the symbol ';' for each line of this C program. I type the name of the file Source.c and try to count the occuring symbol, but i am getting the value for ALL of the ';' for each line. #include <stdio.h> #include <stdlib.h> …

Member Avatar for Labdabeta
0
160
Member Avatar for AntonyRayan

<? abstract class BaseData { protected $connection; public function __construct($connection) { $this->connection = $connection; } abstract public function connected(); abstract public function get(); } class UserData extends BaseData { public function exists() { return is_connected($this->connection); } public function get() { return get_data($this->connection); } } $UserData = new UserData(new Connection()); ?> …

Member Avatar for diafol
0
203
Member Avatar for CodeWarrior14

Hello everyone, I'm new here - just joined. I'm strugling with a bit of code. Im trying to check if a number is a prime number, but my program produces weird results. Herse the code: { Vefies if a value is prime. } function TMactacHash.IsPrime(value: integer): boolean; var i, overValue: …

Member Avatar for CodeWarrior14
0
323
Member Avatar for amith_ami

hi all... how to categorize multiple values in a table field. for ex:- id Field 1 Adult 2 Adult 3 Child 4 Child 5 Senior 6 Senior i.e, 3 category Adult as 1,Child as 2, Senior as 3 i want the result as like this count catname 1 of 1 …

Member Avatar for diafol
0
210
Member Avatar for StarZ

How come this program doesn't run? Well.. not just this program, all my other ones. There are no mistakes, I wrote the code as this textbook says but its not running and its giving this error (on dr java): 1 error found: File: (no associated file) [line: (no source location)] …

Member Avatar for stultuske
0
428
Member Avatar for samishaikh

Problem Your task is to write a program that plays the game of life. This game is a computer simulation of the life and death events in a population of single-cell organisms. Each position in a two-dimensional grid (Petri dish) can support one cell. The program determines whether each position …

Member Avatar for chahinez.abdelo.9
0
537
Member Avatar for jonardy

This class is designed to test the efficiency of the two search models. You will simultaneously populate both arrays with the same random numbers. This will guarantee that both arrays have the exact same content. Sort only ONE array using Arrays.sort. This sorted array will be used with the bin_search …

Member Avatar for jonardy
0
120
Member Avatar for ZeroEddy

Hi im new to python and am trying to make a simple tank game where I want the tank gun to follow the position of the mouse cursor. Im am having some trouble in doing this. Below is my code. Whenever I run I get an error. So far I …

Member Avatar for ZeroEddy
0
415
Member Avatar for hijran khan

book a seat and move to user histoy page and see his booked seats . is this a good way ? what should i do , i do not know :( (airline seat reservation) <?php session_start(); if(!isset($_COOKIE['loggedin'])){ header("location:index.php"); } ?> <html> <head> <title><?php echo $_SESSION['user'];?></title> <style type="text/css"> h5 { position: …

Member Avatar for Taywin
0
226
Member Avatar for yaya1234

Hey, I would like to break one char for example "t6" into to chars t and 6 look at what i did... int a,b; temp = *arraystr[2] % '10'; a = temp - '0'; temp = *arraystr[2] / '10'; b = temp - 'a';

Member Avatar for sepp2k
0
116
Member Avatar for ahvic4u

[CODE]<html> <style> #playingArea { position: absolute; top: 1; left: 1; border: 5px solid black; width: 750; height: 720; z-index: 2; } #basket { position: absolute; top: 650; left: 228; width: 64; height: 16; } </style> <script type="text/javascript" language="Javascript"> var basket; var basketLeft = 228; function keyListener(e) { e = window.event; …

Member Avatar for Taywin
0
2K
Member Avatar for Papa_Don

Group, I'm taking a text file that is storing ID numbers in a single column that looks like this: 123 3050 3971 I'm looping through the text file line for line and putting each ID number into a textbox. My question is: Am I writing this code the most efficient …

Member Avatar for Papa_Don
0
3K
Member Avatar for muhammadshahroz
Member Avatar for GoneGirl

Hi guys, Im trying some stuff out in java but im a little stuck and confused by stackoverflow answers so I wanted to ask here if its ok. I have a lot of code but I just took out this one little part that i wanna be able for a …

Member Avatar for GoneGirl
0
139
Member Avatar for kidkardel

Hi again. I am on the part where I am ready to publish my .cs program and tried to install it to my friends pc when I noticed it doesnt connect to the sql and just makes an error, I noticed that i declared all my paths like this: Sample …

Member Avatar for mridul.ahuja
0
168
Member Avatar for Slavi

Hey guys, some of you might know me from other sub sections of Dani Web. I am about (just started) to learn Python. And not just learn but possibly make it my prefered language over all. So, I've read the thread from `vegaseat` for beginners and it has a link …

Member Avatar for vegaseat
0
240
Member Avatar for Vahid_1

Hi, This two parts of code both are intended to do one thing. get two numbers from user, calculate sum between them. print it. now only the first code is working properly. second one is faulty. but why? what's the problem? code no1: #include <stdio.h> int main() { int n, …

Member Avatar for jnneson
0
91
Member Avatar for Reena_1

I have these two script which work differently & want to merge as one.I tried lot,either script A work or script B,but not working together in single.Pls help to write them as single. Script A: <?php $target_dir = "uploads/"; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $uploadOk = 1; $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); …

Member Avatar for Taywin
0
336
Member Avatar for jovstudios

Hello Guys, I dont know how to do these, i have a existing code from the internet and use it and Successful Ok. But i dont kow how to save this to database. can you please help me guys? thanks in advance this is my code <link rel="stylesheet" href="../css/bootstrap-3.1.1.min.css" type="text/css" …

Member Avatar for Taywin
0
1K
Member Avatar for har58

Hi, I have created TY.py. The Ty.py file executes and runs successfully. I am trying to make its executable using py2exe and by creating setup.py. It is not able to include the requests. I think it is because 'requests' is not present in 'include' folder for python27. The path of …

Member Avatar for vegaseat
0
1K
Member Avatar for smurfy

Hi everyone ; Thanks to Dani, there are lots of links provided around the topics like this. I am a single Java programmer, writing short java programmes in Eclipse. However, i need to work with others and produce long but managable java codes. Briefly my ambition is : 1.Creating some …

Member Avatar for smurfy
0
507
Member Avatar for TIP.Synergy
Member Avatar for imti321

<?php include 'Classes/PHPExcel.php'; include 'Classes/PHPExcel/Writer/Excel2007.php'; include 'Classes/PHPExcel/IOFactory.php'; require_once 'Spreadsheet\Excel/Writer.php' ; require_once 'Spreadsheet\Excel\Writer/Workbook.php' ; //E:\Program Files\EasyPHP-DevServer-14.1VC11\data\localweb\generer\Spreadsheet\Excel\Writer try { echo date('H:i:s') . " Create new PHPExcel object\n"; echo "redderr " ; $data = new Spreadsheet_Excel_Reader("GenerationDesNoeuds.xls"); $data->dump($row_numbers=false,$col_letters=false,$sheet=0,$table_class='excel') $workbook = new Spreadsheet_Excel_Writer('GenerationDesNoeuds.xls'); $worksheet =& $workbook->addWorksheet('My first worksheet'); if (PEAR::isError($worksheet)) { die($worksheet->getMessage()); } $workbook->close(); exit …

Member Avatar for imti321
0
355
Member Avatar for wesam.teto.9

Similarity(X,Y): For i = 0,...,m: SIM[i,0] = i*g For j = 1,...,n: SIM[0,j] = j*g For i = 1,...,m: For j = 1,...,n: SIM[i,j] = max( SIM[i-1,j-1] + s(X[i],Y[j]), SIM[i-1,j]+g, SIM[i,j-1]+g ) EndFor EndFor Return SIM[m,n]

Member Avatar for Gribouillis
0
229
Member Avatar for ali11

getting following error: incompatible types: vmpr cannot be converted to JFrame JFrame VendingMachine = new vmpr(); import java.awt.Container; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JLabel; import java.awt.*; import javax.swing.*; import javax.swing.JFrame; public class vmgu extends JFrame implements ActionListener { public JButton button[]; public JLabel label; public JLabel label2; public …

Member Avatar for stultuske
0
349
Member Avatar for mjsv

i need a topic proposal for my thesis.. Please give any suggestion

Member Avatar for Schol-R-LEA
0
79
Member Avatar for Tigr@

do { Console.Write(" <jaar 1582 - 2500>..."); } while(!int.TryParse(Console.ReadLine(), out jaar) && jaar < 1582); Why doesn't this work in C#? you can't test a integeren in a do while when there's a tryparse apperently whats the best way of doing this? Thank you for your time.

Member Avatar for Tigr@
0
168
Member Avatar for EdJones

As part of a study exercise I wrote a procedural script and would like to ask whether anyone has a more polished version. Your version can be procedural or object oriented. #! /usr/bin/env python3 # This script simulates a monkey on a typewriter trying to come up with one sentence …

Member Avatar for Gribouillis
0
134
Member Avatar for rela

Could someone please tell me how I can run my C++ code using Command prompt? How should I open it, and what I need to write? And if there are more than one text files in my code including input data, how I can choose one of them to run …

Member Avatar for CodeWarrior14
0
414
Member Avatar for haulover

Reading Stroustrup: Programming -- Principles and Practice Using C++, chapter 4, exercise 4: "Write a program to play a numbers guessing game. The user thinks of a number between 1 and 100 and your program asks questions to figure out what the number is (e.g., "Is the number you are …

Member Avatar for Maritimo
0
383
Member Avatar for msz900

Dear user I write a file upload code in php, the code work's fine but it will upload the file 50kb to 60kb, when i try to upload more then 50kb to 60 kb file then the page stuck on loading. The problem is why it is not uploading more …

Member Avatar for imti321
0
403
Member Avatar for Pompy

Hi! Im trying to do this class work for Comp Programming class! This is the assignment. Using integer and modulus division, determine how a deck of 52 cards can be represented by randomly generating 52 numbers(1 to 52). Each Number should have a value and a suit ( Ex: 4 …

Member Avatar for Pompy
0
89
Member Avatar for Simon180

Am crating abit of code to save and add a menuitem to main menu but am having a small problem when reloading the saved lobby.dat file when its saved it should be save just click the lobby name is below **Support Group Lobby=56** but it keeps thinking the space is …

Member Avatar for SalmiSoft
0
155
Member Avatar for rasha80

i want to build program that recive (c code in txt file) then searching for words (int , double, char, float) and count number of vaiables appear according to that. then store the variables in array (e.g. int x; i want to store X in array and so on). i …

Member Avatar for rasha80
0
213

The End.