199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dany12

I want to change the radio button color when i slect them and then change them back to default when I deselect them I have made some code but this is not working as it should be $(document).ready(function(){ $(':radio').click(function(){ if($(this).not(:checked)){ ($this).closest('td').css('background','none') } else{ ($this :checked).closest('td').css('background','red') } )} });

0
89
Member Avatar for SHaseeb

How can i update data from data grid view into SQL database using C#. Actually i m working on windows form app and i have to write update code in click event of the button.I am trying to update single row of data grid view into database. I have tried …

Member Avatar for SHaseeb
0
464
Member Avatar for Serpterion

I would like to first thank those who originally replied to my first article. I have the script modified so it's pulling all the needed data and I finished my work very fast! There was a lot of new syntaxes that I didn't know and took tutorials on each to …

Member Avatar for d5e5
0
136
Member Avatar for harshm027

Hi, I have a form with various elements such as ids, location. I need to pass these values to a php file through a javascript function. Right now I am able to pass only ids. The Form <form action="display.php"> <label>Your ID</label> <input type="text" id="ids" name="ids" value=""> <label>Location</label> <select name="location" id="location"> …

Member Avatar for jstfsklh211
0
179
Member Avatar for zaphoenix

Hello, I am new to python and i am having problems in the output format of "for" "in" loop example the code below # A word count programme # Author why jay def main(): import string word=0 line=0 letters=0 asd=raw_input("Enter file here : ") f_name=open(asd,'r') for why in f_name: see=why.split() …

Member Avatar for HiHe
0
154
Member Avatar for km2011

Hello everyone, i want to do the summation below: x1= a0*x0 x2= x1+ a1*x1 x3= x1 + x2 + a2*x2 and so on............ supose we know x0 = 2; a0=1 ; a1 = 3; a2 = 2; how do i use for loop to do this? should i keep it …

Member Avatar for km2011
0
193
Member Avatar for rakibtg

hi, my email form is written in php, it does not support multiple languages i mean unicode fonts. it shows something like this: খোলা জানালা . In this case what i should do.

Member Avatar for diafol
0
221
Member Avatar for hwoarang69

here iam checking if the image size is in mb's than i want to reduce the image to kb's. iam not sure how to do this. the if statment works fine. but i need halp inside. $image = chunk_split(base64_encode(file_get_contents($_FILES['fileupload']['tmp_name']))); //store image in database. long blob if(strstr($file_size,'M')) //mb's { $upload_error .= …

Member Avatar for pritaeas
0
230
Member Avatar for dagtad

I'm using windows 7 and wamp server on my computer. I want to send email from my local host and i write the php code like the following <?php $to = 'dagtade@gmail.com'; $subject = 'test_subject'; $message = 'test_message'; mail($to,$subject,$message); ?> the above code neither displays error message nor sends the …

Member Avatar for pritaeas
0
112
Member Avatar for Nikita Sachdev
Member Avatar for jaskij
0
193
Member Avatar for mashimaro

Hey, I have a problem - I'm to write how can a genetic algorithm document clustering program I wrote be combined (and benefit from that) with a "standard search engine". What could be considered a "standard search engine", in the given context?

Member Avatar for mashimaro
0
270
Member Avatar for new_developer

Hello everyone ! I want to get output in C++ in same line. The following code gives me output in separate line. for(int i=0; i<=10; i++) { cout << i <<" " <<endl; }

Member Avatar for new_developer
0
1K
Member Avatar for syd919

Hello guys I have an xslt file I want to extract data from. I am new to xslt but at the moment I can perform basic operations like looping through the nodes and creating element and attributes. My problem is that I want to select a particular value from a …

Member Avatar for Mike Askew
0
135
Member Avatar for syd919

