64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for james.lu.75491856

I want to start a command in command prompt, but os.system() can only do one command, and I want it to start from a url. Example: import os,getpass print "Altline (C) James Lu" print "All rights reserverd." def currentuser(): try: return "Users/" + getpass.getuser() except: print "Cannot detect user, starting …

Member Avatar for Gribouillis
0
204
Member Avatar for mpc123

HI I have an else if statement that all the results are coming out as the first if even though in the info row they are different in the table, hope someone can help. // showbanners if($row['info'] ="Some Apples") { $showbanners = '<img src="1.png"><br><br><img src="2.png">'; } elseif($row['info'] ="Some Bananas") { …

Member Avatar for mpc123
0
142
Member Avatar for Mr.M

Hi Dw I'm trying to create a program that I will use to browse through websites when I'm not connected to the internet and I can download the single page using the code I provide bellow but what I want is to download the entire website with it contents e.g. …

Member Avatar for Mr.M
0
329
Member Avatar for Octet

Hello Daniweb, I am facing a problem with my web host, 123-Reg and their basic Linux startup package. To summarise what this package contains, it is a small scale shared hosting environment with support for PHP. I am developing a content management system which writes data to a flat file …

Member Avatar for Octet
0
592
Member Avatar for ss125

When i implement the following code in my Global.asax.cs in the session timeout procedure, It prompts me an error... HttpContext.Current.Response.Redirect("login.aspx"); What will be the problem? Note: I want to forward the user to login page when the session is timeout.So i used this. Correct me if i am wrong in …

Member Avatar for ss125
0
167
Member Avatar for EXTRA_RICE
Member Avatar for cleve23

Hi all, I was trying out this for loop example and i notice that the for loop only works for the printing of x.The printing of y value did not work at all until the loop ends. I am trying to understand how for loop actually works. Am i right …

Member Avatar for cleve23
0
138
Member Avatar for dev90

Answer is NING. how....? i am not getting. can any one explain please....? ‪#‎inclde‬<stdio.h> void main() { printf(2+"GOOD EVENING"+6); getch(); }

Member Avatar for dev90
0
128
Member Avatar for SenseiWuzi

Hi, Basically, what I'm trying to do is that once the user has entered player names into two seperate text boxes, the user will then click the "Play" Button, this button will then change it's text to say "Quit". How would I go about doing so that once the button …

Member Avatar for SenseiWuzi
0
223
Member Avatar for Sevyt

Is there any way to show the highest value from a access db column in a textbox which you put in the load of a form? Found something by searching around, but did not get it to work at all. Maybe because i cannot open a connection in the load …

Member Avatar for Sevyt
0
615
Member Avatar for brandon66

