64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for RonKevin

okay so im kind of confused now. . . . . i didn't even have a code to show you cause I know its wrong..I've been absent 2 days on my Programming so its really hard to cope up...i tried researching for ifstream.h and ofstream.h....and so far ifstream.h is for …

Member Avatar for RonKevin
0
570
Member Avatar for rithish

#include <stdio.h> #include <stdlib.h> struct student { char name[15]; long int regno; struct employee { char name1; int rollno; struct student s1 }s1; }s2; void main() { struct student s1={"rohinn",2345} prntf("%s",s2.s1.name); } error at line 12

Member Avatar for rithish
-1
162
Member Avatar for ayat abukhadra

hi, can i change the sessions for a website by my own on my conditions , like if i wanna close the session if the user haven't done any work for a specified time and keeps reopening the sessions for active users ?

Member Avatar for ayat abukhadra
0
133
Member Avatar for akkbkht

Hello everyone. I would like to know that I wan to make a destop application. I would like that when program executes, the output screen (form1) should cover all the screen, means its a full screen application. It should cover the start menu behind it. and also that should be …

Member Avatar for akkbkht
0
491
Member Avatar for devianleong

this line of query run in php get the right result which is 4 but I use it in php will only get 1..how come? function totalrental(){ $result = mysql_query("SELECT SUM(Rent_time) FROM product") or die (mysql_error()); $count = mysql_num_rows($result); if ($count >= 1){ echo $count; }else{ echo "0"; } }

Member Avatar for JorgeM
0
100
Member Avatar for nickslick

