64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for dayanadolce

//i have made a function. but i can't call the function generateOrderedArray() as it says there is a Fatal error. help me! this //is my coding <form action="" method="post" enctype="multipart/form-data"> <html> <table> <tr> <td> <input name="location" type="radio" value="Jasin">Jasin <input name="location" type="radio" value="Merlimau">Merlimau</div></td> </tr> <tr> <td> <input type="submit" name="submit" value="Search" class="butoonfunction" …

Member Avatar for dayanadolce
0
366
Member Avatar for smurfy

Hello Geeks; In the eve of new year i have some fresh topics for you. I heard that web is full of real life oop design samples and comprehensive object oriented design guides. Which sites would you offer or which tutorial sequence should i follow ??? PS. Of course other …

Member Avatar for JamesCherrill
0
234
Member Avatar for bonzo2008

Hi I have manage to install vb5 and trheed32.ocx Trying to install vb6 okej. when I go to components and mark sheridan then it comes up that threed32.ocx is not a valid ocx. Confused how can vb5 run with threed32 and vb6 **NOT** Any help it will help me lot. …

Member Avatar for bonzo2008
0
152
Member Avatar for lithium112

var query = (from dt1 in dta.AsEnumerable() join dt2 in dtb.AsEnumerable() on dt1.Field<string>("column1") equals dt2.Field<string>("column1") into outer from Dt2 in outer.DefaultIfEmpty() group new { Dt2 } by new { SearchKey = dt1.Field<string>("SearchKey") } into g select new { Status = g.Select(r => r.Dt2) == null ? string.Empty : g.Select(r => …

Member Avatar for lithium112
0
2K
Member Avatar for AntonyRayan

This is my output tabe: name SUM(billing.quantity) SUM(billing.total) SUM(billing.discount) SUM(billing.price) pen 4 40 8 32 pencil 3 15 2 13 rubber 1 2 1 1 Using : SELECT productmaster.name, SUM(billing.quantity), SUM(billing.total), SUM(billing.discount), SUM(billing.price) FROM billing AS billing LEFT JOIN productmaster AS productmaster ON (productmaster.id = billing.pid) GROUP BY billing.pid ORDER …

Member Avatar for AntonyRayan
0
180
Member Avatar for mark103

Hi guys I need a bit of your help. I've created the variables that I want to store a list of arrays outside the for loop. I have got a problem with the code that I currently using. When I try this: import xbmc import xbmcgui import xbmcaddon class ProgramControls(object): …

Member Avatar for mark103
0
658
Member Avatar for exoruel

Good day everyone! I have the codes for such a problem where, to create a program that counts how many times the second string appears on the first string. Here it is: #include <iostream> #include <conio.h> using namespace std; int main () { char first [100], second; int count; cout …

Member Avatar for exoruel
0
370
Member Avatar for AntonyRayan

This is my billing table in my sql: id pid quantity total discount price customer 1 1 2 20.00 5.00 15 a 2 1 2 20.00 3.00 17.00 a 3 2 3 15.00 2.00 13.00 b 4 3 1 2.00 1.00 1.00 a This is my product master table id …

Member Avatar for AntonyRayan
0
234
Member Avatar for lloyd.farrell.7

Hi Everyone, I have the follow RewriteRule in my htaccess file that works as it should RewriteRule ^(.*)$ /product.php?pid=$1 [QSA,L] If I wanted to add another product page would I just need to add RewriteRule ^(.*)$ /productpage.php?ppge=$1 [QSA,L] for the Rule to work correctly? Thanks in advance

Member Avatar for lloyd.farrell.7
0
155
Member Avatar for rhada79

Need Assistance Please. My code is not adding the size and the toppins: import javax.swing.*; import javax.swing.border.*; import java.awt.*; import java.awt.event.*; import java.util.EventObject; public class PizzaCalculator extends JFrame implements ActionListener { JPanel westPanel = new JPanel(); JPanel eastPanel = new JPanel(); JPanel centerPanel = new JPanel(); JPanel northPanel = new …

Member Avatar for rhada79
0
3K
Member Avatar for Steven_10

Hello I am studying for the 1Z0-803 (Oracle Certified Associate, Java SE 7 Programmer) exam and I have the hardest time with following the flow of nested loops. On practice tests I do ok on more complex concepts like polymorphism but I miss over half of question with nested loops. …

Member Avatar for JamesCherrill
0
278
Member Avatar for somayyah
Member Avatar for sana.f.qureshi_1

Hey all, so i am working on database queries. Add and delete are working fine. I am having trouble with Edit Query. This is what i am getting: Incorrect syntax near 'Name'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace …

Member Avatar for sana.f.qureshi_1
0
497
Member Avatar for OMER AHMED

i am making a security program which only administrator can run. now i place one checkbox in registration form that if the user is administrator then he will check that box and program will not ask for " run as administrator" now i need code for checkbox something like if …

Member Avatar for OMER AHMED
0
116
Member Avatar for saly.alsayed.7

1) When the program is executed, it asks the user to enter a password 2) When the user enters password, its characters should not appear and * must appear for each character. 3) The program compares this password with hardcoded constant password (e.g. pass DB ‘Abc123’). 4) If the entered …

Member Avatar for saly.alsayed.7
0
275
Member Avatar for imti321

i am missing something <?php $target = "images/dars/"; $target = $target . basename( $_FILES['uploaded']['name']) ; $ok=1; if (file_exists($_FILES['uploaded']['tmp_name'])) { echo "Sorry, file already exists."; $Ok = 0;} //This is our limit file type condition if ($target!=="image/jpg") { echo "You may only upload jpg files.<br>"; $ok=0; } //Here we check that …

