64,152 Solved Topics
Remove Filter ![]() | |
I can load my edit form withthe selected account from the datagridview on form1 I can update aany of my information but when I save the information it updates the first account in the database. How do I save to the selected account only? This is my save button:[code]'saves the … | |
Hi i want to generate barcode for each bill. any one can help me. barcode will be alphanumeric(dynamic). | |
Is there a way in java to do something similar to this: [code=c++] class Rectangle { public: int x; string y; private: int a; string b; }[/code] Or do you always have to specify public/private for each property? | |
Hey guys i need to make app that sends mail... so i want in subject to make text like "Report - dd/mm/yyyy - hour:minutes" do you have any idea how should i make that? :/ | |
hi everyone i have this code(dont think its a code spam ..its a trick) which display the date(only): [CODE] <a href="index.php" STYLE="TEXT-DECORATION: NONE">«Backā¢</a> <br> <br> <hr width="200" align="left"> <br> <?php $conn=odbc_connect('datasourcegaby','',''); $search=mysql_escape_string($_POST['SEARCH']); if (!$conn) {exit("Connection Failed: " . $conn);} if($search==null){ header("location:index.php"); }else{ $sql="SELECT * from generators WHERE convert(datetime,convert(char(10),TIMESTOMPX,101))= '$search'"; }; … | |
hi guys i need help, i don't know what's the cause of this but somehow the page only loads 2 jwplayer videos and a white screen on mac google chrome. please help :( [url]http://masterbeing.com/nb/yoga-kurs-film-lp[/url] | |
[code] <?php $file_handle = fopen("info.csv", "r"); while (!feof($file_handle) ) { $data = fgetcsv($file_handle, 1024); echo"$data[0] . $data[1]"; } fclose($file_handle); ?> [/code] I want to get the specific cell value (2,2) from csv in php, how can i do that ? Thank you very much! | |
I've just created my first website (congratulate me). And I want to upload it but although I don't have access to many different computers, I've opened my webpages up on google chrome, internet explorer and firefox and the style looks slightly different. So apparently what I need to do is … | |
I am new to Java and as an exercise I am trying to develop the following: 2 JPanels on a JFrame where 1 of the JPanels can be used for drawing. I started from an example from Daniweb from 2010 but can't seem to get a graphic context because the … | |
Written in python2.6 I know there are a lot of key loggers out there, but i wanted to try my hand at it. It works like a charm =) [code] #Key Logger #By: K.B. Carte #Version 1.0 ################ import pythoncom, pyHook, sys, logging LOG_FILENAME = 'path\to\log.out' def OnKeyboardEvent(event): logging.basicConfig(filename=LOG_FILENAME, level=logging.DEBUG, … | |
Hi all, i need some help with php. I am writing i web site and i have an upload form . I upload files in folder and in database where i have the filename the path and some other fields which i will use for my sql to set my … | |
i searched a bit but i cant find something useful. i need to take my files to filestream (i can do this with file paths) and i wanna save this files to somewhere else on my program. Is it possible that with the using FileStream? THX for Replys ^^ | |
I am attempting to use a WebBrowser control in C# to display a webpage. I would like my C# application to know when a Javascript function is called within the loaded webpage. Is there anyway to do this? I can't seem to find an event handler for it. | |
Can someone help me to create a syntax for a christmas tree... (the christmas tree must be like the shape of a true to life one) thanks. | |
Can someone please explain these results to me and why they are different: >>> 7339520/(1024.0*1024) 6.99951171875 >>> print "%0.3f" % (7339520/(1024.0*1024)) 7.000 >>> | |
Hello, I have created a site in VB.Net and ASP.Net where a user types in a centre code and clicks on 2 buttons to retreive 2 GridView's of records from an SQL Server backend database. The records appear sucessfully, but when I go to sort the records in ascending/descending order, … | |
I was doing a little playing around with some scrollbar controls and I noticed an odd behaviour that I was hoping someone could explain. I create three horizontal scrollbar controls, one for each primary colour. Possible values for each R, G or B are 0 to 255. When I set … | |
I've been working on getting tkinter to open a window for all dictionary items with keys matching a query. Below is a [B]VERY RAW[/B] piece of code to show what I'm talking about. show() makes the toplevel windows. Also, not that it has so much going on because I isolate … | |
Hi, Please look at this: [CODE]<?php print ' <form> <td><input type="text" name="txt" maxlength="7" style="text-transform:uppercase"></td> </form> </html>'; if(isset($_POST['submit']) { $val=$_POST['txt']; #header(); } ?>[/CODE] my text box values gets erased after submit button. If i use header function: error is [B]Warning: Cannot modify header information - headers already sent by (output started … | |
I'm creating a website and I have implemented a commenting/review system on there but I want to stop spammers so I've been trying to find a way to stop people from typing in url's. I tried the following method but it only works for the last thing mentioned (.in) and … | |
I want to stick this [CODE] Dim cmd As OleDbCommand = New OleDbCommand("SELECT * FROM 0 WHERE Id = 1", con) Dim reader As OleDbDataReader = cmd.ExecuteReader() If Not reader.HasRows Then MsgBox("Data does not exist") Else MsgBox("Data Exists") End If [/CODE] and this [CODE] If Inc <> -1 Then Dim … | |
Hi, i'm really new to jquery and i don't know how to solve this. i added following code to blink a div. initially mypopup div is hidden. and 10 seconds after page was loaded this div appears. because of this toggle() method div displays for 10 more seconds before hiding … | |
Completely stumped as to why my code will no longer run. It definitely works as I can call it from another Sub but will not run on its own. When I am in the code editing window (in Excel) and I click the run button or f5 it asks me … | |
Hi! Im currently trying to make a social website of a kind. I got the login, registration, userpage, profile TINYMCE editor working. But there is one thing im really struggling with, and that is; How do i let other users visit other users? When the user log's in, they're redirected … | |
i have two products , product one has 5 entries of date and product 2 has 4 entries. I want to select max date entries of both... [code] select max(entrydate) from products,products_information where products_information.pno = products.pno [/code] It return a single max date of one product.... Please Help .............. | |
in DB i have two tables named my one and two.in table one there is a colum named by name and in table two there is colum named by address. when i run the query it show the result but the problem with this is that it show same result … | |
I am reading in a text file and displaying the data read in in textboxes. Some of the characters are accented French characters which are not displaying correctly in the form. This prob does not exist with VB6 on the same machine. What do I need to set/change in vb.net … | |
I failed to ask my entire question on part 1. Although codeorder gave me the answer I needed I have one more part which I will put in bold. I have 3 forms: Form1, Form2 and Form99. Form1 and Form2 both call Form99. What statement(s) does Form99 use to determine … | |
Right, I wasn't sure whether to put this here or in the java forum (since I'm trying this in java) but in the end I figured it is probably a general coding question. Hope I got it right :) So, about object names :) I'm trying to do the c++ … | |
Hi, I have created a small appication to run a number of self extracting archives depending on the option selected. I have the program working and all is going to plan. At the moment my program calls the slef extracting zip by pointing to the location on the hard drive … | |
Hi, So I am modifying some code from discussion thread: [URL="http://www.daniweb.com/software-development/perl/threads/323871"]http://www.daniweb.com/software-development/perl/threads/323871[/URL] I am still very much a newbie, but am trying to get a better handle on hashes - so if I've messed mine up please tell me ;). I am attaching 3 files. One is an image of the … | |
I just try to calculate 5.3 - 5, and the answer is a bit off. this is the code: [CODE]double answer = 5.3 - 5; println("answer = " + answer);[/CODE] and the output is: "answer = 0.2999999999999998" instead of 0.3. I use Eclipse on win 7 32 bit as a … | |
Hi community, I have a problem with an application which makes use of a mysql database. I have a class which saves the fields of every record on the table. One of the columns is of type Datetime. Sometimes (!) I query this column and get results like with a … | |
Hi! I have a form made in php4 that worked great until I updated to php5. When I did this I got a lot of undefined indexes. I have been placing isset() around in the form, and now the undefined indexes does no longer show. But something is still not … | |
Hello guys! I want a simple app to crop a bit of some images. The fact is that all the codes I've found were too complicated, and I didn't understood a single letter of it. Can somebody help me with it? The codes I saw where using and start point … | |
hi !! i want to ask f how to add two values in php ? can u give me a sample code ? tnx and Godbless | |
i need help with preg_match i have [CODE] if (!preg_match('/^[a-zA-Z0-9-_]/', $filename) ) { print $error=... }else{ upload... [/CODE] How to improve the preg_match so i can use only a-zA-Z0-9 and this special characters "-_" nothing more. because as i did it when i have file with name abc def.pdf for … | |
hi, i need to build a slider. which is not there in the page when it loads. then after few seconds it appears and slides from the right hand side of the window and stops at some position on the screen. then after few seconds it changes its image into … | |
is it possible to import say 10 excel files into DB at once? like in PhpMyAdmin, I go and import each file one by one and they are added as new tables. is there some kind of php code I can write to take all files in X folder and … | |
![]() | Hi guys, I seem to have come across a weird issue in internet explorer. I've been working on doing regular expressions for a register form, and I've checked it in Firefox, and Chrome and it seems to work for both of them but yet it doesn't work for Internext Explorer … |
I'm receiving an 'undefined index' error when calling a new window and I can't quite figure out why. Seems to me like the variable is not being passed, or holds no value, and again I can't figure out why. I use an identical code for 'state' with no issues. Here … | |
I have around 20 tables in my database. I want to count every row of every table using COUNT and get a total. I have tried doing a separate select statement for each table then using UNION but I cannot find a way to join the results to get just … | |
Is there a way to hide or at least automatically minimize the "shell-like" tkinter window, while running it? | |
I would like to create a textbox (search engine) that can search for items in a database that contains text as that keyed in the textbox. I am already aware of this code: bindingsource.filter = "table Like '" & textbox & "%'" EX: what I want is that when I … | |
Hey everyone, I'm checking some bessel functions in python using mathematica, and I can't find anything online about how to import values into python with exponentials. I know how to values with exponents. For example: [CODE]x=2032.43 * 10 **23[/CODE] However, when I read in a data file, say with one … | |
well, i have been working on two projects.... in of the projects i am getting two errors which i am unable to rectify ....please please could you possible identify the two errors for me...?? i shall be really really grateful.. you can try running the below program in Microsoft visual … | |
segmentation fault...:( some one help me pls.. [CODE]#include<stdio.h> #include<stdlib.h> #include<string.h> int main() { char a[50]; char *x[10]; int i,j,n; char *temp; printf("enter the no of strings:"); scanf("%d",&n); for(i=0;i<n;i++) { printf("enter the string:"); scanf("%s",a); x[i]=(char *)malloc((strlen(a)+1)*sizeof(char)); if(x[i]==NULL){ printf("malloc not done"); exit(1);} strcpy(x[i],a); } for(i=0;i<n-1;i++) { for(j=0;j<n-i;j++) { if(strcmp(x[j],x[j+1])>0) { strcpy(temp,x[j]); strcpy(x[j],x[j+1]); … | |
Hi. I'm trying to write a simple scheduling script, but have run into a problem. I'm fairly new to PHP, and so have no idea how to update multiple rows in a mysql database. Currently, my code connects to the database and reads each row. If "class" is empty, it … | |
So I am creating an application that allows users to send basic keystrokes to end certain processes. But I am running into some issues. I know the code I have will work the problem is I do not know where to put the following code to execute the commands: [code] … | |
I'm having a terrible time with regular expressions, possibly because I'm using a python2 reference, but maybe not. For example how would I find \s\w within a string and then change that character? |
The End.