199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ms061210

Hi can anyone give me an idea on how I can come out with an output like this: $string = string1-1/string3-3/string3-3/ //this is the original string from DB //i want to split the strings and put it in the array, and the array should look like this Array[0] = String …

Member Avatar for veedeoo
0
293
Member Avatar for rama.krishna.9003

Hi All, I need a perl script to generate the following Replace value in a column of one file with a value from second file File1 246 0.668 20.644 20.610 0.000 3 U 1.039e+03 0.000E+00 - 0 1673 1676 1663 1662 18 0.816 22.786 24.906 0.000 3 U 1.815e+03 0.000E+00 …

Member Avatar for Dani
0
1K
Member Avatar for bnitishpai

I have a textbox to enter date into a MS Access database. I've tried entering 29-02-2000. But it is saved as 28-01-1900 in Access. I've tried entering 02-20-2000. But it is saved as 01-01-1900 in Access. My system shortdate format is dd-MM-yyyy. My system longdate format is dd MMMM,yyyy. My …

Member Avatar for bnitishpai
0
243
Member Avatar for Jjajangmyeon

When a user enters multiple keystrokes the meny prints multiple times. It should spit out an error and reprint the menu once...what gives? void mainMenu(char entries[], int index[]) { char choice; cout << "Please choose 1, 2, or 3.\n"; cout << "1. Save a new password\n"; cout << "2. Display …

Member Avatar for Jjajangmyeon
0
116
Member Avatar for Praveen_10

I need to insert a cobobox value ,date value into database but am not sure if this is the method...i keep getting an exception saying 'Incorrect syntax near '@Numberpassengers'.' private void button1_Click(object sender, EventArgs e) { string c = ""; string s = ""; string d = ""; string t …

Member Avatar for Praveen_10
0
418
Member Avatar for mcdczzz

how can i write this in case select syntax? please help If cboSearchType.Text = "Accredited Month" Then With grdSearchResults .Rows = .Rows - .Rows + 1 End With If rs.State = 1 Then rs.Close SQL = "SELECT * FROM BusinessInfo WHERE " & " AccreditationDate " & " like '" …

Member Avatar for mcdczzz
0
186
Member Avatar for liq

Hi all.... I'm using visual studio 2005 with vb.net. I've got a radio button and if you check it it loads data from my database into my lisbox. that works fine. but i want to use it as a little search function so i have a textbox and if i …

Member Avatar for Reverend Jim
0
769
Member Avatar for moaz.amin.37

first se these methods setForeground(Color.cyan); setBackground(Color.red); these methods are defined in Component class like this java.awt.Component and we pass parameters of an other class this is very confusable for me that we pass class members as parameters to method of a different class, i mean `setForeground(Color.cyan)` i defined in Component …

Member Avatar for stultuske
0
218
Member Avatar for daniel36

I have made a code to upload video with the help of w3schools.but It is not working great to upload mp4 video upto 300MB.Can any one provide me solution? or any opensource script to upload file.

Member Avatar for Vignesh_2
0
174
Member Avatar for silent lover

dear all daniweb users, i start using xamarin to create ios software. in mainstoryboard, i navigate passcodevc view controller to songlistvc view controller. i use scandit barcode scanner script in passcodevc.cs . after barcode scanner script, i want navigate from passcodevc view controller to songlistvc view controller. i use this …

0
206
Member Avatar for riteshuae

Hi i have installed prestashop 1.4.8.2, i want report from mysql, Number of orders per customer with customer name & customer id plus i want total amount of order customer wise. can you help me with SQL query so i can generate this report from phpmyadmin. thanks, regards, Ritesh

Member Avatar for riteshuae
0
239
Member Avatar for ohgosh

Hi there, wanna ask if the sql syntax order by and group by the same? eg: i have a dropdownlist and the values displayed should be in ascending order. hence is there any difference if i use these 2 sql statements below. [CODE]sql1 = "select distinct * from t_staff group …

Member Avatar for guruparthi
0
388
Member Avatar for garyjohnson

I have a domain name lets say. mydomain.com and it has a hosting account. But I also have another domain name, mydomain2.com that doesnt have a hosting account. How can I make mydomain2.com go directly to mydomain.com? I am using Host Gator

Member Avatar for vps9.net
0
194
Member Avatar for yuimikazuki

from sys import argv from os.path import exists script, from_file, to_file = argv print "Copying from %s to %s" % (from_file, to_file) # we could do these two on one line too, how? in_file = open(from_file) indata = in_file.read() print "The input file is %d bytes long" % len(indata) print …

Member Avatar for David W
0
224
Member Avatar for mallo

hi, What is the best way to store and retrieve text-files/images/videos in asp.net web application(local server)? plz provide me some good refrences thank you

Member Avatar for vps9.net
0
168
Member Avatar for kiail

Hello, I have multiple networks with a changing amount of devices on each. What I'm trying to do is have those devices report their ip address to a website where I can enter in their mac address and determine which ip address it's coming from so that I can control …

Member Avatar for kiail
0
304
Member Avatar for affable.guy

I have a website and i want register users to call other users of my website. What api to use ? Is there any api that can facilitate me in this ? I want to pay for it. Plus i am using asp.net and c#. Thanks

Member Avatar for vps9.net
0
196
Member Avatar for jaspertan

Hi to all i experience this kind of error when i tried to add the data to database using for each here is my code. $org = Input::get('orgname'); $orgs_date = Input::get('orgsattended'); foreach($org as $o=>$von){ DB::table('orgs')->insert(array( 'personnel_id' => $personnel_id, 'orgs_name' => $von, 'date_attended' => $org_date[$o] ) ); } $skillname = Input::get('skillname'); …

Member Avatar for nadiam
0
211
Member Avatar for Daneos

Hello, I need for my game inventory function a mysql query which checks the next available free slot id. example: I have item on slot 1, 2, 3 and 5. Slot 4,6,7,8,9 ... are free.. Now I need query which would get the number 4. Something like SELECT * FROM …

Member Avatar for DJBirdi
0
147
Member Avatar for SlashBunny

I'm creating a website with a list of company and their profile. So far I have been able to make a navigation list of company and their profile as AJAX page. <ul id="nav" style="float:left, margin: 10 10 0 10;"> <li><a href="company_1">Company 1</a></li> <li><a href="company_2">Company 2</a></li> <li><a href="company_3">Company 3</a></li> </ul> <div …

Member Avatar for DJBirdi
0
781
Member Avatar for analys

Hi, I'm new to python. I'm creating python script that will copy file from different destination to another destination. It will copy as well the access for different user. I'm trying to output any results to the logfile but it didn't seem to output it. Here's my code. Hope anyone …

Member Avatar for analys
0
419
Member Avatar for daniela.valkanova

> *no instance of function template*maximum* matches the argument list argument types are: (int,int,int)* #include <iostream> using namespace std; template <class T> T maximum(T value) { T maxValue; if (value >= maxValue) maxValue = value; else value = value; return value; } int main() { int number1 = 1; int …

Member Avatar for Sarkurd
0
6K
Member Avatar for nitin1

Main.cpp #include <iostream.h> #include "functions.h" int main(){ print_hello(); cout << endl; cout << "The factorial of 5 is " << factorial(5) << endl; return 0; } hello.cpp #include <iostream.h> #include "functions.h" void print_hello(){ cout << "Hello World!"; } factorial.cpp #include "functions.h" int factorial(int n){ if(n!=1){ return(n * factorial(n-1)); } else …

Member Avatar for L7Sqr
0
136
Member Avatar for everton.retweets

Hi, I am trying to update a simple mysql query using PHP PDO The simple query read $query = mysql_query("SELECT * FROM tbl_name WHERE oauth_provider = 'twitter' AND oauth_uid = ". $user_info->id); My PHP PDO query reads $STM = $dbh->prepare('SELECT * FROM tbl_name WHERE oauth_provider = :op AND oauth_uid = …

Member Avatar for everton.retweets
0
5K
Member Avatar for gagun

I am trying to write a output for my log in file on the desktop but for somereason, it is not doing that.It says the file cant be instantiated. I have the code and console output below. Any help would be much appreciated. thanks in advance. ### direct log messages …

Member Avatar for ~s.o.s~
0
2K
Member Avatar for Jack_9

I honestly think that the python programming language will take over other languages such as c# and maybe even c++. Why do I say this? Because a python interpreter can easily be embedded in the game. I have also written an engine to make python as fast as C++ (true …

Member Avatar for iamthwee
0
410
Member Avatar for justinelinz.sonenclar

THis is my question and I have no idea how to do it. Write a GrowSquarePrinter program that constructs a Rectangle object square representing a square with top-left corner (100, 100) and side length 50, prints its location by calling System.out.println(square), applies the translate and grow methods, and calls System.out.println(square) …

Member Avatar for iamthwee
0
321
Member Avatar for oanahmed

Hi! I'm a student learning C language. During my exercise I have faced a weird problem(atleast to me). I have encountered two declarations: int size; int arr[size]; I'm unable to figure out the actual dimension of the array and its lenght as the variable `size` is only declared not defined; …

Member Avatar for oanahmed
0
350
Member Avatar for everton.retweets

Hi Everyone, I am trying to create a twitter login app, I have the app created and I can log into my app, But what I would like to do is create a number of session virables so I can use the information in my app. When a user authenticates …

0
102
Member Avatar for moaz.amin.37

i am very confuse about java applets so please solve my questions my question is that when we write applet then we write only methods defination not method calling so i am confuse about this that who call the methods of applets.and second is that we call the methods of …

Member Avatar for JamesCherrill
0
261
Member Avatar for Ouwgel
Member Avatar for almostbob
0
8K
Member Avatar for ms061210

Hi, can someone explain to me why my code is returning wrong output. I want this code, First I have additional UPDATE query for a category 10, if it is not category 10 then it should ignore the update code. It is running correct if I input an item which …

0
121
Member Avatar for kxjakkk

I'm trying to write a boolean function that takes two Mytime objects, t1 and t2 as arguments, and returns True if the object falls inbetween the two times. This is a question from the How to Think Like a Computer Scientist book, and I need help. What I've gotten so …

Member Avatar for David W
0
452
Member Avatar for jalferez1

program 1. create a program that accepts strings and syntactically analyze it whether it belongs to the language defined by the BNF below: BNF: <VD>-><DT><VL>; <DT>->char|float|int|double <VL>-><V>|<V>,<VL> <V>->'any valid variable name' program 2. valid assignment statement BNF: <AS>-><ID>=EXP>; <ID>->a|b|c|d <EXP>-><EXP>+<TERM>|<EXP>-<TERM>|<TERM> <TERM>-><ID>|'('<EXP>')' I NEED HELP. THANKS:)) I'M FINE WITH ENGLISH SPEAKING …

Member Avatar for David W
0
2K
Member Avatar for mikewyatt

Hey everyone...... Sorry I havent been around for a while... had a heart-attack and havent been here for a while. Doing much better now! I am needing research material for networking multiple computers together that allow data transfer/updating in both directions. Note this is not for databases, even though there …

Member Avatar for JamesCherrill
0
193
Member Avatar for Daneos

Anyone can help me? I have inventory system which works with item-bags. There are 4 different item-bags. 1 bag have 4 other 8, 12, 16. Now for the NPC shop I need to check if there is a free place in my inventory. Lets say, I have 2 bags. 1 …

Member Avatar for David W
0
212
Member Avatar for Centorpe

I have two items which can be selected from two seperate comboboxes. I need to populate a 3rd combobox with range calculated from selection of first two. Default for this 3rd box must be 0 with plus and minus range. A little help would be much appreciated.

Member Avatar for Centorpe
0
255
Member Avatar for Maideen

Hi i have issue in stored procedure converting data type Destination table dbo.Z_tbl_CirculationCopy_TEMP has numeric data type But source table Z_tbl_Import_temp have VarChar Type If I export data from source, I have error message Msg 8114, Level 16, State 5, Procedure Z_usp_IMPORT_EXCEL_UNPIVOT_1, Line 10 Error converting data type varchar to …

Member Avatar for hericles
0
1K
Member Avatar for fobos

Hello all, i have a small question, i data dumped my torrent file and i forgot how to convert the date string to an actual date. Example. ["creation date"]=> float(1392057306) I havent worked with php in a while and im finally getting back into my project. Thanks for any support.

Member Avatar for Hiroshe
0
195
Member Avatar for SimonIoa

I want to make a search option. this is my statement in php $FILTER AND $ORDER are working perfectly. The statement too. else if (isset($_POST['search_all'])) { $Filter .= " AND M.title LIKE '%" . $_REQUEST['src_all'] . "%'"; $Order = " ORDER BY M.idate DESC"; } and this is the html …

Member Avatar for fobos
0
124
Member Avatar for SimonIoa

Can you tell what do i do wrong? this is the statement if (isset($_POST['search_all'])) { if (empty($_REQUEST['src_all'])) { echo "<p>You forgot to enter a search term</p>"; } elseif (!empty($_REQUEST['src_all'])) { $Filter = " M.message LIKE '%" . $_REQUEST['src_all'] . "%'"; $Order = " ORDER BY M.created DESC"; } } this …

Member Avatar for fobos
0
349
Member Avatar for Jack_9

In my opinion, python is a fantastic language, but is it possible to develop an operating system with python, BUT one thing that I do know is that if you were going to develop something with python it would probably have to be the gui. Because python dosen't even really …

Member Avatar for mike_2000_17
0
264
Member Avatar for dwlamb

I have two forms that are fairly identical located on different pages of a site. In order to call distinct jQuery ajax functions there are two class names I need to alter. For one of the pages, I place this script <script> $(document).ready(function(){ $(".itemDelete").switchClass("itemDelete","LibraryItemDelete"); $(".itemEdit").switchClass("itemEdit","LibraryItemEdit"); }); </script> and it is …

Member Avatar for dwlamb
0
173
Member Avatar for Jjajangmyeon

It's giving me an error telling me my reference variable hasn't been initialized. What does that mean, what's wrong with my code here? /* ------ FUNCTION: NEW ENTRY ------------------------------------ ----------------------------------------------------------------*/ void newEntry(char entries[], int index[]) { char buffer[256]; char password[8]; bool val = 0; int &length; cout << "\n------ New …

Member Avatar for Jjajangmyeon
0
6K
Member Avatar for DarkSlash

I'm working with a MS SQL database that was done by another developer. Im developing a website that interacts with that database. I need to use a stored procedure called LoginR that takes 3 input parameters (LoginName and Passwords) and returns the NickName in the third value. But also, has …

0
131
Member Avatar for archie.herbias

I want to build an own interpreter using c programming and I want to call it in command prompt. How would i do this? I just want to start a command "display" which can display the contents of a file like type in cmd.

Member Avatar for archie.herbias
0
2K
Member Avatar for asaidi

Hi i m trying to get selected from jradiobutton..i m using eclipse and windowbuilder for java please check my code JRadioButton btn1 = new JRadioButton("By Trading Name",true); btn1.setBounds(22, 48, 149, 23); contentPane.add(btn1); JRadioButton btn2 = new JRadioButton("By Overshop",false); btn2.setBounds(22, 75, 149, 23); contentPane.add(btn2); JRadioButton btn3 = new JRadioButton("By Address",false); btn3.setBounds(22, …

Member Avatar for JamesCherrill
0
227
Member Avatar for Abeeha sheikh

Hi everyone, please anyone help me... My program is correctly compiled but not runnig? What would be the problem in my program??

Member Avatar for Ancient Dragon
0
148
Member Avatar for hhm_pro992

Hi! I want to know, how to delete empty or blank row in DataGridView in Vb.net.......... "When i click Button the all empty or blank row in DataGridView will be remove......" LIKE this : " Before Button Clicked " ![cccfb5927324360a697c76844a521720](/attachments/large/3/cccfb5927324360a697c76844a521720.png "cccfb5927324360a697c76844a521720") " After Button Clicked " ![be990ddb7744e1b53a444eeda94e8064](/attachments/large/3/be990ddb7744e1b53a444eeda94e8064.png "be990ddb7744e1b53a444eeda94e8064")

Member Avatar for hhm_pro992
0
10K
Member Avatar for Sh4dowz

Hi,I was wondering if anybody had some good C++ tutorial or Books. I want to learn C++ really badly.I really want to start learnig at and early age. I know Java,VB.net but, I need a more powerful language that can do much more.I'm 13 but, don't get me wrong I'm …

Member Avatar for mudasar44
0
381

The End.