![Hi Daniweb forum, I've come across a problem in my panel_mousedown event. Now I initially have 3 pictureboxes Painted on panel1, and each picturebox Control is set to Visible = false; and only become visible again when using this code: private void panel1_MouseDown(object sender, MouseEventArgs e) { if (picturebox1.Bounds.Contains(e.Location) && …

0
136
Member Avatar for Khav

Hello , Can anybody tell me that is wrong in this statement `$data = mysql_query("SELECT Column1 FROM '$tbl_name' WHERE Column2 = '$image'");` I then tried `echo $data; ` - But no result Basically i want to retrieve the value of Column1 where the value of Column2 is equal to the …

Member Avatar for Khav
0
126
Member Avatar for ckchaudhary

Hi all, m a .net programmer, fairly new to php can anyone explain me (m not asking to explain in detail) this php code. its in the index.php of an application. I am not gonna irritate you by posting the whole code. so here's the outline: <?php if(!extension_loaded('ionCube Loader')){ $__oc=strtolower(substr(php_uname(),0,3)); …

Member Avatar for ckchaudhary
0
291
Member Avatar for cisumma

I am in the process of learning how I could use a JListDataListener to change JList elements at runtime: I am goggling this right now to collect examples: I would like to see some code on the subject if anyone has some examples -thanks Here is some code to create …

Member Avatar for NormR1
0
217
Member Avatar for robanatilahun

hello everybody, it's my first time to ask on forums with hope of your very useful support. I have difficulty to access the value of my variable which i set in other page of anchor tag. here the code is; echo '<li><a title="' . $row['hot_name'] . '" href="1hot.php"?pg= "2">' .$row['hot_name'] …

Member Avatar for robanatilahun
0
224
Member Avatar for <M/>

I have a GoDaddy account and I want to connect dreamweaver to the mysql server... but I keep getting errors... no matter what I do... can someone assist me? I called GoDaddy, they couldn't answer me so they blamed Dreamweaver...

Member Avatar for <M/>
0
309
Member Avatar for dre-logics

>I use MySQL database Two tables: Table 1 articles Field: article nb article description supplier cell 100 nails company 1 no 200 screws company 2 yes >Table 1 stock Field: article nb. barcode nb. barcodedescription instock 100 10011 nails 2 inch 5000 100 10012 nails 5 inch 0 200 20012 …

Member Avatar for dre-logics
0
278
Member Avatar for shanki himanshu

#include<iostream> #include<conio.h> using namespace std; struct node { int info; node *left,*right; }; int main() { struct node *root; root=NULL; //root->info=NULL; //root = (struct node*)malloc(sizeof(struct node)); if(root==NULL) //cout<<root->info; cout<<root->info<< " "<<root->left<<" "<<root->right<<"\n"; getch(); return 0; } why it is giving an error?

Member Avatar for MonsieurPointer
0
92
Member Avatar for trishtren

Hello, I am trying to recreate a data type in java used by adobe, it is an unsigned integer 30 bits long or U30 by the specification. Anyway i am having problems understanding the binary output, the definition states: "The variable-length encoding for u30 uses one to five bytes, depending …

Member Avatar for trishtren
0
193
Member Avatar for wasim kazi

I have one menu toggle div manu which is slide up and down. For that I used jquery.Cookie plugin but still it's not working. here is my problem : http://jsfiddle.net/wasimkazi/fauNg/10/ please help me... $(document).ready(function() { $(".widget2").hide(); var $widget2 = $(".widget2"); readCookie('widget2') === 'open' ? $widget2.show() : $widget2.hide(); $(".box2").toggle(function() { $(this).next(".widget2").slideDown(200); …

Member Avatar for wasim kazi
0
2K
Member Avatar for rpv_sen

Hi Friends I am new to asp.net, i want to display menu title from database using VB in asp.net, the display should be done in list format while href tag, i am expecting the display as below menu1 menu2 menu3 Please can any one help me to solve this issue.

Member Avatar for rpv_sen
0
259
Member Avatar for gem.gonzales.9

think a program that you can combine decision ,looping,recursion,array and function i find it hard to think a program that you can incoperate it all.

Member Avatar for deceptikon
0
105
Member Avatar for finston

I am using Code::Blocks and mingcc to produce an executable from some heritage c code circa 1998. Compiles OK. Linking problems. Even though I can use the Code::Blocks IDE to see where the parameters are declared in header.h files and implemented in main code c files, I get "undefined reference" …

Member Avatar for deceptikon
0
281
Member Avatar for Majestics

http://www.daniweb.com/software-development/csharp/threads/202843/take-backup-of-sql-server-database-using-c Error : Back failed for Server I am using smo code from this thread , but it cant backup...

0
78
Member Avatar for ROSS679

I am having problems accessing the Data Set, when i would type DataSet ds = new DataSet(); i will always get the red arrow line underneith, I then right clicked on the data > choose items in the toolbox and it is already checked yet i cant create it in …

Member Avatar for ROSS679
0
154
Member Avatar for arcticM

I wanted to validate a string with preg_match but after a lot of struggle I just used if($str[0]!='x'.... but just out of curiosity I wonna know how to do this using preg_match I'm getting a string as an input- the 1st char in the string must be % the 2nd …

Member Avatar for arcticM
0
155
Member Avatar for Khav

Greetings, i am doing a school project which basically deals with forms and an access database.I have various textboxes in a form.I want some textboxes to be filled automatically with a value when another textbox has been filled. For e.g , if the user fills in the 'Cost' textbox , …

Member Avatar for Khav
0
870
Member Avatar for HibaPro
Member Avatar for M.Waqas Aslam
0
896
Member Avatar for ayat abukhadra

hi, does textchange control for the textbox executes for every change in every character or for the full text?

Member Avatar for ayat abukhadra
0
96
Member Avatar for <HHH>

i want to read each line of my file in seprated string what i have achieved till now is i can read the whole lines in one string and now i want to read each line in a sprated string any help; #include <cstdlib> #include <iostream> #include <fstream> using namespace …

Member Avatar for m4ster_r0shi
0
134
Member Avatar for prnjn

How to set image of my own choice say baby.jpg as an icon on the title bar of the jFrame.. Please also help with codes if required ,, i am newbie in java and NetBeans..

Member Avatar for prnjn
0
3K
Member Avatar for prnjn

As i said earliar i am making HRMS , the last phase is logout button. when logout button is clicked , an option dialog should appear which ask for yes or no . PROBLEM is i dont know how to use JOptionPane.YES_NO_OPTION so that i can give user choice of …

Member Avatar for prnjn
0
238
Member Avatar for dsplayer14

Well, here is my code: print "Welcome to the English to Pig Latin translator!" original = raw_input("Please enter a word: ") pyg = "ay" if len(original) >= 1 and original.isalpha() word = original.lower() first = word[0] if word == a or e or i or o or u print "Your …

Member Avatar for dsplayer14
0
4K
Member Avatar for RobRTaylor

I have a question, been racking my brain trying to figure out why this is happening. Let me start off with a chunk of code. This takes values from a textbox and writes them to an Excel sheet: Public Sub printFrmDUIReportPreview() '// =============================== PRINT PREVIEW DUI REPORT FORM ================================== '// …

Member Avatar for RobRTaylor
0
175
Member Avatar for adishardis

Hi, I tried to figure this out but i'm shooting in the dark :) What I want to do is compare two values, either value1 against value2 or if value2 is empty then value1 against value3. add to that, that I want to echo different images depending on the result. …

Member Avatar for adishardis
0
117
Member Avatar for Alochai

So, i've been redesigning the program I've been making to make reusable functions, rather than copy/pasting almost identical code to several different functions (which is what I would have ended up doing). These upcoming sections of code are functions designed to, on a button press, navigate to a URL, scrape …

Member Avatar for Alochai
0
163
Member Avatar for vizz
Member Avatar for ryantroop
0
126
Member Avatar for bembem20

can someone tell me how to get the values of the dynamic texbox created..on my first code, i munaully put textboxes..but resulted to non efficient code according to my prof..so i found a code that dynamically create texboxes, but my problem now is how to get the values of them. …

Member Avatar for Reverend Jim
1
563
Member Avatar for gk1993

$u = mysql_real_escape_string($_POST["username"]); $p = sha1($_POST["passwd"]); $q = "SELECT * FROM profile WHERE email=`$u` AND passwd=`$p`"; $run = mysql_query($q); if(!$run){ echo mysql_error(); } this creates *Unknown column 'mymail@gmail.com' in 'where clause'* error. This code is from a tutorial and a piece of a submit-new-post php page.

Member Avatar for gk1993
0
162
Member Avatar for ZeQuia

**good day to all! i have a project all about color guess game. i just want to learn about using random functions in words because usually i only see random numbers. anyone can help me to create a source code that will randomize words? thank you! turbo c only.**

Member Avatar for Flowerlady
0
156
Member Avatar for 111100/11000

**How to go back to** start_new_input: **of main() function?** #include <iostream> #include <string> #include <cmath> using namespace std; //global varibals: char entered_characters[9999]; int direction_of_rotor1; int direction_of_rotor2; char alphabet_of_rotor1[26]; char alphabet_of_rotor2[26]; char rotor1_backward(char Letter); char rotor1_forward(char Letter); char rotor2_backward(char Letter2); char rotor2_forward(char Letter2); char print(char print_char); int main() { cout << …

Member Avatar for ravenous
0
146
Member Avatar for vishu.bhavsar

Hi All, Given an array of numbers, I want to find out the 2nd largest number in an array. Can anyone help me to solve the problem? Any help in terms of logic or code would be useful. Thanks, Vishal

Member Avatar for TrustyTony
0
170
Member Avatar for Alochai

void CRobotDlg::OnBnClickedSnip() { //---------- navigate to Snip CString sUrlSnip= L"http://Snip"; m_ctlBrowser.Navigate(sUrlSnip, 0,0,0,0); while (m_ctlBrowser.get_ReadyState() != READYSTATE_COMPLETE) { DelayMs( 100 ); } //------ page is ready to process IHTMLDocument2* pDoc= (IHTMLDocument2*)m_ctlBrowser.get_Document(); IHTMLElement* pElemBody= NULL; pDoc->get_body(&pElemBody); CComBSTR bstrHTML; pElemBody->get_innerHTML(&bstrHTML); CString sBody= bstrHTML; // easier to work with as a CString //MessageBox(sBody); // …

Member Avatar for Alochai
0
1K
Member Avatar for <M/>

I am building a contact form, and I made it out of html and css, but I can't apply php to it in order to make it functional... I wanted it to have the abilities to notify me if someone submits form, the ability to only apply valid information, and …

Member Avatar for <M/>
0
266
Member Avatar for letterG

Hi new member here! i'm having a problem with my code here but I really don't know why, its in the line where i'll comment.. #include<iostream> using namespace std; void convert(char*); void main(){ char r, sen[200]; do{ cout<<"Enter text: "; cin.getline(sen, 200); convert(sen); cout<<"Try again?[Y/N] "; cin>>r; cin.ignore(); }while(r=='y' || …

Member Avatar for letterG
0
166
Member Avatar for Oneryavuz

Hello, I have 2 datatable, first table for customers personal information and second table for customers areas of interest. this two tables have same ID for same customers. So, when i want to check my some group of customers(like who intrests on sports stuffs) i need filter my first table …

Member Avatar for Oneryavuz
0
145
Member Avatar for love_you_4rever

Just a short question Can you help me please? thank you so much :) **What is printed by the following C++ code? cout << "'\\\"'";**

Member Avatar for WaltP
0
83
Member Avatar for 111100/11000

When it gets to cout << "Chose direction of rotor 1:" << endl; cout << "*(i.e.:enter 1 for left and 2 for right)" << endl; and i enter 1 or 2 it couts "Wrong choice" #include <iostream> #include <string> #include <cmath> using namespace std; //global varibals: char alphabet_of_rotor1[26]; char alphabet_of_rotor2[26]; …

Member Avatar for Schol-R-LEA
0
120
Member Avatar for aabbccbryanmark

can someone give me an idea how I limit the decimals in the output of this code: /** * @(#)Text1.java * * * @author Bryan Mark * @version 1.00 2012/8/4 */ import java.io.*; public class Converter { public static void main(String[] args)throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); …

Member Avatar for aabbccbryanmark
0
142
Member Avatar for aabbccbryanmark

can someone please help me with this java application that will display the output below: "Enter Middle Name: Gosling" "You Middle Initial is: G" and also java program that will let the user to enter value for fahrenheit & convert it to celsius. can someone give me codes for this.. …

Member Avatar for aabbccbryanmark
0
162
Member Avatar for ROSS679

I am working on a program that updates a Database via ASP.NET (C#) using Microsoft Access and OleDb and have the following problem when loading my web form in FireFox: *"The INSERT INTO statement contains the following unknown field name: 'txtCustomerID'. Make sure you have typed the name correctly, and …

Member Avatar for ROSS679
0
138
Member Avatar for ayat abukhadra

Hi, if I'm building a website for mobile the only thing that differs from desktop website is the size of the screen ? or there's additional things i have to change to be able to browse my site on mobiles ?

Member Avatar for ayat abukhadra
0
130
Member Avatar for GlenRogers

Hi, I've never used php or mysql but I need to I madee a site for a friends reptile pet shop. Now I need to make him an admin panel so he can update his availablity section his special offers section and most importantly he can add pictures to his …

Member Avatar for sesan2007
0
162
Member Avatar for aparnesh

Can I transfer some data, which the user enters into a pop up window, to the page which called the pop-up window ? The Main page is in a frame. When the user clicks a button on the main page, a pop-up opens showing some choices. After the user selects …

Member Avatar for moji013
0
198
Member Avatar for opman234

> please help me check this sql statement. it is giving me this error "No value given for one or more required parameters. " cn.Open() Dim cmd As New OleDb.OleDbCommand cmd.Connection = cn cmd.CommandType = CommandType.Text cmd.CommandText = "Update HallTransaction Set status=? where ID=?" cmd.Parameters.Add("@statu", OleDb.OleDbType.VarChar).Value = check cmd.Parameters.Add("@Custid", OleDb.OleDbType.VarChar).Value …

Member Avatar for M.Waqas Aslam
0
351

The End.