199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kamibwp786

Salam i want to write a binary tree code with left and right child my question is that when one left side and one right side child complete then system credit 700 to parent id plz any body from this forum can help me? i am thankfull to you its …

Member Avatar for kamibwp786
0
730
Member Avatar for Simon180

I have a small issue with following code am inserting a new room into mysql using query and then I want it to auto join the room once its made but the problem is when room is in process of being made it will call the GoTo procedure and it …

Member Avatar for Simon180
0
284
Member Avatar for zxz

Hi everyone and good morning :) . i want to simply read from the linux file "urandom" a random number and print it out on screen.just simple as that. this function should be in a file called myrandom.c ( myrandom.h must be made also, which has my function dekleration ) …

Member Avatar for zxz
0
3K
Member Avatar for Rustatic

I've got my code all ready to go, except what i want to do is have the 'btnSTART' button move the mouse to the selected coordinates, and Left Click down then Left Click up. Here's my code: Public Class Form1 Public Declare Auto Function GetCursorPos Lib "User32.dll" (ByRef lpPoint As …

Member Avatar for J.C. SolvoTerra
0
277
Member Avatar for Nebil

Hi, I am having trouble with dropping a temp table. I was using it so many times in other projects but this time it went bad. The only thing different now is that I referred a string value from the main form to another form.The other form populates a dgv …

Member Avatar for djjeavons
0
245
Member Avatar for it@61@sec

I have a program which reads entries from a directory. These entries are stored in a vector called fdata. Using vectors gives me an easy way to sort the entries. The program copies files from one directory (the source directory) onto another directory (the destination directory). While the copying is …

Member Avatar for it@61@sec
0
220
Member Avatar for pritaeas

Am currently trying to use the Web API and accept a HTTP POST containing an XML. I was under the impression that this could be automatically deserialized into an object, but I am missing something. public class Item { public int Value { get; set; } } This one works, …

Member Avatar for pritaeas
0
222
Member Avatar for gokulak

XSL does not compile when and only I use xalan:evaluate. Setting in system properties ---------------------------- sysProps.setProperty("javax.xml.transform.TransformerFactory", "org.apache.xalan.xsltc.trax.SmartTransformerFactoryImpl"); XSLT snippet -------------- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xalan" exclude-result-prefixes="xalan"> <xsl:template name="my_test_template"> <xsl:param name="my_test_param" /> <xsl:if test="xalan:evaluate($my_test_param)"> some statements </xsl:if> <xsl:if test="not(xalan:evaluate($my_test_param))"> some statements </xsl:if> </xsl:template> ERROR LOG ----------------------------------------------- ERROR: 'Cannot find external method 'org.apache.xalan.lib.Extensions.evaluate' …

Member Avatar for xml_looser
0
384
Member Avatar for ilovec++

I have some doubts concerning some basic C++ concepts, and would be very thankful, if someone would kindly clear the doubts: a) Every variable of a data type occupies a specific amount of memory, like int occupies 2 bytes and so on. So, if I declare a reference variable as, …

Member Avatar for yoavip
0
566
Member Avatar for Niloofar24

Hello. There is an html table in admin page, with head columns (POST ID | POST TITLE | POST AUTHOR | ACTION). And in each row, will contain a post id, a post title, a post author that gets from database. And in the Action column, there is a "delete" …

Member Avatar for lps
0
985
Member Avatar for Ritumoni

Working on a Project which have several admins and one super admin.. I have created a common table for admin's. Tables have fields username,password,location and status. I have created a single login page. For admin I need username and location in session.But for super admin I need only username in …

Member Avatar for prasaddlv
0
422
Member Avatar for eetigu

hi guys, i had an account on Daniweb but forgot password and recovery was a bit hectic so decided to crreate a new account. the previous username was emma etigu. i have a problem and need some help. below i have two tables from my dataset, i would like to …

Member Avatar for moshelilin
0
286
Member Avatar for Sara_10

Hi I want Example for code in assembly language to develop alarm clock using **8085 microprocessor** As soon as you can Thanks

Member Avatar for Sara_10
0
904
Member Avatar for nyfan68

I am working on an application that will let a user make a graph using the number of hours that the user has slept. Currently the attached code will take the input and make a graph expecting an integer values from the user. I want to be able to instead, …

