64,152 Solved Topics
Remove Filter ![]() | |
Hi every1, I am new to php... From the image that i have attached you can see what i basically need... In view users.php v can see who r all the users.. and clicking on that particular user,.it has to display that particular users details. eg: when we click user1 … | |
Well, I'm a begginer in Python coding, and at DaniWeb. My problem is: I can't open any files! I tried: [CODE] >>> f = open('C:\teste.txt', 'w') Traceback (most recent call last): File "<pyshell#2>", line 1, in <module> f = open('C:\teste.txt', 'w') IOError: [Errno 22] invalid mode ('w') or filename: 'C:\teste.txt'[/CODE] … | |
How do you make something happen everytime the program runs? [code] Dim CloseValue As String = Space(255) Win32.GetPrivateProfileString("Close", "value", "Default", CloseValue, 255, "C:/UserData.ini") [/code] I need that to execute, I've tried Public Sub Form_Load() Public Sub Form_Initialize() Public Sub Form_Active() None works, I've tested with MsgBox("HELLO") to see if that … | |
Hi This is my first time posting after daniweb has helped me alot but I couldn't find a solution for this so I thought hey why not ask. Basically I would like to have an sql statement which selects all the bookings from a table in microsoft access callled tblBookings … | |
A couple days ago, I was involved in [URL="http://www.daniweb.com/forums/thread258996.html"]this thread[/URL] which concerns bit shifting (kind of) and a solution was found (by someone else). The problem is, something about the solution never really sat right with me. Hopefully someone can clarify this for me. [B]Code:[/B] The code uses 1 constant … | |
Hi all, Can anybody advise on how i can best use php and mysql to give a database record an "age" in days? Im recording record creation via timestamp at the minute Cheers Paul | |
hello, Here's a simple question I want to clear up. We all know that we can use the name of an array as the pointer to that array, and that a pointer holds the address to the variable named. What I'm doing is this [CODE] //somwhere in the code uint8_t … | |
I am trying to use PHP in an HTML page to change Login to Logout and reference my login page. Instead of printing 'Login' and 'Logout' I get the following: Logout" ; } else { echo" Login" ; } ?> The IF function seems to get confused and starts echoing … | |
Hello everyone! I would like to know if I'm calculating memory addresses right. Let's say I would like to calculate the address of 0BC9:0000. Would I then take 0BC9 in decimal (3017) and multiply it by 16 and then add 0000 to it? | |
i have a supertype-subtype: supertype: DOCUMENT subtypes: CLEARANCE, TAX CERTIFICATE, RECEIPT, BUSINESS CLEARANCE each clearance subtype may have a TAX CERTIFICATE, how could i join using join? in other words, document>clearance document>tax certificate i want to join document>clearance and document>tax certificate into a SINGLE view help. thanks | |
what is an ide how is it different from traditional java platform ? what is java beans? | |
[CODE]http://localhost/kplfantasyfootball/example.php?id=7&posid=3[/CODE] Hi, could someone please explain to me how I can read the two parameters carried in the URL. Thanx. | |
I'm working on a pascal project. And I want to append record on a binary file without overwriting it again.I've tried using the 'append();" statement but it doesn't work. | |
I've got this annoying "access violation" problem. I've done searching for a whole day on the Internet and although I didn't find any solution specific to my problem I do understand "unhandled exception in abc.exe:0xC0000005: Access Violation" has something to do with inappropriate use of pointers. However where the error … | |
I have c++ functions in which all the arguments are integers....I was wondering if there was a way of telling the computer this, other than typing int before each and every variable....I tried function S(int a, b,c..) but did not work.... | |
i finished a really simple game and i finally figured out how to make it a jar and how to edit the manifest to make it run, but my images don't appear. this is my first jar so i don't have a clue to what i should change to get … | |
Hi there, I'm having this problem with using translate() - I have a line in my code like: [icode]k.translate(None,':.-')[/icode], being called from a function, which works flawlessly under v2.6.4 but throwing in TypeError when run under v2.5 [code]Traceback (most recent call last): File "./wakeONlan", line 94, in <module> WakeOnLan(k.translate(None,':.-')) TypeError: … | |
Ive been sitting in 3 hours trying to figure out whats wrong, read in my book, seen the Powerpoint and google search and now im giving up.. This is my last resort and I hope to learn how to do it.. Would appriciate the help guys. Well, here i post … | |
Hi all, I need a php script that gets the IP address of a user entered website, something like this: $site = 'www.google.com'; $ip = ping($site); obviously replacing ping with a command that actually exists! Thanks in advance. MAX | |
Hi All, what is method to get all availabled disk drives and their status. By status I mean whether they are hard disk or CD/DVD or USB? Also how to get list of Drives in *nix? Thanks a lot | |
Hai Friends, Iam using J2ME , i can read a text file from jar (in res folder) by using InputStream is = getClass().getResourceAsStream("help.txt"); StringBuffer sb = new StringBuffer(); try{ int chars, i = 0; while ((chars = is.read()) != -1){ sb.append((char) chars); } return sb.toString(); }catch (Exception e){} but i … | |
Peace, Can you help me with Show And Hide?: I made an Input text I want to hide it, And I want to show it if I click on a button. How can I do it? Thanks. | |
Hi I want to write asp.net page with crystal reports.I pass parameter to reports.Once I press submit button its ask database user name and password.How I stop asking user name and password in every time. Thanks Tank50 | |
Hi to everyone here! I'm a newbie! I just wanna ask help from you especially from the administrator regarding my machine problem..... I am asked by my proffesor to create a slot machine program. This is how it goes... The simulation starts by presenting the player with a menu of … | |
String[] temp=null; String st3=new String(temp); I use this code but error message is shown. I need how to recover this error. | |
Hi, I just started my java class a few weeks ago, I have a question if you guys can help me. I`m learning about passing arguments, so I have this small code, it works perfect, the output is " 42 84 ", but I didn`t get it. what does it … | |
^^^ Typing fail, should be possibly ^^^ What is the best cross-platform library for high-performance graphics. I have tried SDL and GLUT, but I want to know if there are better ones out there. Also, is there a simple way to access OpenGL without a front-end library? | |
I am very new in website developing. Anybody help me how to make this dropdown listing in Internet Explorer Browser the same listing in Firefox. I want the word extended in the size of the dropdown button. see attached images. Thank you. | |
I've got 2 JSPs. JSP1 calls JSP2 to format a table in JSP1 JSP1 calls JSP2 using this code: [CODE] <jsp:include page='<%=(String)request.getAttribute("SB_Format_Path")%>' flush="true" ></jsp:include> [/CODE] The problem is that JSP2 has access to variable XX, at runtime but JSP1 does not have access to it. I'd like to somehow be … | |
Hi all, I have a 4 column table. Say the count of records in each column is 5, 50, 100, 200. the column with 5 entries, has those entries not appearing at the top of its data area. eg cars houses flights a b c d a e b a … | |
Hi all, I've got a JFrame in a program, and when I click on a button, I get another JFrame created, and then select from a list. This works fine. But my problem is that when I close the second JFrame the entire program exits (both the main JFrame and … | |
Hi there need help on how to make the splash screen fade in transparently then afterwards start the progress bar that will lead in opening the 1st form | |
I have a drag-able JLabel that I'm trying to set that object to be above all other JLabel objects when its dragged. The only method I can find that sets the order is setComponentZOrder(Component,int)' But when I Try to use it, I get a large amount of errors printed to … | |
Hi! i am having trouble sorting an array using a for loop. the problem occurs when using iterations i and i+1 for example count:=0 for i:=0 to count do begin if a[i] > a[i+1] then begin .... end count+1 end problem is when the for loops reaches the LAST array … | |
[B]Microsoft Visual C++ 2008[/B] My Project contains one Form1 and one Unit (module) Test1.cpp. There is the button1 on the Form1 which calls the function: [CODE]Test1::Change_Button_Text();[/CODE] There is only one function in unit Test1.cpp [CODE]void Test1::Change_Button_Text() { // #1 Form1::button1->Text = "Hello forum!"; // isn't working :( // #2 Form1 … | |
I am trying to execute a simple grep command in my shell script. I am not sure why it also greps the other file system. [COLOR="Green"]> df -g|grep /oracle/BP1/sapdata1 70.00 11.37 84% 21 1% /oracle/BP1/sapdata1 100.00 89.44 11% 8 1% /oracle/BP1/sapdata10 > df -g|grep /oracle/BP1/sapdata10 100.00 89.44 11% 8 1% … | |
I'm wondering if it is possible to control certain aspects in my function. All my it does is control how an object gets placed on my gui. I'm wondering if there is a way to control [I]GridBagConstraints.fill[/I] and [I]GridBagConstraints.anchor[/I] [B][U]Function:[/U][/B] [code=java] public void gridBagControl(Component ob, JPanel p, Insets in, int … | |
This is an assignment for my c++ class im taking. [code] #include <iostream> #include <fstream> using namespace std; const int NAMESIZE = 50, DATE = 25; struct inven { char name[NAMESIZE]; int qnty; double wholeCost; double retailCost; char date[DATE]; }; void displayMenu(); void addRecord(fstream &); void displayRecord(fstream &); void modifyRecord(fstream … | |
While finishing up my app, I included into the project the code for loading and injecting my dll into running processes. Once compiling I received these errors [CODE]error C2039: 'getchar' : is not a member of '`global namespace'' error C2873: 'getchar' : symbol cannot be used in a using-declaration error … | |
Hi I am trying to read data from a text file, line by line. However I am having problems with the output of the last line. The text file I have created is: position 50 10 line 50 0 line -50 0 line 0 -50 Here is my code: [code] … | |
I am having trouble making use of a MouseMotionListener to make some card images be able to be dragged around the screen. What this program does is show a table of cards in a random order. The user will be able to drag any of the card images and move … | |
Okay, I'm making a shooter game, and all my weapons are differnt userdefined objects; ie. the flamethrower works differently then the gun, however, I'm calling some functions in my "main", an example of this would be; [CODE] /* <Init> */ MachineGunClass *CurrentWeapon; MachineGunClass *MachineGun; MachineGun = new MachineGunClass(); CurrentWeapon = … | |
Hi, My first post, please be gentle. I have 64 booleans - all must be displayed on a single screen as a series of checkboxes ([B]no[/B] - I don't care about the 65th bool, [B]yes[/B] - it [U]must[/U] be a single no-scroll screen on the UI). As a VBA-refugee, I … | |
Hello and thank you for taking the time to read my question. I am currently moving a static html site into a faux CMS and have a question about which direction is best recommended. I have series of 'News Articles' that I would like to make available through a db. … | |
Hey all I have another riveting problem from my genius professor T_T. I have to make a program using functions, reference Parameters and full string words. Now if it were just a single letter at a time this would be easy. But it wants us to let the user enter … | |
hi i need help with add edit and delete records in access using vb.net. i got textbox 1 to5 and three buttons which named addnew ,edit, delete. my database is in name records.mdb i want user to enter the information and click addnew button and the system save the records … | |
hi i have a contact form that i want to submit to a dater base and here is my code to do that [CODE] <?php require_once('Connections/mywigan.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = … | |
codes for moving bar while indicating progress in percentage (1-100) | |
Hi forum! My name is Eduardo and I´m from Portugal. I´m a newbie to C++ and I hope to learn a lot with you I´m facing a doubt that I couldn´t solve yet. (I will also post this thread at c++ area, hope you don´t mind ) My doubt lies … | |
[code]#!C:\Python26\python.exe # Three-times-the-square-root-of-your-age.py # # This is a python program that # will input the user's name and age # the output will be 3 times the # square root of the user's name # # author: Min Ku "Peter" Joo # last revision: 02/10/2010 import os import math def … |
The End.