64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Maideen

hi I am new in php. I could not insert the data into mysql table. and there is no error prompt Below is my code. Pls help me <?php include_once '../inc/header.php'; if (isset($_POST['submit']) && $_POST['submit'] != "" ) { $name = $_POST["name"]; $address = $_POST["address"]; $tel = $_POST["tel"]; $fax = …

Member Avatar for Maideen
0
140
Member Avatar for moaz.amin.37

my question is that when we use static data member and ststic function and nobody can not satisfy me about this question i need actual reason of using the static data member and ststic member function

Member Avatar for deceptikon
0
850
Member Avatar for moaz.amin.37

write a c++ class run that contains followin data member 1)name of runner. 2)distance covered by runner. class ha following member function 1)get function for input runner name and distance. 2)show function to display runner name and distance. the user should be able to show the name of the runner …

Member Avatar for Kristian_2
0
891
Member Avatar for ddanbe

Hi, in my polynomial class all the terms consist of a List of tuples (double, uint), representing the coefficient and the exponent; a real and a natural number. The +operator implementation works great, but I was wondering if I could avoid to write two times `grouping.Sum(s => s.Item1)` It somehow …

Member Avatar for ddanbe
0
241
Member Avatar for Stefan_2

This is what I have to code. Input an array of numbers(any numbers that user inputs from standard input, aka keyboard), remove numbers from array that are not 0 and 1. Thay array should now be bitwise moved with << or >> (again user choses the number of spaces moved …

Member Avatar for Stefan_2
0
288
Member Avatar for Pyler

Suppose I have the following generic classes; Queue<T> KellysCoffee CheckOut and the following generic interfaces QueueInterface OrderLineInterface Suppose I want `KellysCoffee` to extend Queue class and implement `OrderLineInterface` This is how I've done it private class KellyCoffee<Order extends Queue<Order>> implements OrderLineInterface{} Now when I try to implement `CheckOut` public class …

Member Avatar for Pyler
0
297
Member Avatar for centenond

Hi, i working on a profile system, each users has their public profile and its directory is in http://website.com/username but the proble is that my root is gonna get a bit messy if all folders of each user is created ther, so i want to put all users folder in …

Member Avatar for centenond
0
267
Member Avatar for Zcool31

I'm trying to write a simple game using SDL and OpenGL. Up until now, I was using purely SDL and pixel manipulations on the framebuffer to draw lines and other shapes. However, as you would expect, that got unbearably slow as the number of objects on the screen increased. Now …

Member Avatar for Константин_2
0
20K
Member Avatar for tanatos.daniel

I am desperately trying to add a DataGridViewComboBoxColumn to my DataGridView programatically. Here is the Code I've got so far. DataTable dt = new DataTable(); dt = _userBL.getUsersTable().DefaultView.ToTable(false, "Person_ID", "FirstName", "LastName", "Title", "Username"); dataGridView1.DataSource = dt; DataGridViewComboBoxColumn ComboBoxCell = new DataGridViewComboBoxColumn(); ComboBoxCell.Name = "State"; ComboBoxCell.ValueMember = "State";//ComboBoxCell.DisplayMember = "State"; ComboBoxCell.DisplayMember …

Member Avatar for tanatos.daniel
0
240
Member Avatar for Hector_2

I can't get the code to display in an ordered list. // Chapter 5 - Homework Assignment #include <iostream> #include <cstdlib> using namespace std; // // DECLARE FUNCTION HEADER FOR // CLASS ListNode class ListNode { public: ListNode(double v, ListNode *p) { value = v; next = p; } private: …

Member Avatar for Hector_2
0
196
Member Avatar for RikTelner

I am about to make website, where explain my skills (if any), kind of portfolio. I'd like to make two seperate choices in menu, one for the client-side work (HTML, CSS, JS) and one for the server-side work (PHP, SQL) seperately. I thought of word "Coding" for client-side work. But …

Member Avatar for RikTelner
0
195
Member Avatar for priyanka raj

Would you please help me in writing a c code to read data from a file and perform 1)numeric sort, 2)alphabetical sort. the file may contain data of any kind.Like it may contain only numbers,only names or a database of employees of a company.(which contains their employee id,name,designation and salary,....in …

Member Avatar for aaaymen
1
7K
Member Avatar for sobias

Hello guys, I'm completely losing it. The question asks to emplement an electronic directory traverse in size a chosen folder (using JFileChooser)and print the structure with the calculated the size of each folder and file. Finding the file size is easy using File.io `getSize()`. However, to find the size of …

Member Avatar for JamesCherrill
0
313
Member Avatar for alex.dimofte.5

I am developing a client server application in C#. I am sending from my server to client an object of `Student` type which I serialize on the server side and deserialize on client side. The serialization and deserialization are as follows : // server side serialization. Student s1 = new …

Member Avatar for alex.dimofte.5
0
280
Member Avatar for niche1

Is it possible to trigger the action of a form with a submit button that's outside the form tags? If so, how should this example be rescripted to make the input tag work outside the form tags? <html> <body> <form name="input" action="html_form_action.asp" method="get"> First name: <input type="text" name="FirstName" value="Mickey" /><br …

Member Avatar for razvysb
0
945
Member Avatar for Xecantur

It's been awhile since I've needed help, but I can't for the life of me figure out why subtraction isn't doing what it should be I'm clearly missing something or some change to how C++ interprets subtraction, if you could point me in the right direction that would be awesome …

Member Avatar for Xecantur
0
145
Member Avatar for dennis.ritchie

I want to declare an array of type (char / string) confused! dunno which one.. which will store 5 names this code couldnt work char names[5]={monitor,cpu,mouse,joystick,system}; someone guide me please

Member Avatar for deceptikon
0
314
Member Avatar for Scooterman1

I am writing a program where the user enters 2 strings and the program checsk to see if any characters are in both strings, and if they are, remove them from the first string and print it. So i have this at the moment, and it's almost working but it …

Member Avatar for asmita.saha.1
0
4K
Member Avatar for Vikram Sehgal

Hello, so i am making a shooter game, and i want the asteroids or '@' to spawn randomly along the y axis and fall down (- y axis per second) compiler:- codeblocks os:- win 7 thanks.

Member Avatar for Vikram Sehgal
0
313
Member Avatar for IdiotProgrammer

Hello! :) It's my first time here. I don't know why GLSL is better to Nvidia Cg! :( I'm working on skeletal animation in GPU. With Nvidia Cg it's just fine, but when I try to use GLSL, just don't work! I'm using a Nvidia card in my new computer. …

Member Avatar for IdiotProgrammer
0
455
Member Avatar for raminshahab

I can't seem to get a response from my query method. I have a database connection from method ping_server and use mysqli as connector. Can anyone help me figure out why I cannot print results from mysqli_fetch_array. dbclass.php class db { private $connection; private $selectdb; private $lastQuery; private $config; function …

Member Avatar for raminshahab
0
360
Member Avatar for ktolso03

So I am not getting the data from text1 to load properly(I would assume text2 is the same). If I step through it the variables load and then once it reaches Dim A() etc. it gives the "path's format is not supported" error. I have changed up how i'm getting …

Member Avatar for ktolso03
0
193
Member Avatar for moaz.amin.37

hy i have a problem in a Result programe of C++. I want to find 1st,2nd and 3rd position from any number of students. I already have a code to find first three largest element of array but problem is that 2 or 3 students marks can be equal but …

Member Avatar for Ancient Dragon
0
220
Member Avatar for moaz.amin.37

my problem is how to use if else statement with the use of character type string (char str[40]) for exemple char str[30]; cin>>str; or gets(str) or getline(str,30) if(str=="hello") cout<<"world"; i search this everywhere but every answer could not satisfied me.

Member Avatar for Ancient Dragon
0
325
Member Avatar for ParPau

Have first part of program written. It will use enum array for month and average rainfall amount. It starts at January and runs through December. Second part is to ask user at what month they want to start (example, April). The printout would then start at April of year -1 …

Member Avatar for jwenting
0
271
Member Avatar for John A.

Hey guys, I'm trying to get all links on a website using BeautifulSoup, Queue, Threading, and urllib2. I am specifically looking for links that lead to other pages of the same site. It runs for a few seconds, going through about 3 URLs before giving me the error: Traceback (most …

Member Avatar for Sky Diploma
0
732
Member Avatar for theashman88

It keeps telling me there is an error on line 22 when I run the program. Does anyone see the problem. My goal was to create a jagged array where the first block had 3 grades, the second block had 2 grades, and the third block had 4 grades. using …

Member Avatar for Momerath
0
185
Member Avatar for ParPau

All, what I am trying to do is isolate markings (differences) in images. I have an unmarked image (I1), a marked image (I2) and a third image (I3). I would like to compare I2 against I1 and store the x,y (or array of pixels) of the differences (isolate markings). I …

0
176
Member Avatar for lithium112

If there is something I understand least of in programming, it's accessing arrays. Does anyone know why this won't work? I can't find the answer anywhere. What I'm basically trying to do is take the months that have 30 days and perform a math problem, but I can't seem to …

Member Avatar for lithium112
0
152
Member Avatar for Nollyvenon

Please can someone help me optmize this query, it is slow and brings the same data for the debtage column SELECT customer.custid,customer.compname,customer.phone,customer.depot,acctofficer.acctfullname AS acctoff, STR_TO_DATE(mastorders.lastsuppdate,'%d-%m-%Y') AS purchdate, STR_TO_DATE(transactions.timestamp,'%Y-%m-%d') AS debtage, format( customer.balance, 2) AS balance, customer.balance AS balance1 FROM customer,mastorders,acctofficer,transactions WHERE customer.custid=mastorders.custid and acctofficer.acctoffid=customer.acctoff AND customer.depot='$depot' GROUP by customer.id ASC. …

Member Avatar for Nollyvenon
0
215
Member Avatar for mavtcr

Friends I have a problem in totalling the variable .When I use my code I am not getting the answer as I expected. My code is as below Jsharbal = Format$(TRS("Sharbal"), "#,##0.00") Jworkbal = Format$(TRS("workbal"), "#,##0.00") Jsalabal = Format$(TRS("Salabal"), "#,##0.00") Jprofit = Format$(TRS("Prflbal"), "#,##0.00") CRTOTAL = (Val(Jsharbal.Caption) + Val(Jworkbal.Caption) + …

Member Avatar for mavtcr
0
251
Member Avatar for Kopals

I write the program in maximized screen. But my output screen is so big that I cannot see the output. The lines in which output is shown are out of the screen. When I exit TurboC, then only I can see the output as the screen is in restore down …

Member Avatar for Kopals
0
135
Member Avatar for lithium112

Hello, Below is a simple gun simulator for the console, but everytime I hit spacebar, I have to hit it twice before the next line will pop up in the console. This started happening after I inserted the last 'if' statement in order to reload the gun. Does anyone know …

Member Avatar for lithium112
0
189
Member Avatar for Pravesh_1

I want to change content of a DIV which is in the TD (Table Tag); every div has unique ID viz. picked_cJN_031599, picked_cJN_031596; every div is prefixed with picked_cJN_ *and a unique ID came from database; I want to change the value of any div just by passing ID and …

Member Avatar for temp11
0
156
Member Avatar for DeepKiran
Member Avatar for DeepKiran
0
323
Member Avatar for GagaCode

Hey all ,,,, basicly i come from a vb language to c# and i'm using couple of varables and constant that i'm using upon all my project so is there any way that i can set like a public variable that i can use every time i need or even …

Member Avatar for deceptikon
0
223
Member Avatar for sigitas.darguzas

Hi. all i have small problem Not verified =0 verified=1 $balance = $match_value['balance']; $verified = $match_value['verified']; <tr><td> <b> Balance: </b> </td> <td> if ($verified == 1) { $verified = "$balance"; } else { <a class="btn btn-danger" href="verified.php" > not verified </a> } </td></tr>

Member Avatar for sigitas.darguzas
0
133
Member Avatar for Jahliah

The output that i get keeps repeating. For example, strInput= "orange~banana~banana~apple" but what i get is this output= "orange~orange banana~orange banana banana~orange banana banana apple" I'm pretty sure my regex is right. Any help would be much appreciated. Thanks! using (StreamWriter write = new StreamWriter(filePath, true)) { string[] line = …

Member Avatar for Sulaiman_1
0
171
Member Avatar for mustafaaltup
Member Avatar for jwenting
-1
187
Member Avatar for GagaCode

hey all again i have a little issue it may be a little stupid but i'm not able to figure it out what i'm trying to do is to make a counter ,, i'm trying to get a number from database and increment 1 to it and adding it one …

Member Avatar for Sulaiman_1
0
257
Member Avatar for TheFearful

I am having trouble finding out if I did the header correctly #include <iostream> #ifndef TREE #define TREE // Node class class Node { int key; Node* left; Node* right; public: Node() { key=-1; left = NULL; right = NULL; }; void setKey(int aKey) { key = aKey; }; void …

Member Avatar for Kristian_2
0
206
Member Avatar for ravi142

Need Help for. I have one texarea which i have write keyword then press **Enter key** result with <BR> generate. $("#chat_box").keydown(function (e){ if(e.keyCode == 13){ var textval = $("#chat_box").val(); alert(textval+' you pressed enter ^_^'); } }); ENTER : Hello, test OUTPUT: Hello, test (That not correct) Enter Key works perfectly. …

Member Avatar for diafol
0
322
Member Avatar for emmanuel1610
Member Avatar for theashman88

So I'm basically trying to recreate the simulation of two dice being rolled, and I need to count the frequency in a two dimensional rectangular array, then display the array. I'm so lost I wrote some code but it didn't work, can anyone help. This is the assignment I'm not …

Member Avatar for cgeier
0
441
Member Avatar for jhender4880

I have this working like it should (I think) except that it is cutting off the first letter of the first display name unless I add a space before the name. I have tried using just using cin >> soccer[i].name but it doesn't work, it skips over the name entering …

Member Avatar for tinstaafl
0
2K
Member Avatar for izzytoots

So I am working on a simple assignment for my C class that reads a formatted file and prints information about the file based on the format. The file format looks like this: #Domain Alexa Rank Site Name #------------ ----- ------- --------- amazon.com 13 1177136 Amazon.com google.com 1 4533883 Google …

Member Avatar for izzytoots
0
194
Member Avatar for pbarks1

I have managed to successfully add two counters, on which counters from 00:00 and the other from 00:45. The problem i have though is that the counter resets to 00:00 when the counter reaches 60:00 minutes. I need the counter so that it goes to 100:00 or more. Dim starttime …

Member Avatar for pbarks1
0
189
Member Avatar for learner_new

Hi guys, Error- collect2.exe:fatal error:cannot find 'ld' compilation terminated Compiler:gcc library:mingw I have done quite a bit of internet search and followed a discussion pertaining to this on daniweb,but to no avail.Am working on code blocks. Initially there was no problem, then i linked libws2_32.a and even though it compiled …

Member Avatar for learner_new
0
4K
Member Avatar for ravi_14

![6b87dfe9bac7df6c309f7266d28a4ad0](/attachments/small/4/6b87dfe9bac7df6c309f7266d28a4ad0.JPG "align-left") i am reading "pointers in c by naveen toppo" .According to him program crashes when it encounter int y=*ptr; i dont understand why it should crash?i think its correct. *ptr gives int value. please refer attachement.

Member Avatar for Ancient Dragon
0
169
Member Avatar for varshaholla

hello, i want to know whether i can display an image from the path i have selected? like, i have a path for example: c:\user\desktop\33.jpg, and i want to take only that jpg file and i have to display that image using label or something. If it is possible, i …

Member Avatar for varshaholla
0
337

The End.