199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for wakesin

hey there Daniweb. So I am in need of some help with a project I have. We need to create a program that will print out rows of asterisks as tall as defined by the user. [CODE]For example, if the user entered, 1 2 3 4 3 2 1 10 …

Member Avatar for Rock426
0
6K
Member Avatar for iConqueror

**Please note that I am not asking for an answer to the exercise just abit more explanation** I have this question that I do not understand. Using a class to wrap simple stream input (InputWrapper.cs) modify following program to calculate area of a triangle given base and height using System; …

Member Avatar for iConqueror
0
146
Member Avatar for thiagorochagomes

Good evening I have this code in PHP that serves to list the latest topics in a forum (IPBOARD): <?php // CONFIGURAÇÕES DE CONEXÃO $connect = mysql_connect("localhost","root","senha") or die (mysql_error()); $select = mysql_select_db("forum") or die(mysql_error()); // URL DO FÓRUM $url = "http://endereço do forum/"; // LIMITE DE LINKS QUE IRÃO …

Member Avatar for diafol
0
530
Member Avatar for mohan raj91

I want to print the string. In my code i am not getting the right string. line="\\python\001tag\file.txt" str=re.search(r"\[(0-9)+]",line) (dont use raw_string here) print str.group() This gives nothing. I want to extract 001 from there. Note: I dont want to use rawstring.because here user is getting the path from other resource. …

Member Avatar for Gribouillis
0
460
Member Avatar for mwnt2014

Having two Problems shown below: 1. **Want to send post form data to other domain area and receive response from that domain page**. (Ajax not working for other domain) 2. Show ads div between worpress post area through plugin. how can i make this plugin.?

Member Avatar for diafol
0
225
Member Avatar for sankubha

Now am working with java application . I have to connect server and client through No-Ip Duc host.Is it possible or not??? Server side code: ServerSocket ss=new ServerSocket(5223); System.out.println("Waiting for client"); Socket soc=ss.accept(); System.out.println("Connected"); client side code: Socket soc=new Socket("rmcsnoiptest.ddns.net", 5223); This is what i tried.

Member Avatar for JamesCherrill
0
364
Member Avatar for mkhan.haqpalkhan

i have two tables in access and i want to update datagridview which is made from joining of these two tables, how update this datagridview in vb.net

Member Avatar for jared.geli
0
160
Member Avatar for aluhnev

The containers SET/VECTOR/LIST/MAP are very similar in use,so how to choose which one to use? Is where any special cases? Thanks

Member Avatar for mike_2000_17
0
278
Member Avatar for covert

after compiling,when i run program my 'FTN 95\PLATO' recently showing me black DOS box,only reading "PREES 'RETURN' to cotinue" without executing the program. could u say why is this happening ?

Member Avatar for Schol-R-LEA
0
148
Member Avatar for cool_zephyr

could anyone tell me how to dynamically select an item in a listview?? i tried `listview.setSelection(1);` and `listview.performItemClick(listview,3,listview.getItemIdAtPosition(3));` both of them don't work..please help me.

Member Avatar for NotoriousZeus
0
255
Member Avatar for chaze

