64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for William Blore

Hello, I've get very elementary problem with javascript I add onclick option to one of paragrahps, but it doesn't work properly, It should display result of my new function, but it display result in a new, empty page. (My function work properly, but connecting it with onclick and button is …

Member Avatar for William Blore
0
118
Member Avatar for stephen_UK

I would be grateful if someone could suggest what I need to do to get this to work. I have copied two short scripts which should demo the use of $_session, but the read script does not work. I believe the save script is the culprit though. Here they are: …

Member Avatar for Rhamises
0
143
Member Avatar for supriya badam
Member Avatar for kapojian

hi. i have a main form and log-in form. when i try to log-in and entered a wrong user or password it gives me error and i dont understand why the error is in the main form??? heres my code in my login form.. [CODE] private void Lgbtn_Click(object sender, EventArgs …

Member Avatar for kapojian
0
139
Member Avatar for -acir-

[ICODE] I would like to ask assistance how I can retrieve all the scores every game. And how to add the points by not incrementing game 1 and game 2 and so on.. THank you... [/ICODE] [CODE] /* * To change this template, choose Tools | Templates * and open …

Member Avatar for -acir-
0
217
Member Avatar for shahbaz13

Hi, I am trying to display images from my db with the following code.. [CODE] <?php include_once("scripts/connect.php"); if ($q == "All Images") { $sql = mysql_query("SELECT * FROM gallery"); $q = "All Images"; } else { $sql = mysql_query("SELECT * FROM gallery WHERE caption LIKE '%$q%'"); } $limit = 7; …

Member Avatar for shahbaz13
0
104
Member Avatar for dags4

I am having problems when I run my salesreport.php [QUOTE]A PHP Error was encountered Severity: 8192 Message: Assigning the return value of new by reference is deprecated Filename: controllers/salesreport.php Line Number: 390 [/QUOTE] I checked line 390 and here is the code [CODE]$pdf =& new Cezpdf('LETTER', 'landscape');[/CODE] What should I …

Member Avatar for diafol
0
153
Member Avatar for Majestics
Member Avatar for Majestics
0
147
Member Avatar for warlord902

I am in situation like I have a class which have two different subclasses. [CODE]public class SuperClass{ String st; public String getSt(){ return st; } } class A extends SuperClass{ } class B extends SuperClass{ } [/CODE] Now I have another method that want to access the getSt inherited method …

Member Avatar for javaAddict
0
178
Member Avatar for bettybarnes

hi guys just want to ask a simple question about listview im making a POS program.. when i click Enter button the items on textbox and comboboxes should be placed inside my listview here is my screenshot [URL="http://i43.photobucket.com/albums/e355/bettybarnes/pos.jpg"]http://i43.photobucket.com/albums/e355/bettybarnes/pos.jpg[/URL] my problem is i dont know how to put the correct codes …

Member Avatar for Ramesh Genwa
0
162
Member Avatar for JoshuaBurleson

In version 3.0 of my address book I'm utilizing tkinter. The only problem thus far I'm having is that I have a very ugly display on a child window that shows the search result for a query. I'm getting {['Email: [email]Shoiukamp0@gmail.com[/email], Phone: (111)555-2222, Address: 122 C---- Ct., Essex, VT']} The …

Member Avatar for JoshuaBurleson
0
2K
Member Avatar for Jeroen van Zijp

Hey all! What I am working on is a contact form with file upload functionality. (e.g. user should be able to upload a screenshot.) Uploading a file should not be mandatory. So the mail which is produced from the entered information in the form should be sent without an attachment …

Member Avatar for soul2life
0
141
Member Avatar for janice91

Dear experts, Please kindly advise me in how i should write the column operation: The following is the full codes: [CODE]import java.util.*; public class Matrix { public static void main(String[] args) { // declare the necessary variables int N, M; String operator; int index; int sum; int [][]matrix = new …

Member Avatar for javaAddict
0
129
Member Avatar for bhagawatshinde

Hi Guys, I want to set background image for the MDI form at the runtime (form load) i tried this, [CODE] this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\Images\\OTS_mockup_slice.jpeg"); [/CODE] but its not working.... any idea Thanks in advance.

Member Avatar for bhagawatshinde
0
97
Member Avatar for Who me?

Hi, I new to PHP. I've searched all over, but with no luck. My objective is to build an array of variables that contain HTML links. (One html link per variable). Then I want to output the variables, (containing the links), so that a new random variable loads each time …

Member Avatar for Who me?
0
122
Member Avatar for k2k

Im trying to scp including password in one line... seems not working. [code] echo "pass" | scp --stdin source destination [/code] However this does work though [code]echo "newpass" | passwd --stdin user [/code] same concept, diff result. Any suggestion would be great. Thanks

Member Avatar for maninaction
0
546
Member Avatar for vishalbhavsar

Hi, I am currently studying the database. I came across the concept of 'Keys'. I am very much confused in all of them. Can anyone help me by giving comparison between them along with some example?

Member Avatar for urtrivedi
0
147
Member Avatar for cutebaboi

its been 6 days passed since i started making this assignment of mine it is to show how objectdatasource is used, until now, i still cannot getaway with this error, [B][U]The data source for GridView with id 'GridView1' did not have any properties or attributes from which to generate columns. …

Member Avatar for cutebaboi
0
1K
Member Avatar for videoscape

i can't get my head around how i am suposed todo this really i am stuck i have looked on tons of forums mostly this forum and what i would like to do is if a person goes on this link play?p=rLoYvtMNlO then it will load the data from that …

Member Avatar for videoscape
0
203
Member Avatar for superjj

I have a very stupid question. I use a JToggleButton. now I want to know if the setSelected is true or false. thus an if function, but how to write one because I get errors. thank for your support [CODE]if(Btn2.setSelected() = true){ }[/CODE]

Member Avatar for superjj
0
116
Member Avatar for Jeroen van Zijp

I have to build a small contactform validator in JS, which checks the fields' values when submit is clicked. I am experiencing problems with getting the email validation to work properly. This is what I've got: [CODE=js]function validate_form() { valid = true; // Validation of email input if ( (document.contact.email.length …

Member Avatar for MHENRU
0
239
Member Avatar for mikejs

Hi I am using the following to get the system sound question but it doesn't populate ? [CODE] Public Class SystemSoundItem Dim sound As SystemSound, soundName As String End Class Public Property SoundToPlay As SystemSound Set(ByVal value As SystemSound) End Set Get SoundToPlay = SystemSounds.Question End Get End Property[/CODE]

Member Avatar for mikejs
0
366
Member Avatar for sadsdw

Hi friends, I wrote a simple code to write in different files but I don't know where I made mistake. The function is writing the first file and after writing everything in the second file, not in the next files 3,4, 5. Can anyone help me please? Thanks a lot! …

Member Avatar for sadsdw
0
108
Member Avatar for Meonia

Hi, I'm doing a check against HTTP_REFERER after a simple form is submitted, just as an additional security measure. What's happening is that the check always fails when the script is running on the remote server, but works as intended if I test it on my localhost server. Here's the …

Member Avatar for Meonia
0
234
Member Avatar for Gaving30

Hi All, First time asking so go easy :-) I am doing c++ a few weeks now, i am doing questions in Project Euler to hopefully improve my coding, But as you will prob see below i am still very new and "Nieve"... Question is: The prime factors of 13195 …

Member Avatar for TrustyTony
0
444
Member Avatar for dwlamb

I have an array that is multidimensional and I need to test whether an offset exists. My reading of the PHP manual for array_key_exists makes sense for a single-dimension array. My script takes results returned from the database and arranges them this way: [code=php] Array ( [1] => Array ( …

Member Avatar for dwlamb
0
681
Member Avatar for rowen17

hi guys, im trying to loop a variable using 00 format.. ex. 01,02,03,04.......31 im going to use this for my dropdown of date. thanks!

Member Avatar for eXpertPHP
0
87
Member Avatar for lolsn0r

Ok i have made a picture ;) That will explain it a lil better. I just need to add that certain code ***|*** to textbox2.text but * can be 1 2 3 4 5 6 7 8 9 button2_click: if textbox1.text.contains("***|***") then ... Picture: [URL="http://imageshack.us/photo/my-images/43/naamlooses.jpg/"]http://imageshack.us/photo/my-images/43/naamlooses.jpg/[/URL]

Member Avatar for codeorder
0
183
Member Avatar for fibbo

Hey guys! I hope what I'm about to do is not frowned upon :) I just would like some input/critics/heads up on my class definition and implementation I did for my project. I am by no means a trained programmer and I doubt my coding style is very good so …

Member Avatar for fibbo
0
218
Member Avatar for d3zz

Hello. i have this problem with a program im coding in python. heres the code: [CODE]#! /usr/bin/python from Tkinter import * list=[".", ".", ".", ".", ".", ".", ".", ".", "."] root=Tk() def p(lol): list[0]=1 lol["text"] = list[0] def plade(): ###### ROW=0 a1=Button(root, text=list[0], command=p(a1)) a1.grid(row=0) a2=Button(root, text=list[1], command=p(a2)) a2.grid(row=0, column=1) …

Member Avatar for d3zz
0
260
Member Avatar for Buppy

Hi, A little help here needed - i want to make a class variable (array). Some values are expected to be from a session variable. Example [CODE] public $myArray = array( 'key1' => 'something', 'key2' => $_SESSION['something_else'], ) [/CODE] With this i get an error about unexpected variable. Aynone knows …

Member Avatar for Buppy
0
92
Member Avatar for mikejs

I seem to have broken something I get this error Unable to cast object of type 'System.EventArgs' to type 'System.Windows.Forms.KeyPressEventArgs'. my code: [CODE] Private Sub ListControl_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListControl.SelectedIndexChanged Dim connString As String = My.Settings.strConn Dim conn As New SqlConnection(connString) If ListControl.SelectedIndex > -1 …

Member Avatar for mikejs
0
242
Member Avatar for sergent

Why almost always capital letters are used when defining macros or variables like [CODE]#define SOMETHING 432[/CODE] instead of [CODE]#define something 3243[/CODE] Also, why in macro definition x is used for example [CODE]#define macro(x) (x*x)[/CODE] Does the letter matter, and can longer variable names be used like [CODE]#define MACROSQUARE(variable) variable*variable[/CODE]

Member Avatar for Narue
0
169
Member Avatar for uselessninja

hi everyone i have a search page that will search base one date... but if i search with only date (9/27/2011 ) it will only display the data from database that has the same date and time but not the whole data in that specific date: example: in my database …

Member Avatar for calebcook
0
342
Member Avatar for somon

hi everyone here is my method in java [CODE] public void openWebURL( String inURL ) { Intent browse = new Intent( Intent.ACTION_VIEW , Uri.parse( inURL ) ); startActivity( browse ); } } [/CODE] and i'm just typing [CODE] openWebURL("www.google.com");[/CODE] in my java file onStart section but my app just doesn't …

Member Avatar for sharathg.satya
0
170
Member Avatar for coroll

Hi all, In my table i have duplicate rows. i want to get distinct rows. select distinct * from table1 does not work. select distinct col1,col2,col3,col4 from table1 does not work. both say: The text data type cannot be selected as DISTINCT because it is not comparable. select distinct(col1) col2,col3,col4 …

Member Avatar for coroll
0
183
Member Avatar for Digitalwolf

I have written a small client server program using tcp sockets, and i ran into trouble in retrieving the data brought in by the receive function. Like down below. [CODE] char *rec; int buff=1024; recv(a,rec,buff,0); [/CODE] You need a char buffer to get the data, but after that i wanted …

Member Avatar for Digitalwolf
0
190
Member Avatar for rakwel10

I have a date picker that give me this result: e.g. 2011-29-08 When it is inserted in mysql, it outputs '0000-00000'. What can I do? I know "strftime("%Y-%m-%d %H:%M:%S", time());" But I have no timestamp to put as an argument. The only data I can use is the data that …

Member Avatar for rakwel10
0
142
Member Avatar for Anuradha Mandal

Can any one say why the [B]break[/B] state does not work. [CODE]#include<stdio.h> #include <stdlib.h> int main() { int n; loop: scanf("%d",&n); if(n!=42){ printf("%d",n); goto loop;} else { break; } return 0; } [/CODE] this is my code.

Member Avatar for Anuradha Mandal
0
103
Member Avatar for klenne

Hi, Actually I don't know if my question belongs in this topic or in the mysql topic. But I'm making a VB.net application with a mysql database and i have to make a trigger but I don't know where I have to use or implement it in my application. I …

Member Avatar for klenne
0
722
Member Avatar for rakwel10

Im creating a time-base site wherein the timestamp should rely on the global time and not to my PC's time (because it can be out-dated somethimes). How can I do that?

Member Avatar for cereal
0
302
Member Avatar for nera1981

I have this code: [CODE]import java.sql.*; import java.util.ArrayList; public class Car { private int id; private String model; private String color; private Double price; public void setId(int id) { this.id = id; } public int getId() { return this.id; } public void setModel(String model) { this.model = model; } public …

Member Avatar for nera1981
0
122
Member Avatar for ashneet

I am new with session. What i am trying to do is that if someone doesn't visit my site for lets say 5 day i want the session to expire. is there a way to do this as i am not aware of it.

Member Avatar for Balajipala
0
410
Member Avatar for Jake.20

Greetings expert programmers, Can someone guide me on how i will connect my vb.net 2008 to ms sql 2008 r2? I already installed mssql 2008 r2, and when i try to add the connection it says i need to call the administator something like that even though i checked all …

Member Avatar for Oxiegen
0
103
Member Avatar for karthik_ppts

Hi frendz, Can we set a value for a session variable through javascript onclick event? (or) How can we set a global variable for the whole website using javascript?

Member Avatar for karthik_ppts
0
7K
Member Avatar for 54uydf

HELP! I lost count of how many editors I tried! I don't understand why non of them work. I'm trying this editor [url]http://nicedit.com/index.php[/url] very simple. but when I type words in the textarea and click submit nothing is saved in the DB..empty that's what I get. all I want is …

Member Avatar for 54uydf
0
965
Member Avatar for agr8lemon

Hello, I'm trying to do a very basic page that allows me to edit a single column in a MSSQL database. For whatever reason I can't figure it out and am hoping that you can help. Here is my front page (sorry about the silly names) [CODE]$ninja_conn = odbc_connect('XXXXX','XXXX','XXXX', SQL_CUR_USE_ODBC); …

Member Avatar for agr8lemon
0
154
Member Avatar for Majestics

As the title stated i want to show tooltip when the user press up and down keys in combo box, Please any hint ..... Regarding to problem

Member Avatar for mKorbel
0
129
Member Avatar for thompsonSensibl

Hi I am having trouble at finding a way to iterate through a string of alphabets until a digit is reached. e.g. iterating through [CODE] //Using a scanner, I can use scanner.getNext() to get the first word. //There may be more than one word; there is no way to tell; …

Member Avatar for NormR1
0
259
Member Avatar for hondros

I am at my wit's end with this thing. I just can't figure out, why I cannot set the WNDCLASSEX.lpfnWndProc equal to my class's function. Can someone help? Here's my code: system.h [code] #ifndef SYSTEM_H #define SYSTEM_H #include "stdinc.h" class System { private: void initD3D (void); void cleanD3D (void); LRESULT …

Member Avatar for hondros
0
197

The End.