64,152 Solved Topics
Remove Filter ![]() | |
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 … | |
#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 | |
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 ? | |
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 … | |
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"; } } | |
![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) && … | |
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 … | |
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)); … | |
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 … | |
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'] … | |
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... | |
>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 … | |
#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? ![]() | |
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 … | |
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); … | |
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. | |
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. | |
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" … | |
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... | |
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 … | |
![]() | 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 … ![]() |
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 , … | |
how i can convert an integer value to percentage value (%) , using vb.net | |
hi, does textchange control for the textbox executes for every change in every character or for the full text? | |
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 … | |
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.. | |
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 … | |
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 … | |
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 ================================== '// … | |
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. … | |
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 … | |
how to register 2 letter domain? for example **co.nr** **co.cc** | |
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. … | |
$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. | |
**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.** | |
![]() | **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 << … |
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 | |
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); // … | |
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 … | |
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' || … | |
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 … | |
Just a short question Can you help me please? thank you so much :) **What is printed by the following C++ code? cout << "'\\\"'";** | |
![]() | 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]; … |
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)); … | |
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.. … | |
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 … | |
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 ? | |
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 … | |
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 … | |
> 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 … |
The End.