Here is the page: <?php include( "mypath.php" ); include( "{$filepath}/config/clientdbconnect.php" ); if ( ------------------------- ) { #exit( "Security Violation" ); } include( "header.php" ); $sqle = "select * from helpconfig where cid = '1'"; if ( !( $resulte = mysql_query( $sqle ) ) ) { exit( mysql_error( ) ); } …

Member Avatar for Taywin
0
255
Member Avatar for Gianluca_1

Hey guys, so I'm creating this webapp that creates a QrCode based on informations given by the user, decodes QrCodes and creates a log. I would like some tips, like QrCodes, Image processing, Getting SubImages libraries and API's. I'm using HTML5, CSS3 and JavaScript. This webapp will be able to …

Member Avatar for NotoriousZeus
0
282
Member Avatar for Varunkrishna

I am using PrintWriter to write the input from the standard input to a file, here I am trying to create an ascii table in the text file, but there is no proper alignment of the table in the text file. Here is my code guys. package code.practise.MyIdeas; import java.io.FileNotFoundException; …

Member Avatar for Taywin
0
260
Member Avatar for Lloyd_3

kindly help me in making program in the permutaion of 1,2,3,4,5. Permutation means the arrangements of the numbers 1,2,3,4,5. ex. 1,2,3,5,4 1,2,4,5,3 and so on.. there are 120 results.

Member Avatar for iamthwee
0
504
Member Avatar for safi.najjar1

Hi guys, I have 3 classes : 1.Product(Super Class) 2.SmartDevice(Sub Class) 3.Accessories(Sub Class) so I made 3 tables in database and made productId as a foreign key for smartDevice table and accessories table so I've had a trouble thinking about what the code of CRUD will be if I used …

Member Avatar for safi.najjar1
0
354
Member Avatar for accra

Hi every one. i have built an online fleet management app in php/mysqli successfully. I now have to add a gps device to send lon,lat, speed and so on to online app. I did some reading on php tcp socket listener, but am not very clear. Do any one have …

Member Avatar for accra
0
1K
Member Avatar for Tamil_1

i have a xml file.that doesnot have attributes in the tags.for that i created the xslt file and then used xml datasource and put in a grid view.now i need to search for text in the grid view and need to put the results in grid view again.it is possible.suggest …

Member Avatar for Tamil_1
0
166
Member Avatar for aluhnev

//Hi,can someone explain what is the difference of declaring the main in C++/C++11 //What is most common may to use or it's metter of personal choice? int main() { return 0; } /////////////////// int _tmain(int argc, _TCHAR* argv[]) { return 0; } /////////////////// int main( int argc, char ** argv …

Member Avatar for NathanOliver
0
353
Member Avatar for nhrnjic6

So I've built a Queue data sructure(all the needed methods) and I just wanted to know how can I use my Queue objects in different project ?

Member Avatar for Schol-R-LEA
0
236
Member Avatar for malatamil

i want to display 3 data per row and n number of rows. someone help me to do this. <div class="top-box"> <?php include("config.php"); $sub2_category_id = $_GET['sub2product_id']; $sub2_category_name = $_GET['sub2product_name']; echo '<h2 class="head">'.$sub2_category_name.'</h2>'; $sql = mysql_query("SELECT p.`product_id`, p.`brand_name`, p.`brand_path`, p.`sub2_category_id`, p.`sub_category_id`, p.`main_category_id`, p.`date`,ba.`brand_amount_id`, ba.`available_pack`, ba.`mrp_amount`, ba.`our_price`, ba.`product_id` FROM `product` p JOIN …

Member Avatar for thirsty.soul
0
2K
Member Avatar for Slavi

Not sure how to explain what is going on but after some time scene builder just won't display the fxml file that I am trying to modify further. It happened a couple of times so far and its really annoying because nothing can be changed. Yes, I do see scene …

Member Avatar for Slavi
0
98
Member Avatar for cd88

Hi, I am stuck trying to reuse the calendar or the date time class in visual basic I can not find a way to reset the former settings. Is it just me or is there a way to accomplish this task. Any help would be appreciated. I feel it is …

Member Avatar for cd88
0
393
Member Avatar for Schol-R-LEA

**note:** This was also posted to the [comp.lang.scheme](https://groups.google.com/forum/#!forum/comp.lang.scheme) earlier today. I normally wouldn't cross-post, but after I noticed the extremely low traffic on the newsgroup, I decided to try a more active, if less specialized, forum. As part of a larger project, I am writing a macro that defines a …

Member Avatar for Schol-R-LEA
0
320
Member Avatar for Jake.20

<?php //start php tag //include connect.php page for database connection Include('dbConnection.php'); //if submit is not blanked i.e. it is clicked. // var_dump($_REQUEST); session_start(); $errCount = 0; $user = $_POST['usernameTbx']; $pass = $_POST['passwordTbx']; if(isset($_REQUEST['submit'])!='') { //VALIDATE USERNAME TEXTBOX if($_REQUEST['usernameTbx']=='') { $errCount += 1; $_SESSION['error'] += array('usernameTbx' => "Username cannot be empty"); …

Member Avatar for Ketul_1
0
362
Member Avatar for aluhnev

#include<utility> #include<tuple> #include "stdafx.h" #include<string> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { pair<int, string>p(42, "forty-two"); cout << p.first << " " << p.second << endl; p = make_pair<int,string>(112,"one-one-two") ; cout << p.first << " " << p.second << endl; return 0; } // Can some one help to …

Member Avatar for aluhnev
0
232
Member Avatar for toring

Hi, I need some help please i could not show the balls,when my pacman is moving,i want my pacman will through balls when it's moving.but i could not show his balls,can you please help me what is wrong or missing in my code. I appreciate someone can help me import …

Member Avatar for JamesCherrill
0
232
Member Avatar for centenond

Could some 1 please tell how to do timestamps that not rely on users computer? time(); and UNIX_TIMESTAMP() seems to rely on users pc Thanks

Member Avatar for diafol
0
438
Member Avatar for Paul_26

Hello i try to update the Image using Update Query in MySQL here's the code $pic = $_FILES['photo']['name']; $sql = "UPDATE `std_login` SET `imagename` = '$pic' WHERE `std_id_no` = '$std_id'"; the File upload works, but not Stored in Database. what to do? help me please.

Member Avatar for thirsty.soul
0
2K
Member Avatar for thirsty.soul

Hello DaniWeb, I am working on project in which admin generates dynamic query by selecting value from the First dropdown(program) then second dropdown (semester). The concept is that For example: if admin select "MSCS" from the first dropdown list and "3" from the second dropdown list. it should populate all …

Member Avatar for thirsty.soul
0
228
Member Avatar for eahdbz12

I need to get the list of diagnosed disease of the patient by choosing his name in the combo box,how can I do that? This is my code. <select name="pname" class="textfields" id="model" style="width:180px;" onchange="getVal1();"> <option id="0" >--Select Patient Name--</option> <?php $con=mysqli_connect("localhost","root","","dbnpatient"); if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " …

Member Avatar for thirsty.soul
0
220
Member Avatar for Koh_1

Dear all, May I know what is the problem for my source code. I let the user to choose the Quarter and Subdept. But when the user choose one of the Subdept, it will show this error Expected '}' at line (var rows = eval('(' + xmlhttp.responseText + ')');) May …

Member Avatar for Koh_1
0
213
Member Avatar for Nicholas_5

Hello, I am currently completing a side project. The biggest ideal of it all has to do with a dynamic drop down box. I have heard and seen of the 'auto complete textbox' feature by using ajax/jquery toolkits. That is what I'm looking for, but I was wondering if there …

Member Avatar for hericles
0
298
Member Avatar for Mahkoe

I am currently writing a little applet to modify files in a certain way. However, I am noticing wildly strange behaviour. I have an output file that is fopen'd in "a+" mode. If the file did not exist and was created, the resulting output is total garbage (however, it exhibits …

Member Avatar for rubberman
0
142
Member Avatar for Adam_16

I am new to programming and I have learned the language javascript and jquery but I can't actually make things work. In other words I know all the parts of the language, but I can't turn ideas into code. Does anybody have ideas on how to learn to code ideas?

Member Avatar for Adam_16
0
91
Member Avatar for _echelon

Hi DaniWeb, I've been programming a litecoin clone for about two weeks now. I came to build the daemon to acquire a merkle hash, but It give me this error. Error: To use vizcoin, you must set a rpcpassword in the configuration file: /home/crypto/.vizcoin/vizcoin.conf It is recommended you use the …

Member Avatar for David W
0
191
Member Avatar for TommyTee

Hi guys, I have a class called Account with variables called Balance and Status. The Member Name is given by the User through cin and represents an the Account Number. How can I diynamically create an object through cin and give their variables a value through cin? I have been …

Member Avatar for David W
0
2K
Member Avatar for supun.lakshan

I want to do some action with the help of multiple key pressed in vb.net even program is minimized. I've read the only way of detecting global keys is using a timer. So can someone **please** tell me how to do it? With multiple keys. (eg: ALT+A)

Member Avatar for Reverend Jim
0
888
Member Avatar for nathan.pavlovsky

Hello programmers! I am working on a program that checks if a user's input is a palindrome (in this case, the input is a string). I am using a custom class template "stack", that is a constrained version of my custom class "List", which is a linked list class template. …

Member Avatar for nathan.pavlovsky
0
418
Member Avatar for mayyubiradar

Hello All, I have searched every forum and google etc but nothing directed me in right path. Requirement: I am using a COM object which can be initialized only once. But, when I try with webapi the first run goes fine and the rest fails as the COM object does …

Member Avatar for pritaeas
0
1K
Member Avatar for SoreComet

Can string be compared with == operator? I know that they can be compared using strcmp() function. But this snippet confused me a lot #include <stdio.h> #include <stdlib.h> int main() { char str1[]="Good Morning"; char str2[]="Good Morning"; if(str1 == str2) printf("Equal"); else printf("Not Equal"); return 0; } The output of …

Member Avatar for SoreComet
0
123
Member Avatar for cambalinho

i'm creating the form class. the form us showed and the window procedure works. the problem is that some messages(like WM_CREATE) aren't working. so how can i connect, correctly the form to window procedure?

Member Avatar for cambalinho
0
616
Member Avatar for cambalinho

i'm build a function for do the combination of keys(like the kombat games: we do some combination keys for do an actions): bool CombineKeys(std::vector<int> const keys) { static bool PreviousKeyPressed; static DWORD StartTimer = GetTickCount(); static int i=0; if((GetAsyncKeyState(keys[0]) & 0x8000) and PreviousKeyPressed==false) { i=0; SetWindowText(a,"hello"); PreviousKeyPressed=true; i++; } else …

Member Avatar for cambalinho
0
235
Member Avatar for Saranya_2

Hi Dani I am trying to develop a case study in c languade for addressbook.Is glade a turbo c accepted GUI. If so how can I link c program functions, xml etc with glade.I have no idea.Please reply as soon as possible. Thanks Saranya

Member Avatar for rubberman
0
115
Member Avatar for Varunkrishna

Hi all Here is my snippet for(int i = 1;;i++){ System.out.println("Please enter the name:"); name = input.nextLine(); System.out.println("Please enter the email:"); email = input.nextLine(); if(!email.matches(EMAIL_PATTERN)){ System.out.println("Please enter a valid email.\nThe details are not saved please start from the beginning."); i--; // break; continue; } else { printwriter.println("|"+i+")\t|"+name+"\t|"+email+"\t|"); printwriter.println("+-----\t+-----\t+-----\t+"); } if(i>=1){ …

Member Avatar for Varunkrishna
0
121
Member Avatar for lrh9

There is a security technique known as code signing. It basically generates a certificate for your code. This certificate first certifies the author of the code. Second, it has a value generated from the code. This value is unique to that code. If any changes are made to the code, …

Member Avatar for jamercee
0
6K
Member Avatar for Yahia Farghaly

Hi,can anyone help me how to start programming With MFC C++ ? and what's the best learning source for it? and is it good to learn that ? i am have some good experience with c++ and i am looking forward to design some gui programs ,i know that there …

Member Avatar for Moschops
0
746
Member Avatar for asheesh.mehta.54

<?php session_start(); mysql_connect("localhost","root",""); mysql_select_db("secure"); $name = $_POST['n']; $address = $_POST['x']; $order = "INSERT INTO user VALUES('$name','$address')"; if($result) { echo("Input data is succeed");} else { echo("Input data is fail");} ?> Error: No base was selected

Member Avatar for diafol
0
209
Member Avatar for rchawdhari

create table invoices( year int not null ,invoice_number int not null auto_increment ,primary key(year, invoice_number) ); insert into invoices(year) values(2009); insert into invoices(year) values(2009); insert into invoices(year) values(2009); insert into invoices(year) values(2010); insert into invoices(year) values(2010); insert into invoices(year) values(2010); select * from invoices; +------+----------------+ | year | invoice_number | …

Member Avatar for cereal
0
1K
Member Avatar for mark.giles.14

Should apostrophe's be stored from a form into a database as ’ or as is ' If Im pasting articles into a database from another website do I need to convert the string on posting or leave them as it is.

Member Avatar for mark.giles.14
0
153
Member Avatar for istteffy

Hello guys, have you got any samples of mobile security application or database security on SQLight that works? My idea is to learn a secure login where users location is shown, captured and added to the database when the user logs in. I am a student, starting on security and …

Member Avatar for istteffy
0
265

The End.