Hey everyone having some troubles here with an update statement. I want to update a value(scanISN) if it exists and show information updated and if it doesn't exist show an error right now it show information updated even if it doesn't exist. How would I do that? <?php if(!isset($_POST['addMe'])){ //show …

Member Avatar for brandon66
0
207
Member Avatar for fuhanspujisaputra

Hi guys, i created Windows Application form my project and there is a problem that i am facing right now. I already had an array of textboxes, and wanted to connect those database textboxes, however, i cannot get the data because the data that i want to connect is int …

Member Avatar for fuhanspujisaputra
0
992
Member Avatar for JiminSA

Hi there! I have just joined DaniWeb and would like to pose a question... I need to direct my UK visitors to a Special Homepage, does anyone know of some simple PHP or even Javascript code that will point me in the right direction?

Member Avatar for varunr
0
498
Member Avatar for michaellooks

i installed a codeblocks IDE in my flash drive while i was using windows 7. After downgrading to windows XP, the IDE won't open and an error message pops up "codeblocks.dll is not a windows dll." Pease assist in help me solving this. Thank you.

Member Avatar for michaellooks
0
91
Member Avatar for maydhyam

Is there a setting in the MySQL Administrator to set the file upload size?

Member Avatar for sergeik.rndwork
0
161
Member Avatar for Tyyppi_77

So, I'm coding a IDE in Python and I'm using Tkinter for the GUI. What I'm looking for is a way to add a "recent files" menu to the menu that opens when you right click the program's icon in Windows's task bar. I have a picture to show what …

Member Avatar for Tyyppi_77
0
959
Member Avatar for satheeshakira

Hi, Some one pls help me to read datas from mysql table and update only single field in my table. I have mysql table and already inserted datas. But now i want to update only date field , since i need to place the all other data as it is. …

Member Avatar for satheeshakira
0
2K
Member Avatar for Fatima_110

I have no idea how to do this: Create a class called Date that contains three pieces of information as instance variables – a month, day and year e.g. 4, 14, 2007. All three of type int. Your class should have a constructor that initializes the three instance variables. Provide …

Member Avatar for JamesCherrill
0
227
Member Avatar for cleve23

Hi I keep having problem on trying to call the method 'in3050'.Please someone guide me on this???? Thanks public class NumberCheck { private static void main(String[] args) { int num1 = 31; int num2 = 40; boolean check = in3050(num1,num2); } public boolean in3050(int a, int b) { if (a …

Member Avatar for cleve23
0
300
Member Avatar for Sebastian_1

I am trying to write an app that can be used by different users with different access levels. I have some buttons that I am using a Inputbox to ask for and verify the password. I would like the change them to a password char txtbox However, I dont know …

Member Avatar for Sebastian_1
0
166
Member Avatar for charles.dupree.37

Hi, I was wondering if someone could look at this person class I am working on. The first part is the class header with the constructors for the class. In the second part I am trying to write the code but when I declare the get_age and get_name objects I …

Member Avatar for charles.dupree.37
0
7K
Member Avatar for Mike_H

I have a table with over a thousand records that I need to update a field I have called "id". I need each record's ID to be unique. I am using the uniqid() function which works just fine. When I use the code below (and several other variations of it), …

Member Avatar for Mike_H
0
123
Member Avatar for SaRa Ahmad

i used this code to send email from vb6 form that connect with out look email account 'Dim olapp As New Outlook.Application 'Dim olMail As Outlook.MailItem 'Create a new mail object form the 'Outlook98 Application object 'Set olMail = olapp.CreateItem(olMailItem) 'Set the mail fields of the olMail object 'olMail.Subject = …

Member Avatar for SaRa Ahmad
0
2K
Member Avatar for ram619

In this code at line number 7, 'p' is a 1D pointer then how come at the print statement it is being considered as 2D pointer ? and when we do 'a+1' then it would cross whole array. I am not able to understand this code. Please explain. Expected output …

Member Avatar for ram619
0
231
Member Avatar for Sanjay_6

Rightnow i am facing a problem of print Long Text. In my database i have data in long text format and that field has around 2000 line of text so how can i print that. I am giving here full code of my file please go through it and try …

Member Avatar for broj1
0
1K
Member Avatar for EXTRA_RICE

why is command2 in dataenvironment cannot be added on datareport.only the command1 is allowed in datareport.guys pls help me..

Member Avatar for EXTRA_RICE
0
102
Member Avatar for devianleong

Hi,Currently I'm using this tutorial : [Click Here](http://docs.cksource.com/CKFinder_2.x/SelectFunction) but the output is /home/xxx.com/public_html/images/image/1234.jpg How can I change the path to /images/image/1234.jpg ? Please help me ><

Member Avatar for devianleong
0
183
Member Avatar for ss125

Good day!!! I have implemented the captcha verification to my application. But I am having a problem in it. I cannot able to find methods that can only reload the captcha image.Instead I have to reload the entire page. Is there any wa y to do it. This is my …

Member Avatar for ss125
0
209
Member Avatar for Judgment

I'm trying to create a game of Go Fish in Python. But I've stumbled onto a little problem that I can't seem to figure out how to deal with. There is a human player (player 0) and three computer players (from 1-3). The human player goes first and chooses a …

Member Avatar for james.lu.75491856
0
688
Member Avatar for Octet

Hello Daniweb, I am trying to implement a show/hide feature for a website, to help organise the content more effectively. At the moment I am using a simple JS function that changes the .style.display of a div to either none or block. The problem is that because the content is …

Member Avatar for Octet
0
162
Member Avatar for Franze

Hi, I have done a test using the lock(lockobject), which will be an interesting question. I have created 2 background threads, that I start simultaniously. Threads uses a while(true) loop to produce the test. If we uncomment and use the lock(lockobject) in the code. None of the loops will write …

Member Avatar for Franze
0
165
Member Avatar for lewashby

I'm looking throug the documentation at python.org for modules and functions allow me to do basic operations on in a Linux file system. I need to do simple things like list the file and folders in a directory 'ls' and change director 'cd'. I found these two pages that looked …

Member Avatar for lewashby
0
146
Member Avatar for glenwill101

ive been trying to improve my skills when it comes on to using maps and iterators but i seem to be mostly failing can someone please tell me where im going wrong or point me in the right direction compiler error a.cpp:20:55: error: conversion from ‘std::map<std::basic_string<char>, Object*>::iterator {aka std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, …

Member Avatar for glenwill101
0
418
Member Avatar for mpc123

Hi Im haveing a problem with ucwords and FINDINSET in a query I have tried all sortsof ways but just get errors I currently have and get FUNCTION ucwords does not exist. Can anybody help please $query = "SELECT * FROM TABLE1, TABLE2 WHERE FIND_IN_SET(ucwords(TABLE1.field), TABLE2.field)";

Member Avatar for mpc123
0
226
Member Avatar for harry010

I have a select element that I populate with data returned from an AJAX call. It workds most of the time but its unreliable. Sometimes it works the first time I click the link and sometimes not (mostly it works). I can see that the server is returning the correct …

Member Avatar for harry010
0
288
Member Avatar for somjit{}

im on win 8. neither can i find the bin folder as i could on my xp machine , nor do i get any command line. googleing didnt help much either. either i got some really hard to understand mysql doc page , with no specific answer to my problem …

Member Avatar for somjit{}
0
346
Member Avatar for nathan.pavlovsky

Hello Programmers! How can I convert a double to a string without losing its precision (i.e. values after the decimal point)? Thanks!

Member Avatar for nathan.pavlovsky
0
2K
Member Avatar for somjit{}

my `display()` method is public and looks to be defined , however eclipse says that its not defined. this is a code for an amortized time resizing circular array. can someone help me out here ? also , please do point out if you see something else wrong with the …

Member Avatar for somjit{}
0
291
Member Avatar for IsaacMessi10

I'm trying to imitate the Windows 8 Start Menu preview'. Private Sub CornerHoverMouseOn() Handles CornerHover.MouseHover Dim CHL As Integer CHL = (Screen.PrimaryScreen.WorkingArea.Height - 100) CornerHover.Anchor = AnchorStyles.Bottom + AnchorStyles.Left CornerHover.Location = New Point(0, CHL) CornerHover.Height = 100 CornerHover.Width = 50 CornerHover.BackgroundImageLayout = ImageLayout.Stretch CornerHover.BackgroundImage = My.Resources.CornerHover End Sub Private Sub …

Member Avatar for IsaacMessi10
0
2K
Member Avatar for EXTRA_RICE

i have this new problem i hope that im not a spam here in this site.but i have to do this bcoz i have no where else to go.sorry for my english hope u understand me.in the picture that i uploaded i have textbox1 and textbox2 their value comes from …

Member Avatar for Klahr_R
0
1K
Member Avatar for james.lu.75491856

If there's a class called `foo` and you do `d = foo().someboundmethod`, will the instance of foo stil be there?

Member Avatar for ~s.o.s~
0
186
Member Avatar for SaRa Ahmad

'Text2.Text = "C:\MyPath\MyDocument.pdf" 'Shell "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe" & " " & Text2.Text, vbNormalFocus this code correctly work for one user pc, but other users that use the system cant be open the file , how i can make the file published??

Member Avatar for Klahr_R
0
183
Member Avatar for OldDeveloper01

I get this message quite often and it has popped up again here, any ideas as to why? Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\.... on line 76 line 76 is this line in bold. [CODE] $productlist = ""; $sql = mysql_query("SELECT * FROM products …

Member Avatar for nandkishor.sharma.372_1
0
862
Member Avatar for rmad17

<%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib prefix="s" uri="/struts-tags" %> <html> <head> <title>Hello World</title> </head> <body> Hello World, <s:property value="name"/> </body> </html> I tried this code from an online tutorial. However eclipse says 'Can not find the tag library descriptor for "/struts-tags"' in line 2. Do I need to set …

Member Avatar for rmad17
0
303
Member Avatar for GlenRogers

I have a page to add products. On this page is a 'categorey' dropdown and a 'subcategory' dropdown. The subcategory dropdown should fill with the options based on the category dropdown selection. The code I have so far does not fill the subcat dropdown, can anyone see a problem? code …

Member Avatar for Banderson
0
4K
Member Avatar for OsaMasw

Hey there I have a strange problem, this is the first time I see something like this I have a form and this form data posted to php file through ajax $('form.ajax').on('submit',function(){ var that = $(this), url = that.attr('action'), method = that.attr('method'), data = {}; that.find('[name]').each(function(index,value) { var that = …

Member Avatar for OsaMasw
0
250
Member Avatar for Swapnil Palande

Hi all, Please help me solving following query: How to add global variable in C# window base application. This variable must be accessible to all forms. What I exactly want is: I have a variable "UserName" and "UserType". When user click "Submit" button on Login form, user name get stored …

Member Avatar for Quezo
0
9K
Member Avatar for tanatos.daniel

I have the following structure: CObject { protected: char *mName; public: CObject(char *n) { mName=strdup(n); } }; CVector:public CObject { char *mValues[50]; int mElements; public: CVector(char *n):CObject(n) {} }; CMatrix:public CObject { char *mValues[50][50]; int mLines; int mColumns; public: CMatrix(char *n):CObject(n) {} }; My main function: int main() { pV=new …

Member Avatar for deceptikon
0
418
Member Avatar for BadManSam

NB: I'm a beginner at php programming. Hi, I've been trying to add an 'Online' or 'Offline' plugin to my login system. To display the username you use thr following: $session->username In the database, I have a table for active users. When a user logs in, he is added to …

Member Avatar for BadManSam
-1
799
Member Avatar for lewashby

In the following program, why is the count function failing? I'M getting an error that it needs at leat one argument and that I have given it 0. I have here count(number), how is number no an argument? According to the documentation the start and end points are optional. I …

Member Avatar for lewashby
0
1K

The End.