Hello guys, I have a problem convrting to an int in xslt. My xslt is: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tem="http://tempuri.org/"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="/"> <xsl:call-template name="ConnectConsumer"/> </xsl:template> <xsl:template name="ConnectConsumer"> <tem:callRule> <xsl:for-each select="/"> <xsl:for-each select="ConsumerDetails"> <xsl:for-each select="Score"> <xsl:element name="tem:arg0"> <xsl:value-of select='format-number(Score,"#" )'/> </xsl:element> </xsl:for-each> </xsl:for-each> </xsl:for-each> </tem:callRule> </xsl:template> </xsl:stylesheet> …

Member Avatar for Mike Askew
0
169
Member Avatar for veledrom

Hi, I see some website URLs have hash values attached to them. Is this for security reasons? If so, how do we benefit from that approach? example: h-t-t-p://w-w-w.mysite.com/forums/search/results/3400faebf7f6e0b549751ca029026a61/ Thanks

Member Avatar for pritaeas
0
137
Member Avatar for divyakrishnan

I used the code given below to take the count of files in a folder which is in another machine. On my localhost the glob() is working fine, BUT on the server it displays the array size as 0. $dir_path ="http://192.168.0.202/img/$sub_code/$sub_code".N."$churunano/*.jpg*"; $count = count(glob($dir_path)); How to find the count of …

Member Avatar for pritaeas
0
291
Member Avatar for kuki123

am having a problem in incrementing the number automically into the database every the when save. The initial number i want it to be 001 in a text box and when i save it, it should increment into 002 and so on. And every time i load the web page …

Member Avatar for Schol-R-LEA
0
186
Member Avatar for ana_1234

I know this is a simple quetsion but I am stuck. I need to create a view that displays the discount house price by 5%. CREATE VIEW v_hou_discount AS SELECT hou_price - (hou_price * '.05') as '5% Discount Price' from house; What am I doing wrong?

Member Avatar for debasisdas
0
123
Member Avatar for wussa

Hi, I am running this [URL="http://checkpagerank.ws"]Check Page Rank[/URL] site There is just one prob left with the code. When I submit a domain for analysis if the domain doesn't have a history at archive.com it come out error like this Example [URL="http://checkpagerank.ws/?txt_url=http%3A%2F%2Ftl.my&Submit="]result[/URL]~ If result with archive.com is successful like this …

Member Avatar for ragufiles
0
876
Member Avatar for UtaChan