Member Avatar for nyfan68
0
737
Member Avatar for kubura musah

Hello! I am a new c leaner. Can I call a function from a different function apart from the main ? And is this also part of recursive?

Member Avatar for kubura musah
0
179
Member Avatar for divinity02

int randnum; randnum = (int)(Math.random() * 15 + 1); String p1, p2, welcomemsg, rulesofgame; int age, targnum = 0; int r1, r2,r3,r4,r5,r6; int largest, smallest, numtries = 0; char ans, y; int addscores, numoftries, numofrounds = 0, questions = 0, count; String userinput; for(count = 1; count<3; count++){ System.out.println("Welcome Students, …

Member Avatar for rubberman
0
119
Member Avatar for Colin_3

hi im getting index out of bound error i cannot find exactly were the error is coming from.can anybodyhelp.tnks import java.util.*; class allshortinVector `{` static Vector<String> v2=new Vector(); public static void main(String[] args) { Vector<String> v=new Vector(); v.addElement("test"); v.addElement("hello"); v.addElement("JAVA"); v.addElement("Program"); for(int i=0 ; i < v.size() ; i++) { …

Member Avatar for TekknoDraykko
0
177
Member Avatar for Thomas_25

Hi all, What is the best sorting algorithm for a doubly linked list? Insertion sort and merge sort appears to the best due to the less overhead compared to the bubble/selection sort. Would like to know your insights on this. Thanks.

Member Avatar for rubberman
0
2K
Member Avatar for Tcll

so I've been working with alot of common interfaces and the typical layout for this data seems to follow: - LRS (Loc, Rot, Scale) >( calculated to )> 3x4 transform matrix (Parent Relation) - 3x4 local-bind matrix (Parent relation) - 3x4 inverse-bind matrix (Inverse-World Relation) the most important matrix is …

Member Avatar for rubberman
0
373
Member Avatar for Abetsub71
Member Avatar for london-G

Hi Guys, I am getting an error: Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "jLabel4" With this code: public void insertCustomer() { Properties conProps = new Properties(); conProps.setProperty("user", "user"); conProps.setProperty("password", "pass"); int q = Integer.parseInt(jLabel4.getText()); try { con = DriverManager.getConnection("jdbc:mysql://91.208.99.2:3379/5thfloor_pos", conProps); con.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE); } catch (SQLException ex) { Logger.getLogger(AddProduct.class.getName()).log(Level.SEVERE, null, …

Member Avatar for TekknoDraykko
0
348
Member Avatar for phoenix254

Hi, i want to change format of date . This code i add in my register page.... if(!empty($_POST['dob'])&& !empty($_POST['mob'])&& !empty($_POST['yob'])) { $yob = mysqli_real_escape_string($con,$_POST['yob']); $mob = mysqli_real_escape_string($con,$_POST['mob']); $dob= mysqli_real_escape_string($con,$_POST['dob']); $date = mysqli_real_escape_string($con,"$yob-$mob-$mob"); $addtothedb="INSERT INTO login (Dateofbirth) VALUES ('". $date . "')"; $result=mysqli_query($con,$addtothedb); and when i get back data from db …

Member Avatar for cereal
0
420
Member Avatar for Papa_Don

Group, I'm using the following code to read down to the third line of a text file. If it meets the criteria, I need to stop the read and then delete the file. However I'm finding it difficult to do this as everything I've tried has failed. Have you some …

Member Avatar for Papa_Don
0
1K
Member Avatar for UK-1991

Hello, I created a user login form with a crietaria fixed that if the user type is admin then it should be redirected to admin page and if it is an agent it should be redirected to home.php The admin type is working properly but when i enter agent id …

Member Avatar for UK-1991
0
269
Member Avatar for charliehustle88

I'm currently having an issue with the pagination script that I have in place. When a search is made for a particular item containing an "apostrophe", the results are rendered correctly. However, the pagination is not corresponding correctly. An error is produced when attempting to move on to pages extending …

Member Avatar for charliehustle88
0
388
Member Avatar for lloyd.farrell.7

Hi, Morning everyone. I am looking for some help from more experienced php coders. I am trying to create a Stamp Duty Land Taxes script that will automatically calculate stamp duty on the sale of a house or flat. The amount of stamp duty is worked out as follows Nothing …

Member Avatar for diafol
0
117
Member Avatar for mbarandao

Hello, I was wondering if the following mysql query can be constructed in a much more efficient way? SELECT distinct(cr.email), m.fname, m.lname, m.email, (SELECT count(*) FROM campaignRecipts where email=cr.email )as ttlsent, (SELECT count(received) FROM campaignRecipts where received='yes' and email=cr.email )as ttlreceived, ((SELECT count(received) FROM campaignRecipts where received='yes' and email=cr.email )/(SELECT …

Member Avatar for mbarandao
0
364
Member Avatar for Nguyen_4

i connect mysql using c# and show database in datagridview I want when i click the row in datagridview, textbox, combobox , datetimepicker will show form datagirdview But mysql datetime : yyyy/mm/dd 00:00:00 ( 00:00:00 will default if don't write) Datagridview : mm/dd/yyyy i used code: datetimepicker1.DataBindings.Add("text", dataGridView1.DataSource, "Birthday"); and …

Member Avatar for J.C. SolvoTerra
0
334
Member Avatar for london-G

I am trying to retieve the total salaries from a table where the customer name is X. I have the code below however there seems to be an error. public void total(String name){ double totals=0; Properties conProps = new Properties(); conProps.setProperty("user", "user"); conProps.setProperty("password", "pass"); try { con = DriverManager.getConnection("jdbc:mysql://91.208.99.2:3379/link", conProps); …

Member Avatar for london-G
0
199
Member Avatar for SimonIoa

i want to retrieve a single row from my database i use this and i get nothing `$session_country = mysql_result("SELECT name FROM countries WHERE country_id='15'");` i found this online but still the same `$session_country = mysql_result(mysql_result("SELECT name FROM countries WHERE country_id='15'"), 0);`

Member Avatar for SimonIoa
0
281
Member Avatar for Sugmuffen

I'm trying to implement a MiniMax algorithm with alpha/beta pruning. Totally stuck and can't see where I'm wrong. The class MiniMax contains a State and an Action. The method getAction returns an Action (supposedly the best action to take). The Game object has two methods, isTerminal returns true if the …

0
143
Member Avatar for Makara

someone help to change this code to php please` USE [FastJet] GO /****** Object: Table [dbo].[service] Script Date: 04/14/2015 11:37:12 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[service]( [ser_id] [int] IDENTITY(1,1) NOT NULL, [ser_name] [varchar](100) NULL, [ser_status] [varchar](1) NULL, CONSTRAINT [PK_ison_service] PRIMARY …

Member Avatar for cereal
0
253
Member Avatar for Timothy_4

I am some issues with my homework which is to create a program that reads the csv files to answer the question, unfortunately my gasp of this isn’t as strong as other. However I have written a majority of my code and the idea is clear but it is clear …

Member Avatar for Timothy_4
0
275
Member Avatar for mrkm1188

I have a GridView that is populated with information froma sql table. The first column of the table has a number (0,1,2,etc.) that corresponds to a folder on the network that contains multiple documents. After the table is generated with all the information from the sql table, I want to …

Member Avatar for djjeavons
0
140
Member Avatar for tNicknames

Viewing source im getting _gaq.push statement like this **_gaq.push(['_trackEvent', 'Tutor_account', 'Worksheet_assigned', '2307', '1']);** I have included js and setaccount details.

0
92
Member Avatar for fireburner29

Hi there, please help me to write script encryption/decryption in php? i am using below code for my encryption/decryption ... Please tell your suggesstions if there is security issues in this script. thanks.. $key_value = "prtiv24$"; $plain_text = "password"; $encrypted_text = mcrypt_ecb(MCRYPT_DES, $key_value, $plain_text, MCRYPT_ENCRYPT); // password encryption echo ( …

Member Avatar for fireburner29
0
266
Member Avatar for charliehustle88

Hello, The particular code I have in place is based off of search, that will then grab items from my data base and render the results in a table formatted display. pagination included. } $var1 = $_POST['var1']; $query = "SELECT * FROM table WHERE state LIKE :search OR city LIKE …

Member Avatar for broj1
0
400
Member Avatar for adnan_6

Dear programmers, I have downloaded the program from here http://www.tightvnc.com/download/2.7.10/tightvnc-2.7.10-src.zip and want to compile with the vs2013 ultimate edition and get the following error. Thanks

Member Avatar for adnan_6
0
345
Member Avatar for Suzie999

Hi, and sorry for the title, I don't really know what else to call it, so I'll get right to my point. I've recently decided to use most of my coding time with C# after having tried a few others over the years on and off. I want to start …

Member Avatar for DaveAmour
0
236
Member Avatar for Ankit_15

Hi friends, I am making an application which need pronunciation of words (name) in hindi language. like:- Ambar -> अंबर I cann't use third party tool. I have to create it by myself. Please help me, How can I do this?

Member Avatar for DJBirdi
0
115
Member Avatar for Niloofar24

Hello everybody! There is a problem with my db table. For example i send 6 posts (with title, author and content) to the db table one after an other, so their post's id would be 1-2-3-4-5-6. Then if i delete the post number 6 and then write a new post …

Member Avatar for DJBirdi
0
306
Member Avatar for rhodoscoder

What i'm i doing wrong? here is my code FUNCTIONS.PHP <?php function get_header(){ include 'header.php'; } function get_footer(){ include 'footer.php'; } HEADER.PHP <?php function set_title($title){ echo $title; } ?> <!DOCTYPE html> <html> <head> <title><?php set_title();?></title> <meta charset="UTF-8"> <meta name="description" content="Photography site" /> <meta name="keywords" content=" Angelic Photography" /> <!-- <link …

Member Avatar for rhodoscoder
0
205
Member Avatar for Niloofar24

Hello. Please look at this: <?php $servername = "localhost"; $dbname = "mydbname"; $dbusername = "mydbusername"; $dbpassword = "mydbpassword"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $dbusername, $dbpassword); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $id=$_GET['id']; $sql = "DELETE FROM Posts WHERE ID = :id"; $stmt = $conn->prepare($sql); $stmt->bindParam(':id', $id, PDO::PARAM_STR); $stmt->execute(); header("location: admin.php"); } catch(PDOException $e) …

Member Avatar for Niloofar24
0
518
Member Avatar for altjen

hello. recently Im having this error. Why is this? why is that? PS: after enter a 2nd person in the database it has imported and the first person in. Sometimes when import the data fast, it upload the person, if it take for a while (~40 seconds or more) it …

Member Avatar for altjen
0
151
Member Avatar for Suzie999

When I add a particular form to my project (AdminConfirmForm.cs) I can no longer access design view of Form1. It appears to run a particular section of the code from a static class (Init()), but since the part of the code it runs should only occur if the folder it …

Member Avatar for TekknoDraykko
0
229
Member Avatar for karodhill

I am suppose to display 3 error messages,Premium Channels is a required field,Customer Type is a required field and If a business checkbox is checked an error message is suppose to display saying Business Customers must select 1 or more Connection." can anyone tell me why just the Business Customers …

Member Avatar for karodhill
0
280
Member Avatar for Rik30

Hello! I'm trying to find the longest sequence of equal elements in a matrix M x N. I use two nested for-loops to search into the rows and compare the cells - same thing for the columns. When two adjacent elements are equal, I increment a counter. If the counter …

Member Avatar for Rik30
0
212
Member Avatar for Bendez Thyna

#include <iostream> #include <fstream> #include <stdlib.h> #include <iomanip> #include <string> using namespace std; const int MAX_SIZE = 60; void discard_line(ifstream &in); void print_student_records(structarray[], double scmarks[], double sfmarks[], int size) ; int main() { string id[MAX_SIZE]; double cmarks[MAX_SIZE]; double fmarks[MAX_SIZE]; //char grade[MAX_SIZE]; int choice; char response; int total_records; ifstream infile; cout …

Member Avatar for Bendez Thyna
0
324
Member Avatar for tgreiner

In the course of my programming I have created a new class called Vector (yes I know that vector.h exists, but I like my version better, or at least I have until now). As part of my class, I have overloaded the = to use as an assingment function, as …

Member Avatar for tgreiner
0
299
Member Avatar for shayan_doust

Hello there. Currently, I am trying to develop a graphical number guessing game in JAVA. This is my first project in java. Here is an insight in the application: When the application is first opened, a random number (1-100) is assigned to a variable. When the user enters their guess …

Member Avatar for TekknoDraykko
0
535

The End.