199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jib123

Hi all, this is my first post as a user, however ive been using this site to aid me in some of my programming assignments. I have become a little stuck with one program that i am trying to create which is a random number generator for 6 numbers. Ive …

Member Avatar for NormR1
0
1K
Member Avatar for Tko_1

Hi i have this script to upload and replace the exciting image which is good. The one thing i can not figure out is i would like to resize any images that are uploaded, to like 60x60. any ideas ? <?php if (isset($_POST['submit'])) { $newext = '.png'; $filename = $_FILES["file"]["name"]; …

Member Avatar for Tko_1
0
151
Member Avatar for some one

[CODE]#include <conio.h> #include <graphics.h> #include <stdlib.h> #include <stdio.h> void main (int) { int gdriver=DETECT,gmode,errorcode; //Requesting auto-detection. int midx,midy,x; //Initializing graphics and local variables. initgraph(&gdriver,&gmode,"d:\\bc3\\bgi"); //Reading result of initialization. errorcode=graphresult(); if(errorcode!=grOk) //An error occurred. { printf("Graphics error occurred : %s \n",grapherrormsg(errorcode)); printf("Press any key to stop : "); getch(); exit(1); //Terminate …

Member Avatar for kadawe
0
848
Member Avatar for showman13

I have searched and read all sorts of options on the web in answer to this question but it seem that everyone makes it much harder than I imagined it to be... Could someone tell me if this will work or if I just have a real misconception of the …

Member Avatar for <M/>
0
132
Member Avatar for HelloJarvis

Hi all, I'm working on a little project that gives you synonyms for your sentence that uses Twitter Bootstrap. Everything is working all right, but I can't seem to change elements within the Popover! What's odd, however, is that when I used jQuery.length on the desired element, it told me …

Member Avatar for HelloJarvis
0
314
Member Avatar for unsensible

ok so as a homework assignment I have to sort a c-string array alphabetically. We have to use pointers and cannot using strings (although strcopy and strcmp can be used). I can sort integers and strings but for the life of me cannot figure this out. I'm pretty sure i'm …

Member Avatar for unsensible
0
2K
Member Avatar for salan

Sorry everyone i'm new to java and i have an assingment which i have hand over soon i just want get an idea how to calculate car insurance premium based on the age,Licence and Engine size this is my first time come in to this site even so.. if you …

Member Avatar for NormR1
0
219
Member Avatar for ciobanu.alexandru.cristian

Hello, World! My name is Alex and i am a beginner in Java. I tried to create 2 simple objects from the same class and give them the values inputed from console( as string). Is this correct or it should be done in another particular manner? Also, the constructor asks …

Member Avatar for ciobanu.alexandru.cristian
0
211
Member Avatar for saddam777

Write a code snippet to declare and accept an integer and calculate the cube value of the integer. The integer should be passed by reference to a function cube(). The function would calculate the result of cubing the integer. The function prototype to be used is: void cube (int *p); …

Member Avatar for <M/>
0
149
Member Avatar for mehnihma

I am trying to build XML to csv conversion The problem is extended attributes ( <AttrList> ) that I do not know how to read: This is the XML: <?xml version="1.0" encoding="UTF-8"?> <ProductCatalog> <Product> <ProductCode>FFC4UINTSATA</ProductCode> <Vendor>INTEL</Vendor> <ProductType>Cable</ProductType> <ProductCategory>Cables</ProductCategory> <ProductDescription>INTEL SAS/SATA internal cable (4xSerial ATA 7-pin (Male) - 1x (Male))</ProductDescription> <Image>https://www.it4profit.com/catalogimg/wic/1/FFC4UINTSATA</Image> …

Member Avatar for mehnihma
0
234
Member Avatar for overrising

Hi, I am trying to create a 3 column table, where each row will contain 3 'cells' which each contain the following info for a product - Product Name, Description, Product Link, Image and Price - so, in a 3x3 table I would have 9 products. Any help much appreciated, …

Member Avatar for diafol
0
950
Member Avatar for john.knapp

Hello all. I'm using an API function via PInvoke, with the interesting data being returned to a pointer. My application crashes when attempting to free the pointer. If run with no breakpoints, the application hangs on Line 61 below. After the first run, it will then throw a memory exception …

Member Avatar for john.knapp
0
792
Member Avatar for hwoarang69

cant seem to log in. when ever i hit login button in login.php. than it goes to index.php but user is not loged in. i think its bc session_start problem. any idea why?? header.php <?php session_start(); include("connect.php"); //check, if user is loged in or not if(isset($_SESSION['username'])) /*** user is loged …

Member Avatar for diafol
0
343
Member Avatar for Darth Vader

Hi, I have a special problem that I wonder how it could be possible to solve. I have 2 backgroundworkers that I know are, asynchronous events. I start the 2 backgroundworkers with the startButton. The workers have a loop with Thread.Sleep(1). With the setFlagButton, I set the variable like this: …

Member Avatar for Darth Vader
0
253
Member Avatar for anonymous0318

#Hello, I am working on a homework assignment that after many hours, I still cannot get to function correctly. #The point is to take a list input of ones and zeros and print a compressed version. #Example) #input: [1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,0,0,1,0,0,0,0] #output: *41*50*71001*40 #Since the compression takes up 3 symbols(asterisk, amount of …

Member Avatar for woooee
0
224
Member Avatar for DaMaskMan2

. What wrong with the following code segment? int* = needle; needle = new int; *needle 100; cout << *needle; needle = new int; *needle = 32; cout << *needle;

Member Avatar for phfilly
0
70
Member Avatar for marek2121

I am trying to create Menu to may 2D game in Java. But the game is not responding to pressed keyes. Menu is working, but when I choose new game in menu, game starts but it does not react to pressed keyes. But, when I remove menu, game is responding …

Member Avatar for NormR1
0
822
Member Avatar for Chandrakumar

I copied book1.xls into IISServer c:/inetpup/wwwroot objConn.Open "Driver={Microsoft Excel Driver (*.xls)};DriverId=790;DBQ=" & Server.mappath("/book1.xls") &";ReadOnly= true ; UID=admin;" Dim strSQL excelfilename = "Book1.xls" strSQL = "select * from " & excelfilename Dim objRS Set objRS = Server.CreateObject ("ADODB.RecordSet") objRS.Open strSQL, objConn,3,3 When I execute the page Error Type: Microsoft OLE DB …

Member Avatar for rajeev_cv_2012
0
298
Member Avatar for premminister

Hi, I am currently getting JSON data from the discogs API (mp3 tag data) and wish to sort the results by the key's value. In this case I am trying to get data for a Guns n Roses song and the output has 1988 as the first one while the …

Member Avatar for Lardmeister
0
11K
Member Avatar for Neethaa

Private Sub ComboBox3_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox3.SelectedIndexChanged txtdayattended.Enabled = True sql = " select work_day from tbl_yearset where month='" & ComboBox3.Text & "'" If rs.State = 1 Then rs.Close() rs.Open(sql, conn) If rs.EOF = False Then txtworkday.Text = rs(0).Value End If End Sub Please let …

Member Avatar for Reverend Jim
0
156
Member Avatar for xXghostXx
Member Avatar for xXghostXx
0
113
Member Avatar for daino

I've installed the boost libraries binary version. How do I link this to my project? I've put the boost/bin path in my 'Path' environmental varialbe. Thanks

Member Avatar for daino
0
354
Member Avatar for tchitchu

# What I am trying to do is as follow: # I have a html form with dropdownlists that populated by php and mysql, on the same page I have a table that displays the data that was enter in the form (obvious when submitted) my table structure: CustomerlocationId ProducttypeId …

Member Avatar for pritaeas
0
184
Member Avatar for handsome89

I am a fifth year student and I want the idea of a graduation project in the field of programming and design Either software or Web THANKS...

Member Avatar for caKus
0
160
Member Avatar for fkatan

Hi, I use databinding.addnew() but when I try to type data in cell an error message apper(DBNULL Exception).... Pls let me konw: How can I insert or edit data in DataGrid Thanks

Member Avatar for harsh01ajmera
0
3K
Member Avatar for mhaselip

Hi, I have a error message when I try and execute the following code $ccid = cleanQuery($_SESSION['cid']); $ip = $_SERVER['REMOTE_ADDR']; $today = date('Y-m-d'); // check to see how many entries in the tbllog have already been entered $qry5 = mysql_query("SELECT count(id) AS total FROM tbllog WHERE cid=$ccid AND action='EMAIL_REFER' AND …

Member Avatar for diafol
0
321
Member Avatar for dreamsky999

Hello DaniWeb Community, I've recently been working on a simple input page for user to key in and then, returns an error if it doesn't match the required input type. However, I've been trying to get them working but they don't. I've 2 pages (author.html & book.html) which send their …

Member Avatar for dreamsky999
0
181
Member Avatar for NardCake

Hello! I'm creating a application that involves the tree view, i have this method being called: public void openproject() { XmlDocument reader = new XmlDocument(); reader.Load("EWProjects/" + projectName + "/" + projectName + ".ebw"); projectName = reader.SelectSingleNode("Project/ProjectName").InnerText; addNode(); } It reads the title of a 'project' from an XML file …

Member Avatar for Momerath
0
97
Member Avatar for Ranger86

Hello I'm new to C++ and am trying my best to learn the language. Could someone please let me know why my program is not working. I have a feeling that I'm not passing values to and from functions. The program compiles and runs, but it just gives me a …

Member Avatar for VernonDozier
0
321
Member Avatar for kenomote

Hey guys i need some help on how to save Values in My.Settings Two texboxes to save two different values and be albe to read those values or laod them when the program is oppned again...and also to be able to be replaced those values...

Member Avatar for tinstaafl
0
166
Member Avatar for andigirlsc

In my function definitions under apply_discount, when I enter a 1 or 2 for the discountQues to see if the customer has a coupon, the program thinks I'm entering a ticket type (1=toddler, 2=junior, 3=senior). Can you tell me what I'm doing wrong? I already tried making discountQues a global …

Member Avatar for deepecstasy
0
259
Member Avatar for on93

can anyone tell me where is my problem ??? i cannot debug this program. -------------------------------------------------------------------- #include<iostream> #include<string> using namespace std; class student { private : string name; int id; float cgpa; public : void setName(string na); void setID(int number); void setCGPA(float result); string getName(); int getID(); float getCGPA(); void display(); …

Member Avatar for deepecstasy
0
134
Member Avatar for nyfan68

I am suppose to write a program that inserts 25 random integers from 0 to 100 in order in a linked list. The program should calculate the sum of the elements and the floating-point average of the elements. I have been stuck with the add and average functions for some …

Member Avatar for Geli19
0
586
Member Avatar for Geli19

Hello everyone. I am building a small database that will hold information about volunteers and their talents. I have created a search form, in which the user can enter a keyword and it will search the tables for any match. Currently I am using a criteria of: Like "*" & …

Member Avatar for Geli19
0
830
Member Avatar for Geli19

Hello everyone. I have build a simple MS Access database to keep track of volunteer info (contact, address, phone etc). I have a report that displays each record in a list: record1. Last Name, First Name, phone, email record2. Last Name, First Name, phone, email etc... What I want to …

Member Avatar for Geli19
0
191
Member Avatar for Neethaa

Private Sub btnInsert_Click(sender As System.Object, e As System.EventArgs) Handles btnInsert.Click Dim con As New OleDbConnection Dim cmd As New OleDbCommand Dim dr As OleDbDataReader Dim Pnum As Integer Dim InDate As Date Dim PDate As Date Dim Amount As Integer Dim CmpID As Integer Dim Tax As Integer Dim TaxAmt …

Member Avatar for Reverend Jim
0
172
Member Avatar for Matigo

Hello guys I have got a little programme that been written in Python, I did connect it to an application been created in Visual Basic 2010, But to run the Python file, Of course you will need to install the Python software/Format to be able to run the python file, …

Member Avatar for Matigo
0
238
Member Avatar for <M/>

Hi! I have a table and it is populated by the entries that are submitted from the web forms. What i want to do is display specific amounts of data per page such as 50 per page, 1 per page, 100 per page, display all... Can someone show/teach me how …

Member Avatar for pritaeas
0
66
Member Avatar for <M/>

Hi again! I have a table and I want to figure out a way to sort inputs based on clicking the headers... for example, you click on the name column and it will sort the table based on their names such as alphabetically... The data is pulled from a csv …

Member Avatar for pritaeas
0
136
Member Avatar for lilwizz770

I created an application locally on my pc using xampp and phpmyadmin, now i want to put the application on my website, but i dont know how to move it from my pc to the web, especially the database and the tables...help urgently needed.

Member Avatar for diafol
0
106
Member Avatar for amahmoud

I was wondering if anyone had a good implementation of a List of list. The reason is to create rows and columns sort of like a database or spreadsheet format. I would like to insert data into the list and print it in the format of Column Column Column Column …

Member Avatar for NormR1
0
170
Member Avatar for jackshannon4

std::string s = "65//3"; std::istringstream indexBlock(s); for (int i = 0; i < 2; i++) { int index = 0; indexBlock >> index; std::cout << index << std::endl; } I would expect the output of the cout to be: output: 65 3 as I thought the stream iterates through the …

Member Avatar for jackshannon4
0
376
Member Avatar for awslc

Hello guys, I (attempted to) incorporate the alpha-beta pruning functionality with Negamax in C# and was wondering if you could review my included code for any obvious errors? Negamax Function: public int NegaMax(int[,] board, int depth, int alpha, int beta) { Interlocked.Increment(ref _negaMaxCtr); if (depth == 0) { Interlocked.Increment(ref _zeroCtr); …

0
269
Member Avatar for eNnilla

I'm currently building a website for my friends and me, and I've decided to have the homepage use a news system. I have the page working with PHP to load articles from my MySQL Database, and that's working fine. My real issue is with the page that adds items to …

Member Avatar for broj1
0
307
Member Avatar for jarg12

Hello First apologies for being a total newb. Everyones gotta go though this stage i guess. I'm a teacher and I've written some python 3 code that does some handy stuff to grades. I can execute the code using IDLE and it does what I want it to(averaging scores, producing …

Member Avatar for pauljwells
0
171
Member Avatar for albert.sibanda.9

l keep getting this error: Parse error: syntax error, unexpected $end How do l get rid of it.l am preety knew to php so l am still learning,

Member Avatar for LastMitch
0
201
Member Avatar for germainelol1

I am creating a method to multiply 2 polynomial expressions together such that: `3x^5 * 2x^3 = 6x^8` -> Where the coefficients are multiplied and the exponents are added together. My test case for this would look something like the following @Test public void times01() throws TError { assertEquals(Term.Zero, Term.Zero.times(Term.Zero)); …

Member Avatar for NormR1
0
339
Member Avatar for Vijaysurya

Hai everybody, I am uisng * valums/file-uploader i need help in mouseover or mouseup a uploadbutton. after upload a image. anybody plz help me. this code no working. remove this two lines working fine. $("#btnUploadPlanPicture").hover(function() { $("#btnUploadPlanPicture").mouseup(function() { anybody plz help me. $(document).ready(function() { $("#btnUploadPlanPicture").hover(function() { $("#btnUploadPlanPicture").mouseup(function() { var uploader …

Member Avatar for AleMonteiro
0
202
Member Avatar for tibor.marias

Dear Sirs! I would like to echo out the last iteration of a while loop differently as the first ones. This is my code wich echos out the first and the last iteration, but I need the middle iterations as wel.. <?php // Print if ($row = mysql_fetch_array($result)) { echo …

Member Avatar for diafol
0
152
Member Avatar for shahai.ali

hi every one. i have two tables table_1 ( std_id primary key, std_name, tchr_id foreign key ); table_2 ( tchr_id primary key, tchr_name ); as from the above tables i have the foreign key constraint. it mean if i want to delte teacher id it must be firstly deleted from …

Member Avatar for adam.adamski.96155
0
206

The End.