Here is the code (content is the name of my <div>): foreach (Exercise ex in exs) { Label label = new Label(); label.ID = Convert.ToString(ex.ex_id); label.Text = ex.ex_text; TextBox textbox = new TextBox(); textbox.Width = 100; textbox.ID =Convert.ToString(ex.ex_id); id_counter++; content.Controls.Add(label); //content.InnerHtml += "<br />"; content.Controls.Add(textbox); } It crushes on the …

Member Avatar for UtaChan
0
179
Member Avatar for hwoarang69

trying to print last image from database. my image type is long blob. note this is all one file. //first get the last id in database and get last image form database <?php $lastid = mysql_insert_id(); $image = mysql_query("SELECT * FROM image WHERE user_id = $id ORDER BY image_id DESC"); …

Member Avatar for muralibobby2015
0
127
Member Avatar for javabegginer

Hello, I just needed some help with a code error. When I compile the code below, I keep getting this error: Program2.java:12: error: ';' expected Scanner keyboard = new Scanner(System.in); 1 error Could somebody please let me know what I am doing wrong? Thanks. import java.util.Scanner; // Needed for Scanner …

Member Avatar for poojavb
0
287
Member Avatar for cyberbemon

Note: This is a server that is going to be used on a build farm, So 3rd party libraries are no use here. I've been working on writing a python script that can be used to POST files on to a tomcat server (java), I finished writing the servlet and …

Member Avatar for cyberbemon
0
1K
Member Avatar for poojavb

Hello Friends, One help needed.... I have a product database....in which I have productid,prodname,inventoryvalue,reordervalue I have to design a email system that as soon as the product reaches the reorder level it shud generate an email.... but the condition is there will be many products in the database....and on one …

Member Avatar for poojavb
0
168
Member Avatar for Droidik

Hello there, I just don't know, how to solve this task in assembly - http://oi49.tinypic.com/2qi9q4l.jpg I know what every command does, but don't get the way it's done. Any explanations or advices, please?

0
255
Member Avatar for Valiantangel

Can anyone correct my mistake. Provided code: public void testSetBaseSalaryNegative() { final double altBaseSalary = -999.99; try { emp.setBaseSalary(altBaseSalary); // Expecting an IllegalArgumentException fail ("Negative base-salary values should be rejected by setBaseSalary and result in an IllegalArgumentException"); } catch (IllegalArgumentException ex) { // This is the nominal case } catch …

Member Avatar for JamesCherrill
0
97
Member Avatar for Sevyt

Never had this problem before, and i am not sure how this happened. I got a Mysql sql database for my project. The id field is set as auto increment, which seems to function correctly. But on the form in my text field and datagrid i see a negative number, …

Member Avatar for peter_budo
0
254
Member Avatar for kalaban

First I want to say thank you to those who help me in my project last year espicially to sir ardav and to this site itself. now I'm in my (hopefully) last year of my college and now I'm thinking of "Online Establishment Finder System" as my final project. But …

Member Avatar for Incognitus
0
162
Member Avatar for silvercats

A program written in assembly is machine dependent but a program written in Java ,python etc.. are not. why is that at the end don't they all get converted in to machine language?

Member Avatar for MandrewP
0
502
Member Avatar for newbie1234

in php i insert some data into database. In database s_no automatic increase when any data instered. I want to get that s_no. how do i get it.

Member Avatar for newbie1234
0
108
Member Avatar for M.Waqas Aslam

hello ! i love to use cell phone apps , but now i want to develop them , please guide me which is the best and easy sdk for android mobile applications , and from where i can start working on it. Regards

Member Avatar for peter_budo
0
189
Member Avatar for M.Waqas Aslam

hello ! i am working on a c# project , but i had done all this is vb before , now i have all the code in vb.net and i want to use it in c# project , someone told me that if i make dll of my vb modules …

Member Avatar for M.Waqas Aslam
0
200
Member Avatar for snkar

I have an object hierarchy that can be represented simplistically like: public class ChannelEntity { ... public properties .... public FramesetEntity Frameset { get; set; } } public class FramesetEntity { ... public properties .... public List<FrameEntity> Frames { get; set; } } public class FrameEntity { ... public properties …

Member Avatar for snkar
0
218
Member Avatar for ganges

hi how to fix org.hibernate.HibernateException i am using eclipse and oracle 10g thanking you

Member Avatar for rubberman
0
243
Member Avatar for daino

This is probably a silly question but i really don't know the answer to it. Can you write a program in C++ and have another part written in C and compile them into a single executable file? I'm thinking a c/c++ compiler like visual c++ would do this.. Is that …

Member Avatar for rubberman
0
263
Member Avatar for triumphost

Can anyone check my memory class and suggest changes or things I may need? I'm writing it so that I don't have to worry about deleting anything everytime I allocate. #include <iostream> template<typename T> class Memory { private: size_t size; T* data; public: explicit Memory(size_t Size) : size(Size), data(new T[Size]){} …

Member Avatar for rubberman
0
140
Member Avatar for poloblue

Good Afternoon, This is my first class in C++ and I'm having problems with a program that needs to print a calendar of June, July and August 2008 into the output file "outCalendar.txt" . I should format the result for month well so that it looks like a real calendar …

Member Avatar for Schol-R-LEA
0
403
Member Avatar for khajvah

Hello ppl, I am learning PHP. I already know some programming languages, so i didnt read whole book i had, but after i read part of the book, i understood that i get the information but can not use it, so my question is-Is there any videos or books, which …

Member Avatar for Red Dragon
0
318
Member Avatar for hwoarang69

long blob size is way too small for me. how can i make it bigger??? i want thing when i making col image. i can set Attributes to or lenth/value? but i dont know what to type in help plz

Member Avatar for hericles
0
131
Member Avatar for drjay1627

Hello, I created 2 lightboxes on my page. When I just had one, everything worked fine. The 2 lightboxes are not displayed at the same time. There are 2 links that open each respectly. <a href="#" class="lightbox1">Open box 1</a> <a href="#" class="lightbox2">Open box 2</a> The following is the HTML/CSS: <div …

0
106
Member Avatar for VB 2012

Here's the html i want to understand i want the first div class to let the program no im dealing with only hel(helium) and then still in the hel(helium) section , is span class i want the production value so basicly i want only one at a time not the …

Member Avatar for KingGold171
0
164
Member Avatar for VernonDozier

This program does not crash but behaves badly due to not allocating enough space for vector z in line 21. If I comment out line 21 and instead uncomment line 23, things work well. If I comment out both lines 21 and 23, the program will crash, presumably because I …

Member Avatar for VernonDozier
0
384
Member Avatar for hwoarang69

i am store image in database by using long blob. here is my code for that $file = isset($_FILES['fileupload']) ? $_FILES['fileupload']['tmp_name'] : false; ... $query = mysql_query("Select * FROM image WHERE image_short_name = '$image_short_name_p' AND user_id='$id'"); $image = chunk_split(base64_encode(file_get_contents($_FILES['fileupload']['tmp_name']))); $image_width_height = getimagesize($_FILES['fileupload']['tmp_name']); $insert = mysql_query("INSERT INTO image VALUES(NULL, '$user_id_db', '$image', …

Member Avatar for diafol
0
203
Member Avatar for rori

hi, i posted this in the javascript forums but didn't get any replies, maybe this is a better place. i have a website for properties (rent, sell, etc), using php and mysql. i allow the admin to manage existing properties by selecting the property id from a dropdown that lists …

Member Avatar for marsystsm123
0
2K
Member Avatar for satnav_8

So i've found this HTTP downloader in python, and I wanted to modify it. I've been trying to add a ttk progressbar, to no avail, but I have no idea why it isn't working! Here is my code: import urllib2 import Tkinter import ttk url = 'http://kharg.czystybeton.pl/pendulum%20-%20%5B2005%5D%20hold%20your%20colour/05.%20through%20the%20loop.mp3' file_name = url.split('/')[-1] …

Member Avatar for TrustyTony
0
2K
Member Avatar for markyjj

I have a program where am trying to access a dataset in the main form from a 2nd Winfrom. I have created a form 1 ref but when I use this to access the datatable in the dataset it doesnt seem to work. The following code is for Form 2 …

Member Avatar for Mitja Bonca
0
1K
Member Avatar for atlachar

Hi, I have an aspx page in that when i select check all option and when i click on submit its popping an error message length of the query string exceeds th max query string value.so i have done lot of modifications on web.config file none of the changes are …

Member Avatar for aquamarine_kath
0
1K
Member Avatar for aquamarine_kath

I want to display values in a listview within another listview. I already displayed values in the parent listview(lvPackage) but I don't know to insert values in the child listview. I'm using mysql. My only problem is that I don't know how to display values lblPackAct in child listview(lvPackAct). Here's …

0
156
Member Avatar for hwoarang69

this page just load random images from database. problem is that this page take like 10sec to load. which is too slow. is there any thing i can do to load it faster. note i want store image in database. <?php include("include/header.php"); //check, if user is loged in or not …

Member Avatar for diafol
0
1K
Member Avatar for aaloo

i m working on a linux server and my part of the code is this- $post = mysql_real_escape_string($_POST['post']); echo $post; but my $post variable is not getting printed. and when i print $post variable without using mysql_real_escape_string function ,it is working. i.e. echo $post; its a weird problem . can …

Member Avatar for broj1
0
123

The End.