199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for admiri92
Member Avatar for rajii93
0
540
Member Avatar for jeevan reddy

I have a server and a client. I wrote handlers for send button and receive. When I send a string I am receiving only first two chars and then some japanese chars of the string on the receive side. I wanna receive the entire string.Please help me . This is …

Member Avatar for jeevan reddy
0
195
Member Avatar for shehnaz20

<?php // Database Connection require_once("condition.php"); $host="localhost"; $uname="root"; $pass=""; $database = "data"; $connection=mysql_connect($host,$uname,$pass); echo mysql_error(); //or die("Database Connection Failed"); $selectdb=mysql_select_db($database) or die("Database could not be selected"); $result=mysql_select_db($database) or die("database cannot be selected <br>"); $projno=$_POST['parameters']; function IsChecked($chkname,$value) { if(!empty($_POST[$chkname])) { foreach($_POST[$chkname] as $chkval) { if($chkval == $value) { return true; } } …

Member Avatar for shehnaz20
0
179
Member Avatar for Nollyvenon

Please can i get a help on joining these 3 queries SELECT customer.id,customer.custid,customer.compname, customer.balance AS balance,customer.phone,acctofficer.acctfullname AS acctoff, STR_TO_DATE(mastorders.lastpaydate,'%d-%m-%Y') AS debtage,customer.depot, STR_TO_DATE(mastorders.lastsuppdate,'%d-%m-%Y') AS purchdate FROM customer,mastorders,acctofficer WHERE customer.custid=mastorders.custid and acctofficer.acctoffid=customer.acctoff GROUP by customer.id ASC SELECT customer.id,customer.custid,customer.compname, customer.balance AS balance,customer.phone,acctofficer.acctfullname AS acctoff, customer.depot FROM customer,acctofficer WHERE acctofficer.acctoffid=customer.acctoff GROUP by customer.id ASC …

Member Avatar for Nollyvenon
0
450
Member Avatar for Razaleigh

hi there im currently do some simple webpage that can submit the data save into database into MYSQL Workbench. But currently i have an error for insert into table. The error is --------------------------- App_Web_kclqmsmh --------------------------- You have an error in your SQL syntax; check the manual that corresponds to your …

Member Avatar for Razaleigh
0
346
Member Avatar for Mohammed_9
Member Avatar for Mohammed_9
0
182
Member Avatar for stokie-rich

hi guys i'm creating my own website and i want to let users register and for them to be able to let them take a quiz. I have created this sql code CREATE DATABASE `dyscaculia` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; USE `dyscaculia`; CREATE TABLE IF NOT EXISTS `users` ( …

Member Avatar for stokie-rich
0
198
Member Avatar for jj.dcruz

i have to backup my database via php codes but i always ended up with an empty file? <?php include "connection.php"; $command = 'mysqldump -u root -p ***** –all-databases > dump.sql'; exec($command) or die(mysql_error()); ?> any help would be great

Member Avatar for jj.dcruz
0
271
Member Avatar for rjanelli

There are many examples of reading an xml file and populating a datagridview. I would like to pull the xml from a string instead. Dim myXMLfile As String = "C:\tmp\accountlist.xml" Dim ds As New DataSet() ds.ReadXml(myXMLfile) DataGrid1.DataSource = ds DataGrid1.DataMember = "account" The above code works when the xml data …

Member Avatar for cgeier
0
796
Member Avatar for sushilsth

