199,114 Archived Topics
Remove Filter ![]() | |
Hi, I am trying to write a code in php where I retrieve the DateTime from the database and find what time is it 15 minutes before the DateTime. Such as //Receiving the Start Time from the database. $time1 = "2012-03-17 15:00:00"; //Reformating time to get the date 1hr or … | |
Could someone tell me why when I start a project, it added a new Form1, I can rename this to something else but I can't seem to rename the Form1.Designer.cs? How do I change the default form name? Thanks in advance. | |
Can someone show me algorithm so i can sort array like this? [Picture](http://i.imgur.com/HhQ4I.jpg) | |
Hi, I want to replace `$data['introhtml']` with some actual html, any ideas? I need to update a friends CMS database driven Website the content panel does not allow Div which I need to put a Calendar in so the only option is to change the PHP. The PHP code is … | |
Hi, Im trying to parse a file which contains some random text. How can i match a case which seperates "garbage" (anything but digit/letter) char?? for e,g: 25.5.5 will produce . (the 2nd dot, because 25.5 is a number (rational)) another e.g: ----3.82 will produce --- (because -3.82 is a … | |
I have this function, which sends an email to the user and confirms an order. I cant figure out why I cant get to display the image IN the email, at the very top. I have tried with: `"Content-Disposition: attachment; filename=\"mail-top-img.gif\""` And `"Content-Disposition: inline; filename=\"mail-top-img.gif\""` Both sends the mail as … | |
I am working on a java application that will display an image and play a sound. It finds the current month and displays the appropriate information. Below is the code that I have been testing (that's why santa is in april) it will not work when trying to play wav … | |
Hello everyone, I am thinking to create a vertical menu, which may contain sigle level or even multiple levels of submenus. While mouse is hover one main menu item (parent menu), the related submenu items will appear one by one on the right hand side. While click on one of … | |
I have Oracle 8i installed in my PC And i Installed NetBeans7.0rc2 with glassfish server It shows an error that the glassfish server cannot be started SEVERE: Shutting down v3 due to startup exception : No free port within range: 8080=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler@187955b i want to chnage the default port number 8080 … | |
Hi, I m using SetCursorPos() in my project! [DllImport("user32.dll")] static extern bool SetCursorPos(int X, int Y); I want to use double value in the function? I m getting error PinvokeStackImbalance was detected. How to solve this? | |
So I have been told by various people on numerous occasions that you cannot parse XML by using regular expressions or any means other than a parser. So, here at work, I have LXML and that is what I have to use. At the moment I am trying to remove … | |
So I have completed my program thus far to take an array the user desingnates and breaks with any letter. After outputting what the array holds it sorts and re prints. I want to also include the time it takes this to happen. I am trying to use the gettimeofday … | |
C# Query : When I login to my software I select the desired username using combobox. After I login, I want to see the username text in the main window on the toolstrip. I tried get and set method but something is going wrong. Can you please help me out? … | |
Hi, I'm having trouble writing a prolog program which does the following: Say I'm given a map of 3 different points; Point A, point B and point C. Point A is connected to point B and point B is connected to point C, if you want to travel from point … | |
Hi people! I just want to get the sum, max number, average and multiplication of array with n numbers! I already make the sum, but I tried different operators, ways for others and I can't get the another task without errors! Any help! Im really noobie on this Look! #!/bin/bash … | |
i want to add different javascript to different divs. Is it posible to set .js page's scope to specific <div> ? | |
In straight-11 ping-pong, the first player to reach 11 points wins; the player need not be ahead by 2. Suppose that when Ada plays Blaise, Ada has a .56 probability of winning any given point. We want to write a program that simulates a game between Ada and Blaise, with … | |
Session is not working everytime,but when i restart my machine everthing works fine .Why this happens? | |
java have any default function to use UPGMA.like Math.pow(x,2) | |
How can i find the Euclidean distance of 2D matrix in java.is it possible like Math.pow(x,2) | |
I am using mysql server 2012 and visual studio 2012 C#, i created a database and i can read the data from my database. The problem is that i cannot insert data into my database. Although the return value of the execution is 1, i dont see any changes in … | |
Is as way test out swing components without having to rely on Thread.sleep() to make sure that the components have realized completely. This problem with this approach is that it becomes difficult to guess how long it would take for components to realize under different environments of execution like vnc … | |
Hey all, I'm working on a login screen and have an MSAccess database that stores the userName and password. I am currently using JtextField and String to access the username and password located in the MSAccess database, but now I want to hide the password when it is being typed … | |
Hi All can you pleased help me how to resolve applet load fail in IT link applet loading fine, but when i used same code and made a local setup while runnning applet is not loading please see the stack trace and com.scand.jtree classes are exists under applet folder under … | |
i have a db with 3 tables review, pos and neg words for a film review im trying to detect if the word 'not' appears before a positive or negative word then add 1 to the pos count if it appears before a neg word ie this was not bad, … | |
Hi There, I hope somebody can help me, I work with Visual C++ 2008 with QT libraries I am trying to include a Interop.Encore.dll file into my program to access our ERP system business objects and post new data to the ERP We have a Visual Basic program geared to … | |
<form method="POST"> first name <input type="text" name="ab" value="aadi"> <input type="text" name="bb" value="aadi"> <br> <hr> <input type="checkbox" name="same" onclick="this.form.zb.value=(this.checked)? this.form.ab.value: ''; this.form.zs.value=(this.checked)? this.form.as.value: ''; this.form.se.value=(this.checked)? this.form.sel.value: '';"> Same as first name<br> second name <input type="text" name="zb" value=""> <input type="text" name="yb" value=""> <br> </form> This coding can only when click the checkbox. … | |
I am very new at web site creation. I have searched on google.com trying to figure out how to create url variables.... I have not been able to figure this out.... If its infront of my face... Please still help! lol Thanks in advance!!!! | |
<?php require ("includes/DBConnection.php"); ?> <?php $id =$_REQUEST['a_id']; // sending query //mysql_query("INSERT INTO audittrail(article.a_title,article.a_author,article.a_description,article.a_date, article.dept_id) //WHERE article.a_id='$id'") mysql_query("INSERT INTO audittrail SELECT * FROM article WHERE a_id='$id'") or die(mysql_error()); mysql_query("DELETE FROM article WHERE a_id = '$id'") header("Location: articlelist-a.php"); ?> Parse error: syntax error, unexpected T_STRING in C:\wamp_chieny\www\MULTI\ADMIN_MULTI\article-del.php on line 17 i try … | |
I am trying to use Java to detect signals from the serial port sent from an IR circuit. When the IR circuit detects an obstacle, it gives an output of 0 volts and otherwise the output is 5 volts. Can I read these voltage differences directly on the PC using … | |
Hello.Got a problem with a binary tree again,i have made a visual printing but the problem is that it prints only completed tree,so if it is not full it crashes,is there a posibillity to add some extra print to value NULL,so after one right or left leave won't have value(NULL) … | |
I wrote this code to sort 3 integers, but I can't figure out how to add the 4th integer. #include <iostream> using namespace std; int main () { cout << "Enter 4 integers: "; int a, b, c, d; cin >> a >> b >> c >> d; if (a<b) … | |
I was asked to create a program that enters numbers and displays the before sorting order, and the sorted order displaying the previous node address and the next node address. I was told not to swap the data inside the nodes, but move the nodes themselves. I have a problem … | |
Hi, Im been working with a project now, and have got stuck. Cant see what im doing wrong. Im supposed to make a Digital Thermometer. Right now im stuck on passing values from one class to another, been trying to use get methods.It seems like the value I get is … | |
How can we convert a string to int without a standard lib the string termination can be '/r' | |
I have div.js which is for popup in this i define 2 function getPageSize(); and getPageScroll(); and other file a.php and b.php in a.php as below <script language=Javascript src="/div.js"></script> <script language=Javascript> function divOn (aId_task) { var arrayPageSize = getPageSize(); var arrayPageScroll = getPageScroll(); //bgrnd4 = '<div style="position:absolute; top:0; left:0; width:100%; … | |
doing this stuff in js and the css doesn't affect the tags in the js writeln js: `document.writeln("<table><tr><td>Nom</td><td>Prénom</td><td>Code Permanent</td><td>Login</td></tr></table>");` css: `table, td, tr{border:2px, double;}` i know this is simple, what am i missing ? oh yeah, it's an external js file, if that changes anything. thx Dark | |
what am i doing wrong ? i want to fetch what langugage of new users. i've tested and tried: navigator.userLanguage navigator.browserLanguage navigator.systemLanguage and so far it returns: undefined thx Dark | |
I know this seems to be a very basic questions but still want to clear my basic knowledge so i am asking this question What is String Pool in java? what is difference between String var="DANIWEB; and String var =new String("DANIWEB"); | |
how can i use the matlab(matlab function) into java | |
Hi. I've been trying to get this simple function in Haskell to let me call it for many hours and come to a problem I can't find an answer for. The function is of type Float -> Float -> [Int] so I need to pass it two Float values. I've … | |
I been working on this login page for months, and to no avail can have the program working. I am using the MSAccess Database and using VB.Net. This is a windows application creating a login page. The following is the code that I been working on: Dim mypath = Application.StartupPath … | |
Ever scince I saved my project yesterday, when I try to debug my application I get this: > An error occurred creating the form. See Exception.InnerException for details. The error is: Value '0' is not a valid value for Interval. Interval must be greater than 0. > Parameter name: Interval … | |
Hi! I am just starting PHP. I am learning to sanitze my data. I found this exmaple from the web. It displays the sanitized data, but... it does not insert the sanitized data. :( What shouuld I do to make that happen? <?php $filters = array( "firstname" =>array("filter"=>FILTER_VALIDATE_INT, "flags"=>FILTER_FLAG_ARRAY|FILTER_NULL_ON_FAILURE, "options"=>array("min_range"=>0, … | |
Hey all! I'm pulling my hair out trying to figure out this noodle scratcher. I have a form that takes a users first and last name, then posts that to process.php where it pulls all the info for that person from mySQL database. The DB connection is fine, and I … | |
What I tried was using `My.Computer.Network.DownloadFile()`, and created a shared folder in the other computer to do downloading stuff. But, in fact I didn't know how to fill the path to the other computer, the error was: *"...path not supported..."* How about this: ServerName1 = cmbServerName1.Text.Trim() database = cmbDataBase1.Text If … | |
Hello everyone, I've build a web project that could upload and resize image with the following script and i did minor change on it: http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop/ It works fine on desktop computers and samsung galaxy s froyo. But when i tried on android tablets such as samsung galaxy tab the upload … | |
elbeato Hi all again. I couldn't reply to my last post "Message Field Required"? Anyway props to "elbeato" for helping me out. My textarea is now indented on the first line. Is there any way to align the text in a textarea? <td align="right">Additional Training</td> <td colspan="5"> <textarea name='AdditionalTraining' rows=6 … ![]() | |
I was working on a script before taking ill. I need urgent help with this. I have login form, and I can use http://phpeasystep.com login tutorial to do a single user login. But I need it for like 4 different users redirecting to diffrent pages after login/ The form code: … ![]() | |
![]() | `Inline Code Example Here` class MainMenu extends JPanel { public MainMenu() { this.setLayout(null); JButton newGame = new JButton("New Game"); JButton loadGame = new JButton("Load Game"); JButton scoreGame = new JButton("High Score"); JButton exitGame = new JButton("Exit Game"); this.add(newGame); newGame.setBackground(Color.white); newGame.setPreferredSize(new Dimension(180, 50)); newGame.setFont(new Font("Fixedsys", 1, 25)); this.add(loadGame); loadGame.setBackground(Color.white); loadGame.setPreferredSize(new Dimension(180, … |
The End.