Member Avatar for imti321
0
207
Member Avatar for Zaprzap

This is the first time I have felt a smidgen of fear when learning C++. I am doing an exercise in *Accelerated C++* and the fear is that I'm not appropriately handling memory. I'll list my code below but I figured I would give some specific questions first: 1. Is …

Member Avatar for Zaprzap
0
231
Member Avatar for Papa_Don

Hello Group! I am in need of converting a "text" file created by a UNIX based program (it is only semi-formatted) and put it into a more-formatted text (.txt) file. Put a different way, this needs to be converted such that it can be opened in Notepad and it be …

Member Avatar for Papa_Don
0
671
Member Avatar for jean_5
Member Avatar for EdJones

Which class structure is better for what purposes. This one: class Text: def __init__(self, passage): self.s = passage def read_text(self): return self.s def grow(self, sentence): self.s = self.s + sentence.s class Sentence(Text): def __init__(self, sentence): Text.__init__(self, sentence) self.s = sentence def format(self): self.s = self.s[:1].title() + self.s[1:len(self.s)-1] + ". " …

Member Avatar for EdJones
0
158
Member Avatar for 4evrmrepylrning

I'n trying to convert a dbf file to a csv file(or anything else really). I found this on the interwebs but I get an error import csv from dbfpy import dbf import sys dbf_fn = 'in.dbf' csv_fn = 'out.csv' in_db = dbf.Dbf(dbf_fn) out_csv = csv.writer(open(csv_fn, 'wb')) names = [] for …

Member Avatar for Nisar222
0
13K
Member Avatar for humorousone

Is there a good pratice for naming form controls which are purely cosmetic? If not, any suggestions for variable names for these controls? E.g A label (which never changes) above a text box.

Member Avatar for humorousone
0
261
Member Avatar for stan3688

Hello Guys, its my first few months on progamming, love the course but things are abit confusing at the moment, i have this assignment below, pls i will appreciate if anyone can help me out. Write a program to accept a number of scores from a user. Use floating point …

Member Avatar for Gribouillis
0
239
Member Avatar for Violet_82

HI guys, I'm having a problem with hiding and showing a panel that contains a text box. Basically the panel is hidden and whenever a radio box is selected the panel should show but it won't work. Here is the code: <div class="expensesForm"> <div class="control-group"> <label class="control-label" for="rent">Rent</label> <div class="controls"> …

Member Avatar for Violet_82
0
2K
Member Avatar for Violet_82

Hi all, I just came across something odd. I'm just building a simple form, like this in visual studio <div class="control-group"> <label class="control-label" for="rent">Rent</label> <div class="controls"> <asp:RadioButton ID="rent" runat="server" GroupName="expenses" /> </div> </div> and when I viewed it, I expected to be able to click on the label and get …

Member Avatar for Violet_82
0
4K
Member Avatar for chahinez.abdelo.9

product between 2 arrays of 2 dimensions and be the score is stored in another array using ecplise and gridsim for exemple: mat3[i][j]= mat1[i][j]* mat2[i][j]

Member Avatar for chahinez.abdelo.9
0
194
Member Avatar for iamthwee

Hi guys, This one has got me completely stumped. Here are my trouble shooting notes. My upload script works absolutely fine without any changes on localhost. However, on the live production server my files do not get uploaded. My view is: <?php echo form_open_multipart('upload/do_upload');?> <input type="file" name="userfile" size="20" /> <br/> …

Member Avatar for iamthwee
0
9K
Member Avatar for davy_yg

I have some errors while trying to fix the following codes: update_image2.php <?php //LOAD IMAGE TABLE if (!empty($_GET['image_id'])){ $result = mysql_query("SELECT * FROM image_upload WHERE image_id='".$_GET['image_id']."'") or die(mysql_error()); $data = mysql_fetch_array($result); $image_id = $_GET['image_id']; $newfilename = $data['newfilename']; $class = $data['class']; $location = $data['location']; $minwidth = $data['minwidth']; $maxwidth = $data['maxwidth']; $minheight …

Member Avatar for matrixdevuk
0
894
Member Avatar for mark103

Hi guys, I'm working on my python script to get the list of elements in the arrays. I'm using the variable `position_x = elem.getX()` to get the list of pixel size for the elements. Here is the output: 18:32:12 T:4060 NOTICE: 375 18:32:12 T:4060 NOTICE: 724 18:32:12 T:4060 NOTICE: 1073 …

Member Avatar for Gribouillis
0
246
Member Avatar for Jesi523

Hello, I need a little help with trigger, I have been doing database development for a long time now but this is my first go around at a trigger. It is not working, can someone please look at this and let me know what I am doing wrong: ALTER TRIGGER …

Member Avatar for Dani
0
203
Member Avatar for Chrislynn_1

I have a requirement to update a configuration file content at a specific lines location. How to do this in python. For example, I have a configuration file which is having below 5 lines now: define host{ name kiki-server; XXXX XXXX; XXXX XXXX; } I am interested have my python …

Member Avatar for Chrislynn_1
0
240
Member Avatar for TheAustinG

Hello fellow coders, I am currently taking a C++ class and have a final project due very soon. We are recreating the game Othello/Reversi using the console. So far I haven't run into really any problems and it hasn't been too bad. I have almost all of it complete except …

Member Avatar for TheAustinG
0
495
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 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 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 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 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 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 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 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 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 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 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 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

The End.