i am actually working for showing online for loged in user. This is my code: $qt="select userid from plus_login where tm > '$tm' and status='ON'"; $result = mysql_query($qt); while($row=mysql_fetch_array($result)) { $uid = $row['userid']; $qt1="select first_name, last_name from signup where user_id='$uid'"; $result1 = mysql_query($qt1); while($rows=mysql_fetch_array($result1)) { $_SESSION['name']=$rows[0]." ".$rows[1]; echo $_SESSION['name']."<br>"; } …

Member Avatar for diafol
0
209
Member Avatar for shubham.goel.41995

I want to make a project on online examination which have some similar view like amcat and also have a view which run programs online.

Member Avatar for invadev
0
285
Member Avatar for fatmah

hi , i have a very simple Family tree project using GUI..... and i have two forms ! the first form ask the user to enter the number of child the parent have then in the 2nd form there will be a box as the number of child like when …

Member Avatar for ravi_14
0
120
Member Avatar for rahul8590

I am able to write a java program to access a particular url , and get the data , but the data is in raw format and the complete source is printed in the terminal . import java.net.*; import java.io.*; public class URLConnectionReader { public static void main(String[] args) throws …

Member Avatar for invadev
0
301
Member Avatar for rose88

1. A company wants to transmit data over the telephone. All of the data are transmitted as four-digit integers. The company has asked you to write a program that encrypts the data so that it can be transmitted more securely. Your program should read a four-digit integer and encrypt it …

Member Avatar for jwenting
0
234
Member Avatar for adhirgukt

I'm using gcc compiler in linux ubuntu os. I's started doing windows programming in c but my compiler does not having windows.h or supporting header files. How can i include these windows programm supporting files? Can i download them externally or what else.......?

Member Avatar for invadev
0
12K
Member Avatar for ckide
Member Avatar for faysal.ishtiaq_1

[Click Here](http://download.geonames.org/export/zip/)In this link, there is a txt file with all the zipcode and lattitude, longitude for US. How do I get lattitude and longitude for a zipcode from this text file, using javascript as I wanna create a google map application, that displays a location after providing a zipcode.

Member Avatar for sina.ak.3
0
155
Member Avatar for Dang_1

hi everyone, i need some help. This is my problem. When I input a string to the program, I want the screen console print out '*'. ex: string s; cout<<"password :"; getline(cin,s); when i type "abc123" for the password. The screen console will show "******". I'm sorry about my poor …

Member Avatar for Ancient Dragon
0
498
Member Avatar for ravi_14

i was reading a book and came across this line "C++ matches a pointer of any other type with type void * and prints a numeric representation of the address. If you want the address of the string, you have to type cast it to another type," please any one …

Member Avatar for Ancient Dragon
0
188
Member Avatar for Parthptl

private void button1_Click(object sender, EventArgs e) { try { var sr = new System.IO.StreamReader("C:\\" + textBox1.Text + "\\login.txt"); username = sr.ReadLine(); password = sr.ReadLine(); email = sr.ReadLine(); sr.Close(); if (username == textBox1.Text && password == passwordtextbox.Text) MessageBox.Show("You are now successfully logged in."); else MessageBox.Show("Username or Password seems invalid, please use …

Member Avatar for Fenrir()
0
134
Member Avatar for raul8711

Hi Guys, I'm looking to build an extremely simple script that would allow someone that I know to share files in a simple manner. This script should do the following: - Make a list of all the files in a specific folder. - Make downloadable links to these files (<a …

Member Avatar for diafol
0
231
Member Avatar for alagez

Hi there, I am interested in phone selection by using if..else statement. so after viewing the phone specification we can select the phone and purchase that. so do you have python sample codes for that? a rough idea is enough. Thank you. and python is really interesting.

Member Avatar for Schol-R-LEA
0
263
Member Avatar for iamthwee

I've asked this before and I'm really racking my brains here. To create an admin controller or simply have an if statement in the view. **view** if session == admin show admin delete post This would minimize my code so much. I really can't see the wrongness in this. Although …

Member Avatar for pritaeas
0
149
Member Avatar for shadowplayer28

when converting iget erros especially in the cin parts because they are automatically passed by something #include<iostream> #include<conio.h> #include<math.h> using namespace std; int p=1; class Bank { public: char name[50],address[90],type; double ein_betrag, aus_betrag; double balance; int costumernr, accountnr, birth, tel; public: void newcostumer(); void newaccount(); void costumerdel(); void accountdel(); void …

Member Avatar for Schol-R-LEA
0
326
Member Avatar for snowy365

I know very little aboout coding and less of Java Logic says I should be able to do something like this: int i; String taxFileNumber; System.out.printf(" Enter Tax File Number (TFN): "); for(i = 0; i < TFN_SIZE; i++) { if(i == 3 || i == 7) { taxFileNumber.charAt(i) = …

Member Avatar for JamesCherrill
0
150
Member Avatar for theashman88

I understand the concept of using get and set with instance variables, but I am confused about using get and set by themselves For example `public string random {get; set;}` what is the purpose of this, and how can I use this in my code. I am a beginning programmer …

Member Avatar for tinstaafl
0
229
Member Avatar for Lonestar Jack

**I want to embed links and fields into php generated emails. This is the email_message field.** Welcome to the Neighborhood 13 Wine Tasters Group. In order to make sure we have your correct email address we need to have you return this email by pressing the Return button on your …

Member Avatar for OsaMasw
0
144
Member Avatar for theashman88

`Console.WriteLine("Students {0}", variable)` This i understand but what does it mean when you put two numbers within the bracket example: `Console.WriteLine("Students {0,2}: {1,3}", student + 1, grades [student])` What do the 2 and 3 represent. I know the 0 and 1 correspond to variables, but I'm not clear on the …

Member Avatar for ddanbe
0
195
Member Avatar for trantran

I am writing a class that uses different policies stored in classes I want to declare this class by simply selecting the policies by writing `my_great_class<policy45, policy22, policy12>` (There can be a varying number of policies) which would translate automatically into: struct empty_class{}; struct policy12: empty_class{ // code... }; struct …

Member Avatar for trantran
0
631
Member Avatar for smitsky

I'm having trouble displying the contents of a queue. When I pop the queue here: for( int i = 0; i < diskQueue.size() + 1; i++ ) { cout << left << setw(0) << "--d" << i+1 << left << setw(4) << " " << left << setw(14) << diskQueue.front().getFilename() …

Member Avatar for smitsky
0
221
Member Avatar for ivan3510

Hi! This is just an example code: #include<iostream> using namespace std; int& example() { int a=5; return &a; } int main() { cout << example(); } But I'm getting this error: Error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int\*'

Member Avatar for ivan3510
0
205
Member Avatar for Haru_1

This is really stupid question and i feel ashamed to ask but i kinda have to. So here is the thing, in my college/school we got some sort of homework which isn't a "must do" but i wish to for myself, so thing we need to do is, when i …

Member Avatar for Haru_1
0
245
Member Avatar for ashley.vanhoesen.7

I am writing a program to input data from a file, format it and then output to another file. For some reason when i make the file I get this error: ----jGRASP exec: make g++ -ggdb -c Billionaire.cpp iostream:39:0, from Billionaire.cpp:7: c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ostream: In constructor 'Billionaire::Billionaire()': ostream:384:7: error: 'std::basic_ostream<_CharT, _Traits>::basic_ostream() [with …

Member Avatar for ashley.vanhoesen.7
0
4K
Member Avatar for Diego_4

Do you know if I can change of line in a list of lists? tareas = [] > otraTarea = [tarea,year,month,day, hour, minute, second, microsecond,str(cuando),cuando] `+'\n'+ []`(this is what i have tried) #I have tried to concatenate two lists, but the program returns a message, in which it's explained that …

Member Avatar for TrustyTony
0
322
Member Avatar for iamthwee

hi guys... what is the simplest php forum to add to my cms. I'm struggling finding something simple which separates the db code and view(html)

Member Avatar for diafol
0
793
Member Avatar for اشرف_1

this prog for database to edit and search database using sql by vb I want the search results appear in DataGridView only Dim winclass As New Class1 btnsearch.Enabled = True 'btnsearch.Enabled = True btnnsearch.Enabled = True If txtsearch.Text.Trim = "" Then MsgBox("enter value of search", MsgBoxStyle.Information) txtsearch.Focus() ' Lablerror.Text = …

Member Avatar for اشرف_1
0
240
Member Avatar for catastrophe2

hello everyone So i have a project to do a code about using these powers of three numbers: 1, 3, 9, 27, and 81 (we dont have to use all and a number of them can only be used up to one time per number being decomposed) and use them …

Member Avatar for catastrophe2
0
236
Member Avatar for smitsky

Hi. Can someone explain why this isn't working? #include <iostream> #include <list> #include <string> #include <iomanip> using namespace std; /** * Global Variables */ int printer; int disk; int cd; int num; int pmem, plen; int dmem, dlen; int cmem, clen; class PCB { public: PCB() : pid( 0 ), …

Member Avatar for smitsky
0
141
Member Avatar for k99rs

I have PHP scripts inside my HTMl file. I am using Apache. I created a .htaccess file and place it in my root directory of the application with the following as its contents AddType application/x-httpd-php .php .html .htm I want to allow the server to execute the PHP scripts inside …

Member Avatar for nturup
0
311
Member Avatar for smitsky

Hi. I'm trying to access some data in a List using an Iterator, but I'm getting an error message: #include <iostream> #include <list> #include <string> #include <iomanip> using namespace std; /** * Global Variables */ int printer; int disk; int cd; int num; string k; int pmem, plen; int dmem, …

Member Avatar for smitsky
0
220
Member Avatar for ImaComputerLuvr

I have an html form to get a number from the user for a calculation. The first number is given. The second is entered by the user. The result is posted to the same page. BUT the resulting answer is now the first number and again the second number is …

Member Avatar for ImaComputerLuvr
0
139
Member Avatar for dawbin

I'm an experienced ASP/MSSQL programmer trying to make the move to PHP/MYSQL and I've been able to wrangle my way up to now. I have a simple SQL query that works great in mymcadmin but gets lost in PHP. I've simplified it a bit here but this is the actual …

Member Avatar for iamthwee
0
261
Member Avatar for burt.munn

I'm very new to PHP or any type of web programming for that matter. I need the to put the following script into two columns or possibly a table with two columns. I need Fahrenheit as the heading for one column and celsius as heading for the other? It took …

Member Avatar for burt.munn
0
237
Member Avatar for mark103

Hi all, I need your help, I'm working on my PHP as I want to get the list of links for each array in get-listing.php. I want to get the list of links for each array like this: http://testbox.elementfx.com/get-listing.php?channels=ABC FAMILY&id=101 http://testbox.elementfx.com/get-listing.php?channels=CBS&id=102 http://testbox.elementfx.com/get-listing.php?channels=CNN USA&id=103 http://testbox.elementfx.com/get-listing.php?channels=ESPN USA&id=105 ..and so on I want …

Member Avatar for iamthwee
0
268
Member Avatar for davy_yg

Hallo, I get stuck when installing SQL Server 2012 : Services Account Name Password SQL Server Agent SQL Server Database Enginee SQL Server Analysis Services SQL Server Browser This Sharepoint Server connected to DCSHARE1 (Domain Controller) The problem is I do not know what to fill for Account Name & …

Member Avatar for davy_yg
0
245
Member Avatar for kingsonprisonic

First thing is this is a long question. So please first read it then give me your suggestion. currently i am working on a banking projects for my degree. Where i am implementing a simple bank savings account. Where account holder can deposit and withdraw money. The account starts with …

Member Avatar for Mr.M
0
361
Member Avatar for gu mi nam

this code was error.please help me fix it include <iostream> include <conio.h> include <algorithm> using namespace std; int a[]={1,5,7,4,9,8}; BST*binary_search_tree; struct BST{ int value; BST* left; BST* right; }; int search_bst(BST* node,int key){ if(node==NULL) return -1; if(key<node->value) return search_bst(node->left,key); if(key>node->value) return search_bst(node->right,key); else return node->value; } void insert_bst(BST* &treeNode,BST* newNode){ …

Member Avatar for gu mi nam
0
399
Member Avatar for smitsky

Hi. Can someone tell me why the following code is giving me an error message? Thank you. #include <iostream> #include <list> #include <string> #include <iomanip> using namespace std; /** * Global Variables */ int printer; int disk; int cd; int num; string k; int pmem, plen; int dmem, dlen; int …

Member Avatar for smitsky
0
423
Member Avatar for catastrophe2

Hello I have to do a sorted list code according to some instructions. a friend and I worked on this, and we pretty much ended up with the same code, his worked, but mine isnt, even though its exactly same! I have been trying for hours figuring how to make …

Member Avatar for catastrophe2
0
1K
Member Avatar for RoseB

I a sorry to come back with the same question. 2014 $5500 $5000.00 28% (10/12) x (5/15) $1389 $1389 $4111 2015 $4,111 $5,000.00 28% [(2/12) x (5/15)] + [(10/12) x (4/15)] $1,389 $2,778 $2,722 below is the code i use to calculate for the sum of years digit depreciation which …

Member Avatar for Mr.M
0
459

The End.