64,152 Solved Topics
Remove Filter ![]() | |
Hi, this is part of an assignment question and probably something I should know. I have 2 classes. I have a method in one class that creates an instance of the other class and sets one of its attributes to a certain value. The class that has its attribute set … | |
Hi, So I have a login system but when I create an account and activate it through email. It goes through but then the style.css does not apply so all the backgroung and images fail. So the link is like this. http://www.site.com/register.php?mode=activateusername=user&activationcode=D56gsjd and the html and all the rest doesnt … | |
My application has a lot of buttons on it, and in order to create a skin for my application, I've been just creating a lot of images in my working directory and loading them all into my application as ImageIcons. I like working with ImageIcons, but not working with a … | |
I'm not very familiar with Javascript or Regex but I built a script that is working well with one small flaw in the Regex part. What I want to do is to find commas following alpa-numeric characters (actually almost anything other than a double quote) and then replace the comma … | |
hi, I am having doubt in peter_budo 's Mvc tutorial, in datbase design he has separate table for group mapping, Even we can add seperate feild (like group) in user table itself to acheive the same result, Is there any advantage in seperate that, Pls some one guide me. Sorry … | |
| |
Good morning, So i was finally able to solve all the errors in my game, but now i can't seem to get a Motion Detector to work using Aforge, so far i've got: private void device_NewFrame(object sender, AForge.Video.NewFrameEventArgs eventArgs) { tmpImage = eventArgs.Frame.Clone(Rec, PixelFormat.Format24bppRgb); Bitmap image = (Bitmap)tmpImage.Clone(); //BitmapData bitmapData … | |
Hi With the code snippet given in the following post http://www.daniweb.com/web-development/php/threads/126361/csv-file-uploading-into-a-mysql-database I am able to import csv data into phpmyadmin. However, I am getting an error if csv data contains a text with apostrophe (‘) symbol (e.g. my book’s name is abc). Appriciate any suggestions to resolve this error. Thank … | |
I would like to keep on checking a JTextField until the field equals ten digits. When the JTextField equals ten digits then an event will happen. I want to do this without a button. Here is what i tried to do: JTextField get = new JTextField(10); String a; public className(String … | |
hi ! Actually the operation is as follows.when the user clicks the"search" button in t he jsp, the datas from mysql is sent to jsp page.If the user likes to print the datas,he has to click "print" button.Then the datas in the jsp page has to be sent to the … | |
i am using WebBroswer object in Vs2010 but it doesnt display some of scripts like flowplayer. i tried in internet explorer its ok. i think i cant use all features came with ie How can i update webbrowser to solve this problem? i cant see it in vb. cant work … | |
Hi all, I have a very large file so I want to dynamically allocate the memory of a 2d array and then fill it up with the file inputs. Before i used malloc to make the 2d array, everything worked fine (I was using a practice small .txt). However, i … | |
First, i'm new to C and trying to teach it to myself so be gentle. All i'm trying to do is malloc a block of memory so that i can store a few strings. These strings are to be pointed at by an array of pointers so that as i … | |
Hi! How can I insert commas in numbers. For example, number is 123456789 , now I want that after inserting commas it should become 12,34,56,789.... how can i do this....... | |
<script type="text/javascript"> function moveover() { document.getElementById('image').width="1080"; document.getElementById('image').height="600"; } function moveback() { document.getElementById('image').width="180"; document.getElementById('image').height="100"; } </script> </head> <body> <img id=image src=images/PCF10.jpg onmouseover="moveover()" onmouseout="moveback()" width="180" height="100" /> <br /> <br> <body> <img id=image src=images/PCF94.jpg onmouseover="moveover()" onmouseout="moveback()" width="180" height="100" /> <br /> </body> </html> I have a page with multiple small images posted … | |
Hi. I am having trouble with this script: <?php $host="mysql.host.com"; // Host name $username="username"; // Mysql username $password="password"; // Mysql password $db_name="DB_NAME"; // Database name $tbl_name="table"; // Table name $myusername = $_SESSION['myusername']; // Session on login page, in a variable. // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or … ![]() | |
Hi, I need help to make a perl program work. I have two files - file 1 and file 2. The contents of File2 is to be searched with the contents of file 1. File2: 2 tab-delimited columns XM:1120002 complex-solution MM:0999111 blue-green solution UX:1020022 activity unknown, (simple/complex?) File1:(one column of … | |
![]() | hello i have website http://www.w3db.org Problem :: problem is that it cant load or load after 2 ot 3 minutes which is quite strange i do not know where is the problem script is OK so please somebody check it that the problem is with me or others user face … ![]() |
Hi. I wanted to make a page that I can update a table in a database. But for some reason, I get this error: ***Warning: mysql_query() [function.mysql-query]: Access denied for user 'a1092592'@'localhost' (using password: NO) in /home/a1092592/public_html/folder/file.php on line 10*** and this error: ***Warning: mysql_query() [function.mysql-query]: A link to the … | |
class Mixer { Mixer() {} Mixer(Mixer m) { m1 = m; } Mixer m1; public static void main(String args[]) { Mixer m2 = new Mixer(); Mixer m3 = new Mixer(m2); m3.go(); Mixer m4 = m3.m1; m4.go(); Mixer m5 = m2.m1; m5.go(); } void go() { System.out.println("hi"); } } The answer … | |
Private Sub PrintDocument3_PrintPage(sender As Object, e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument3.PrintPage Dim PrintFont As New Font("Arial", 18) Dim LineHeight As Single = PrintFont.GetHeight + 2 Dim Horizontal As Single = 100 Dim Vertical As Single = e.MarginBounds.Top Dim PrintLine As String = "This is a Chapter 4 Testing" Static pageCount As … | |
In my script, I have a table displaying the results of a SQL query. However, I am using the results as a sumamary, but the SQL is making the page display the table as many times as there are results (rows) in the returning SQL that are allowed because of … | |
I am very new to JSP language and i ahve worked a lot on JAVAlanguage and i have configured my Tomcat Server also and its running fire I would like to know about the steps that i am required to follow to Execute my JSP File. 1.Please tell me in … | |
Hello, I am such a rookie when it comes to C#. I have created a class with a list. I am needing to read an xml file into this from inside the class. Then I am needing to manipulate this list from inside the class as well. I have everything … | |
# Heading Here # Please assist me on this one. I have two DB's, one keeps track of user and system activities and the other keeps track of only user activities. The purpose of the codes below is to first of all retreive all tables from the second DB. These … | |
I am learning to using STL, and I'm currently on vectors. I have seen a lot of examples and practiced a lot on my own using built in types, but I'm finding very difficult storing objects that I create my self in a vector. Everything works fine when I add … | |
Hi. I am having a problem with PHP. I got these lines of code: <?php include('Include Stuff') ?> <html> <center> <h1>Admin Login.</h1> <form action="(Action Script)" method="POST"> Admin Name: <input type="text" name="name" /><br /> Password: <input type="password" name="code" /><br /> <input type="submit" value="Login" /> </form> </html> And this: (the action script … | |
I have created a JFrame with two JPanes (mainPanel and secondPanel)in it. I am trying to update the first JPane (mainPanel) with a JPane that is returned by another class of the project. How can I do that? Thank you. | |
We all know how to open a mailbox using `imap_open`. Here the problem is i'm creating a maill system here. I'm not able to find to create a mail account with `imap/pop3` in `php`. Is it is possible ? Assume suppose my domain is www.studentmug.com. I want to create a … | |
Hi, I am trying to check if a certain username is in a session. This is what I have so far... <?php if ($_SESSION=='Djmann1013') { // Do the work here. } else { // Don't do anything :P } ?> But, when I test this, it does nothing. But when … | |
I have a question about a better way to do this as what I've written seems clunky. I'm trying to generate 2 variables here that will be used as the date in a BETWEEN clause in MySQL. In order to get the proper construction (YYYYMMDD) I am converting to a … | |
Hello First of all, I'm new to PHP, and also to Daniweb. I've been looking everywhere for some PHP code to skip to the next line every time my string ($description) has a period in it. So here's an example of what I want to achieve: Text: The car is … | |
i did a program in xp and when i m trying to open this program in win7 it gives an error i think i should convert this program to win7 but i dont know how to do is there any way to do it? thx for answers | |
hi, i'm trying to do some appointment book so i decided to use MonthCalendar control and date changed event for choose the date i tried dataset.table.rows.find() function on other tables which have int primary key and it works its finds my row/s i need but when i tried this func. … | |
been trying to google it for a while now but didnt help using the " "... anyway i need to do a recursive search inside a sub tree of the file system. given a folder A , I need to go through all of its sub folders. so far the … | |
I have made 2 classes; Customer and Repair. I have a map<String, Customer>(customerDetails). Customer objects hold a map<String, Repair>(repairs). My GUI has 2 JTextAreas, notes and results. In notes ou type some notes and when you choose save the notes appear in results and a new Repair is created with … | |
I have a form that consists of only a TableLayoutPanel (which fills the entire form) containing a vertical stack of buttons. The resulting app is used in conjunction with another app. What I would like is to have the vb app do something when the mouse enters the form. Unfortunately, … | |
I have created a JToolBar and I added 3 JButtons inside it. Is there any way I can increase the horizontal space between the buttons?(Now they seem like they're stacked together) Thank you. | |
I have created a form and I added a JFileChooser on it. When I start the form , the JFileChooser appears when the form loads. I gave used netbeans fileChooser tutorial.(http://netbeans.org/kb/docs/java/gui-filechooser.html) Any ideas? Thank you. | |
Hi, I'm creating a website/database that my dad and his partner will use to help manage there business. update new appointments / manage customers ect. My dad wanted to host it on our server, however I'm not confident about setting up security so I was just going to use a … | |
Hello, I have PHP code that updates a record in my database. I need to run that code when an <a href="mailto....> link is clicked on, before the email client runs. Thanks for the assistance. | |
So I just discovered a crazy bug that has been keeping visitors of the Opera web browser from using DaniWeb. Apparently there's a problem with CodeIgniter's CSRF protection that makes it not work with Opera, and I'm unsure of why. It works perfectly fine with IE, Firefox, Chrome, etc. I … ![]() | |
Hey broskis! I've only taken one class in introductory programming and my internship wants me to organize some excel data (it's in txt now). We never went over files in my c programming class so I'm struggling with this code a bit. For practicing purposes my text looks like this. … | |
I am developing in WordPress plugins and I would like to know.if someone could guide Me with this issue. I would like to know what's the easier method.of declaring a global variable that I can use. As of now I am not using classes, mostly because i'm not sure how … | |
Hi, I have 2 ddl, ddlCountry and ddlState, on selecting ddlCountry, the ddlState IS updated based on the chosen country BUT... when I select ddlState, the selected item in ddlState is not being masked as selected, thus I can't get the selected value. Here is the code: <asp:DropDownList ID="ddlReceiverCountry" runat="server" … | |
can i make iphone software/games in windows | |
Good day All: I was wondering if anyone have had experience dealing with the browser history inside an Iframe. Specifically, how to navigate with the back button throught the history inside the Iframe ONLY, and not the entire page. I have an Iframe that is called inside my page like … | |
Ok, first post. Ive tried to avoid asking for help when i've had problems before and usually managed to solve things on my own but on this, i'm just going round in circles. I'm trying to teach myself basic directx9 and so far I made a program that takes a … | |
Im having a bit of trouble converting the delphi code below into c++, i'm sure I need to use a Switch statement but I seem to be getting it wrong. Basically, I have 6 panels mounted on a larger Panel, each caption will contain a random number. A button then … | |
I'm having a huge problem trying to learn how to export classes from a DLL. I can do some functions just fine but the classes are mangled :S I've tried from .def file, I've used extern "C" but when I did, it threw errors and won't export the class at … |
The End.