64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for johndohmen1963

Hi hope someone can help me with the folowing: if( $verscil_huwelijksdat_tot_zestien_jaar->format('%R%a') >= 0 ) { echo"bla bla"; } dosn't work it only works when >=1 or <=-1 and wy not >=0 ?

Member Avatar for johndohmen1963
0
163
Member Avatar for susanna.newkirk

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package theaterrevenue; import javax.swing.*; import java.awt.*; import java.awt.event.*; /** * * @author */ public class TheaterRevenue extends JFrame { final double percent = .20; double adultCost; private JTextField label2; private JTextField …

Member Avatar for susanna.newkirk
0
773
Member Avatar for waseem1345

I have a multiselection listbox. I want to see the last selected item (which the user just selected). I can't find any way to do this googling.. Thanks in advance.

Member Avatar for waseem1345
0
539
Member Avatar for Datagram

Hi all, I've just started out with programming and I'm working on a Binary Tree of integers. I have the Node and BinaryTree classes almost complete, but I'm having a derp moment trying to test my minimumVal method from the main and not sure on what to pass into the …

Member Avatar for Datagram
0
280
Member Avatar for VNexus

Hi Everyone, Thank you ahead of time for taking a look... Basically, the tables, rows, name and id tags below shown are pulled through by using PHP/cURL (code not shown for sake of realty). Generally, what I am looking to accomplish, is to use JavaScript to loop and parse through …

Member Avatar for VNexus
0
342
Member Avatar for Satyam_1

Helllo I have a database acess (db) with column ID, Age, Sex, Name And a windows form1 (vb.net) with textbox as ID and a button "search". A second form2 having textboxes as ID, Age,Sex. Name When i enter ID no. with search buuton it should retrieve data from db to …

Member Avatar for Satyam_1
0
429
Member Avatar for pritaeas

I've got some winforms partial classes marked `[Obsolete]`. Unlike when applying this to methods, I get no warning after building. Is this because it's set on a partial class? I can't set it in the designer too, because that code can/will be regenerated. Anything I can do about it with …

Member Avatar for pritaeas
0
264
Member Avatar for ryklon

Hello! I have a remote database that will be accessed through a client program. The thing is, I want the client to auto detect the IP Address of the machine where the database is located, so that when I initialize the value of my connection string it would be like …

Member Avatar for Alosh
0
771
Member Avatar for kal_crazy

The aim is to create a gdb function that changes current path to the upper level i.e `C:\Windows` to `C:\` I tried to strip away characters while the buffer array != '' Here is what I tried: void gdbCommand(){ char buffer[MAXCHAR]; strncpy(buffer,path,sizeof(buffer)); char result[MAXCHAR]; for(int i = 0; i < …

Member Avatar for Kristian_2
0
216
Member Avatar for gahhon

i am new to the e2glite due to assignment required. Currently using SWI-PROLOG as my coding software, and now i was copy some example code and also downloaded e2glite.jar from e2glite web, after i follow their instructions, i am able to view the java on browsers but i can't able …

Member Avatar for Nimrah
0
325
Member Avatar for John A.

Hey guys, this is my first project since I completed [CodeAcademy's](http://www.codeacademy.com) Python course yesterday. Besides that course, this is my first time programming and I would really appreciate input on my program. I decided to create a database to help me keep track of the anime I watch. For this …

Member Avatar for Gribouillis
0
400
Member Avatar for ultmt.punisher

I just created a simple theme option page that is working fine and also saved after when press save options. But whene reload page by pressing "theme options" menu the saved settings disappeared. Or if you go another page and come back to theme options page the same thing happens. …

Member Avatar for ultmt.punisher
0
767
Member Avatar for momal

I'm in a fix with JQuery and ASP.Net! This is my script code. I have used autocomplete to list names of courses from a database. I have a web form named Courses.aspx which has a master page. <link rel="stylesheet" href="css/jquery-ui.css" /> <script src="js/jquery-1.8.3.js" type="text/javascript" language="javascript"></script> <script src="js/jquery-ui.js" type="text/javascript" language="javascript"></script> <script …

Member Avatar for momal
0
644
Member Avatar for COKEDUDE

I have an array of characters. I am trying to find "houston". The only way I can think of to do this is to use a for loop and check each individual character. Is there an easier way to do this? char string[] = "Fishing tourism miami atlanta dallas houston";

Member Avatar for COKEDUDE
0
210
Member Avatar for Enigma360

I have just used this code in a project which works perfectly, but I have noticed that the first record is always not displayed. Eg. the SQL query lists 15 results, but the output only displays 14, missing the first record. Any ideas why? <?php $result = mysql_query($sql); //first put …

Member Avatar for diafol
0
1K
Member Avatar for trade19

python3 Hi I am trying to compare these two (strings) of numbers. There may not be a space inbetween the numbers in the file, but here its just for clearity. I want to take the value of 40 and compare it with 14 then 18,35 and so on until 54 …

Member Avatar for trade19
0
410
Member Avatar for jovstudios

Hello guys, I need your Help, why i can get this warning? Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\OJT\FINAL\profile.php:112) in C:\xampp\htdocs\OJT\FINAL\profile.php on line 122 this is my code <?php $member_id=mysql_real_escape_string($_SESSION['id']); $result=mysql_query("select * from user where id='$member_id'")or die(mysql_error); $row=mysql_fetch_array($result); $username=$row['UserName']; $FullName=$row['FullName']; $image1=$row['img']; header("Content-Type: image/jpeg"); …

Member Avatar for jovstudios
0
3K
Member Avatar for vivekagrawal

I have teo form form1 and form2 i want to pass form1 textbox1 text in form2 textbox1.text whae i click a button of form1.(Its for windows application) Plz give me some help......

Member Avatar for hilahilarious
0
8K
Member Avatar for erik.pierce1

I cannot for the life of me get my GUI to comeup with my deckPanel displayed along with my JButton that I intented to add an Action Listener to. THanks for looking. I am sure it has something to do with my object creation and method calls. import javax.swing.*; import …

Member Avatar for erik.pierce1
0
132
Member Avatar for burt.munn

I'm trying to create a script that will calculate the tip a customer should pay, based on the number of customers and the amount of the bill. I also have to create an HTML document that has a form with two text boxes, one for number of customers and one …

Member Avatar for burt.munn
0
283
Member Avatar for begueradj

Howdy, How can I disable Javascript in Firefox (version 27 and 28) on Windows ? There is no checkbox on the Content tab as I read on other forums ! Regards from Begueradj

Member Avatar for begueradj
0
227
Member Avatar for jazz_vill

Hi I want to count the number of occurence of each characters in a string from a client then the server will compute the occurences and pass back to the client the result.You may have noticed that I used String for result coz im planning to send a string to …

Member Avatar for Reshma_2
0
2K
Member Avatar for Bendez Thyna

i have this for my requirement assignment: Write a search function int get_index(const float astm[?][?], const int size) to find the array index from a given size. can someone give me some hint on how to di it pleass?

Member Avatar for Bendez Thyna
0
218
Member Avatar for rpv_sen

Hi I am using MSSQL ODBC Connetion for my project in PHP. I have created login form with PHP and MSSQL with ODBC Function. Can any one please help how to use SESSION to carry on to next page without get function.

Member Avatar for rpv_sen
0
2K
Member Avatar for markii.borabon

im getting unexpected '$sql' when I run this code.. and idont know why.. <?php include('connect/connection.php'); if(isset($_POST['pid2'])) { $pid = $_POST['pid2']; $name = $_POST['name'] $sql="INSERT INTO tbl_wishlist (prod_id, name) (select prod_id, image from tbl_product where prod_id ='$pid' AND image ='$name' )"; }else{ echo 'mali';} mysql_close(); ?>

Member Avatar for markii.borabon
0
103
Member Avatar for buddi.hemanthkumar

i need help to create website for online test using asp.net with c# coding.. it shld consists of question with multiple answer choices, i ve created using panel control and when i compiled application , the next button is not working,its not taking me to 2 nd question protected void …

0
117
Member Avatar for nurul_1

I have a form and a mysql table name parcel. I need to insert tracking number in the table which is personally generated based on year,category and status. But the tracking number must auto increment. For example : category has two values : D and L status has four values …

Member Avatar for nurul_1
0
614
Member Avatar for Fernando_4

Hi all, I've made a query that gathers info from several tables, after it was working, there was the need to integrate yet another table, however I can't seem to put it to work. I've seen some of this "witchcraft" before, but can't seem to find a tutorial, basically because …

Member Avatar for Fernando_4
0
473
Member Avatar for jovstudios

Hello Guys. I am trying to make a code for login form in my page using Bootstrap modal. Then I want to know how to validate the form in modal. Thanks in advance. Example. There have UserName and Password Field, If Username and Password not match it should be say …

Member Avatar for diafol
0
813
Member Avatar for McNoobie123

I need to create a form with 2 text boxes to receive numbers as input and 1 command button that displays a message box containing the larger of the two numbers. To do so, I need to write code in the Click event of the command to call a user-defined …

Member Avatar for Reverend Jim
0
207
Member Avatar for kxjakkk

My Rational class code: from __future__ import division import math as _math def _gcf(a, b): # Returns the greatest common factor of a and b. a = abs(a) b = abs(b) while b: a, b = b, a % b return a class Rational(object): def __init__(self, numerator=0, denominator=1): # Contructs …

Member Avatar for Schol-R-LEA
0
301
Member Avatar for jovstudios

Hello Guys. Can you check out my codes? I dont know y i get this warning Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\OJT\FINAL\login.php:117) in C:\xampp\htdocs\OJT\FINAL\login.php on line 130 help me guys thanks <?php include('dbcon.php');//para sa connection sang database session_start();//para mag start ang session …

Member Avatar for jovstudios
0
324
Member Avatar for keyontes

Cant tell what im doing wrong no matter what numbers i enter it always return as a F and I cant get the average to calculate correctly plz help i uploaded the file also Below is the assignment Create an application that allows a teacher to enter three test scores …

Member Avatar for Yolo03
0
2K
Member Avatar for abaddon2031

Ok i had this in another question i asked yesterday and now im posting it in its own thread. I have a code that is supose to read files that are sent to me daily and after they are read i need to have them moved from their origional folder …

0
124
Member Avatar for joshmac

I am tring to perform a calculation in my query. I've been working on it for hours, so I need another pair of eyes to see what I am missing. Everything in the query is working except for the g.courseFee part. The course fee is not being added to the …

Member Avatar for joshmac
0
211
Member Avatar for abaddon2031

Hello I am new to python coding and have a couple of things that I could really use some help on. I need to move some sor files from one folder to another and to add a date and time to the facts sheet that it produces if any one …

Member Avatar for abaddon2031
0
310
Member Avatar for Richa_2

interface Interface1 { public int method1(); public int method2(); } public class Salary implements Interface1 { public static void main(String args[]) { int sa[]=Integer.parseInt(arg[0]); float pf,hra,da,tax,net; public int method1() { System.out.println("salary="+sa); try{ if(sa>250000) { pf=sa*5/100; hra=sa*10/100; da=sa*8/100; tax=sa*10/100; net=sa+tax; System.out.println("Net salary of an employee"+net); } } catch(Exception e) { System.out.println("I/O …

Member Avatar for Richa_2
0
301
Member Avatar for Webville312

Dear all, I have a challenge here of understanding the page masks as used in this code; <? $access_level_map['loader'] = 1; $access_level_map['support'] = 3; $access_level_map['admin'] = 7; $access_level_map['superadmin'] = 15; define("LOAD_PAGE_MASK",1); define("SUPPORT_PAGE_MASK",2); define("ADMIN_PAGE_MASK",4); define("SUPER_ADMIN_PAGE_MASK",8); $pageMaskMap['add_employee.php'] = SUPPORT_PAGE_MASK; $pageMaskMap['awpdc.php'] = SUPPORT_PAGE_MASK; $pageMaskMap['awpdc_blocked.php'] = SUPPORT_PAGE_MASK; $pageMaskMap['awpdc_unblocked.php'] = SUPPORT_PAGE_MASK; ?> What I know …

Member Avatar for Webville312
0
173
Member Avatar for Szabi Zsoldos

Hey guys, I am having some difficulties regarding a select query logic. Then I have a table with products and it has a column -> submodel with all kind of data in it. ![3bcf9a8dac9e8218c88209198e26a7e5](/attachments/small/2/3bcf9a8dac9e8218c88209198e26a7e5.png "align-left") What I want to achieve is to **STRIP** (with REGEXP?) all the strings starting with …

Member Avatar for Szabi Zsoldos
0
738
Member Avatar for ziadkassam

I am developing an android application using java with SQLite. The following code make the error: String selectQuery = "SELECT * FROM User"; Cursor cursor = db.rawQuery(selectQuery, null); I checked my program and I found that the cursor make unfortunatly error. Please help from where is the error come??

Member Avatar for ziadkassam
0
352
Member Avatar for Kumar_3

Hi, I am working on a project building a scanner based on Lex and Yacc. I have added "gettimeoftheday" function to display total scanning times, now i want to find a way to print the line numbers in the terminal.plz if anyone can help me in this.Here is my yacc …

0
104
Member Avatar for Praveen_10

#include <iostream> #include <cstdlib> using namespace std; // function prototype for add int add (int x, int y); int sub (int q, int r); int mul (int s, int t); int divi (int u, int v); int main () { int a,b; char ch; loop:cout<<"ENTER CHOICE OF OPERATION: + - …

Member Avatar for Praveen_10
0
273
Member Avatar for showman13

I've got an odd question ( I think ) I have to do a header redirect to a remote server The page on the remote server is just ugly. no background no formatting, etc... The vendor that hosts it says that I can use CSS to dress it up a …

Member Avatar for diafol
0
212
Member Avatar for Taras20

Hi, I have problem going through database (im using microsoft access) tables with BindingNavigator. Basicly I want to have BindingNavigator which goues through database tables (not the table rows) in DataGridView. For example if i press next button on BindingNavigator, I want to see next table in the database. I …

Member Avatar for cgeier
0
267
Member Avatar for dawbin

What is the most efficient way to get the number of rows from a table? I'm able to do it with the following code, but looping through a recordset of one row seems inefficient. Is there a better way to do this? <?php $con=mysqli_connect("0000000000","0000000000","0000000000","0000000000"); $sql = 'SELECT count(*) AS t …

Member Avatar for iamthwee
0
232
Member Avatar for jonsan32

If anyone is able to help, I'd like to create a single-line text on my site that says "Happy birthday to Samantha" whenever it's her birthday, or whenever it's another kid in my program's birthday. Including the capacity for multiple birthdays on the same day (comma spaced), the date, and/or …

Member Avatar for jonsan32
0
1K
Member Avatar for alyssa.wilkins.77

Hello, I am trying to figure out the direction i would need to go in order to create the circuit in Digital Works. Right now I am stumped. I do have a working asynchronous counter that can go from 0-13. Can you help push me in the right direction?

Member Avatar for alyssa.wilkins.77
0
190
Member Avatar for jovstudios

Hi Guys, Can you Tell Me What is the wrong of my Code. This is my Code. I am Using DOM Extension! <?php require_once("dompdf/dompdf_config.inc.php"); $conexion = mysql_connect("localhost","root",""); mysql_select_db("evaluation",$conexion); $codeHTML=' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Download</title> <link href="css/style.css" rel="stylesheet"> </head> …

Member Avatar for chrishea
0
218
Member Avatar for admiri92
Member Avatar for rajii93
0
540
Member Avatar for jeevan reddy

I have a server and a client. I wrote handlers for send button and receive. When I send a string I am receiving only first two chars and then some japanese chars of the string on the receive side. I wanna receive the entire string.Please help me . This is …

Member Avatar for jeevan reddy
0
195

The End.