64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for marifard

Hi, I try to make a simple page to upload an image in Database. This is a test page in my website at this moment. The name of the table to store the images is image and the columns are: id, userid, name, image My problem is when I click …

Member Avatar for marifard
0
392
Member Avatar for davidjennings

Hi All - I am trying create classes for db connection and I am getting the following error Thanks in advance D Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'XXXXXXX_david'@'localhost' (using password: YES) in /home/djenning/public_html/dbconnection/connection.php on line 20 Cannot connect to the database page: connection.php <?php class createConnection //create a …

Member Avatar for davidjennings
0
543
Member Avatar for kanoy83

I have problem with this drop down menu. This code is part of form.php and is used by 2 pages, 1 page is working fine in which it will not show the "-assigned-", where the other page is showing it. I don't know why they both display differently. assuming library …

Member Avatar for pritaeas
0
338
Member Avatar for GeekPlease

I have a datatable with nth column. Now, I want to change the index of some columns. Need help

Member Avatar for GeekPlease
0
516
Member Avatar for abra_ka_dabra

Could you please explain me what is a BufferedStream (what is a buffer and how it should be used?)? I have used a code that uses bufferedstream to write to a .txt file. I got the code while googling but don't know the theory behind how it works... please explain.

Member Avatar for abra_ka_dabra
0
182
Member Avatar for dansonyun

This tiny captcha code is kind of weird. Only works in Firefox but not IE (6,8) Hope someone may figure it out what's going on? Or you may download this code from Author. (demo included) [Click Here](http://codefuture.co.uk/projects/captcha/) exmple.php <?php if(isset($_POST['setCaptcha'])){ include_once('./captcha/cf.captcha.php'); if(!check_captcha($_POST['setCaptcha'])){ echo 'CAPTCHA CHECK: <span style="color:red">'.$error_captcha.'</span>'; //exit(); }else{ echo …

Member Avatar for dansonyun
0
221
Member Avatar for goco17

good morning guys, i'm developing a website. whereby have to move through records..next and previous...i did something like this public Product NextProduct(List<Product> products, Product product) { Product nextproduct = (Product)product; for (int i = 0; i < products.Count; i++) { if (Equals(products[i].ProductId, product.ProductId)) { if (products[i + 1].ProductId == null) …

Member Avatar for goco17
0
198
Member Avatar for Affable zaki

hello folks. i have saved the values of unique_ID.text textbox1.text textbox2.text textbox3.text textbox4.text textbox5.text textbox6.text in columns column_ID and column_1 to column_6 in a table table_1 in database db_1. Now I want to update some values. but for that i want to show the values of column_1 to column_6 in …

Member Avatar for M.Waqas Aslam
0
390
Member Avatar for nashy13

Guys, I want my textbox are ALL CAPITAL letters even I encode a small letter and it will become Capital .. thanks guys!

Member Avatar for nashy13
0
236
Member Avatar for gsam777

This thread I am starting is a carry over from this thread http://www.daniweb.com/web-development/web-design-html-and-css/threads/205959/getting-ip-address-into-a-contact-form-field **In the thread above BBQKAREN and ALMOSTBOB was able to resolve her issue wich is the same issue I have but I have no way of contacting THEM here.** I have a form field (no PHP) code …

Member Avatar for gsam777
0
3K
Member Avatar for lloyd.farrell.7

Hi everyone, I have created a twitter app to auto post to a number of twitter accounts. The auto tweet works great - but for one thing I am stuck on... I am trying to add a hashtag # (&#35;) to the tweet but for some reason I'ts not working. …

Member Avatar for lloyd.farrell.7
0
188
Member Avatar for Papa_Don

Group, I may have made a huge mistake repairing SQL Server Management 2008 Express. Here are the details: I'm running Windows 7 on a Toshiba Laptop. SQL Manager 2008 had been installed and was working fine. I had some registry errors popping up, so I ran ARO 2013 to do …

Member Avatar for Papa_Don
0
253
Member Avatar for KRUX17

Hi, I'm having some issues with getting next data from the database, it seemed to be working before, but now it doesn't change the textfields to the next data just appends the data into TextArea1 and TextArea2, the other data TextField1 etc.. Doesn't even change, so I do not know …

Member Avatar for KRUX17
0
203
Member Avatar for farhaana.ahmed.58

import os import re import sys sys.stdout=open('f1.txt','w') from collections import Counter from glob import glob def removegarbage(text): text=re.sub(r'\W+',' ',text) text=text.lower() return text folderpath='d:/induvidual-articles' counter=Counter() filepaths = glob(os.path.join(folderpath,'*.txt')) num_files = len(filepaths) with open('topics.txt','r') as filehandle: lines = filehandle.read() words = removegarbage(lines).split() counter.update(words) for word, count in counter.most_common(): probability=count//num_files print('{} {} {}'.format(word,count,probability)) …

Member Avatar for slate
0
4K
Member Avatar for vani krishnan

We use to import packages in java like import java.util.*; import java.lang.*; import javax.swing.*; But, why is it javax for swing?

Member Avatar for jwenting
0
198
Member Avatar for Webville312

Hullo, I am working with a datepicker that allows users to enter a date schedule for given tasks. However, I want the dates that have passed to be disabled from the datepicker, so that the user only selects a future date. Here is what I am using currently; <script type="text/javascript"> …

Member Avatar for Webville312
0
6K
Member Avatar for Hazuan Nazri

Hello Friends, lately I have found a few websites that use very beautiful background and its look like 3D, i see the background Like using 2 layers background, i just want too know the name of this type background and how can i make it, example java or flash. ONE …

Member Avatar for F-3000
0
306
Member Avatar for abra_ka_dabra

What is the difference between JDK and JRE? I know its silly to ask but i am shameless till i get my things get clarified... :D

Member Avatar for abra_ka_dabra
0
201
Member Avatar for davidjennings

Hi all I am experiencing the following error. Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean givenit refers to line 94 which is the while loop start point. Thanks in advance D <?php $x=0; $remainder=0; $image_value = array(); $partners_id = array(); $description_value = array(); $url_value= array(); $image_filename_value = array(); …

Member Avatar for davidjennings
0
383
Member Avatar for Webville312

Hullo, I am working on a php application that is meant to respond to user requests to create accounts. For instance; whoever wants to create an account has to send a text with "Login" as the message content. Only problem is that the mysql queries are not being executed. Can …

Member Avatar for Webville312
0
174
Member Avatar for Osaid9

Hello i'm trying to display date in textfield this is my code: private void DateObjectActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: java.util.Date date=new java.util.Date(); this.DateObject.setText(date.toString()); olny the problem is the date will only show If i press a button I want it to display automatically when I …

Member Avatar for JamesCherrill
0
2K
Member Avatar for sherif.sobhy.37

$name = $_POST['name']; $image = $_FILES['image']; $location = $_POST['location']; $category = $_POST['category']; $username = $_POST['username']; //$imageData =addslashes (file_get_contents($_FILES['image']['tmp_name'])); $imageData =addslashes (file_get_contents("http://zbatny.info/HOOT/amsek/prob/5.jpg")); $image =$_FILES['image']['name']; $type=$_FILES['image']['type']; $file_tmp=$_FILES['image']['tmp_name']; if(!is_writable("../../images/")) echo('You cannot upload to the specified directory, please CHMOD it to 777.'); if(move_uploaded_file($imageData,"../../images/".$image)) { //Tells you if its all ok echo "The file ". …

Member Avatar for Meir David
0
352
Member Avatar for G_S

Hy, I have a beginner question: when using PyDev should all my programs be inside a package or not?

Member Avatar for G_S
0
121
Member Avatar for ogsirus

Hi all, Im want to create a program for myself which will search my directories for ebooks and let me select the one i want to read. So for instance my first form has a button for C# Books, I want that then to produce a list of books found …

Member Avatar for tinstaafl
0
241
Member Avatar for Reverend Jim

Thanks to diafol for putting me wise to the imdb api. Unfortunately, due to my ignorance of all things related to web programming I am stuck. I fetch my information via the following Dim url As String = "http://mymovieapi.com/?title=@title&type=xml&plot=full&episode=0&limit=1&year=@year&yg=1&mt=M&lang=en-US&offset=&aka=simple&release=simple&business=0&tech=0" url = Replace(url, "@title", "Star+Trek") url = Replace(url, "@year", "1979") WebBrowser1.Navigate(url) …

Member Avatar for Reverend Jim
0
338
Member Avatar for while(!success)

Hey guys, I've been tearing my hair out for some time trying to figure out why my jquery has suddenly stopped working. The jquery script that I have written is fairly simple: $(document).ready(function () { $("#pTab").addClass("active"); $("#pBtn").click(function () { $("#pTab").addClass("active"); $("#gTab").removeClass("active"); }); $("#gBtn").click(function () { $("#gTab").addClass("active"); $("#pTab").removeClass("active"); }); }); I …

Member Avatar for while(!success)
0
371
Member Avatar for divakar.it

Hi, As part my developement I would like to keep all employees document stored in database table rather in folder. I dont want to store the files in folder and keep the file location in table so that get the file from the location. I tried my level best in …

Member Avatar for usiegd
0
643
Member Avatar for Jorox03

I am trying to write some code to regex search against wide strings. The problem I am having is that the regex operations ( `regex_search` in particular ) does not take in wide arguements. Here is the snippet I am having trouble with: Function Header: void scan_filesystem( wpath const& f, …

Member Avatar for Jorox03
0
6K
Member Avatar for nats01282

I have a online photo gallery and when you hover over a image an edit button appears that opens up a jquery prompt box in which you enter the caption after this has been entered i have the following code var caption=prompt("Please enter new caption"," "); if (caption!=null) { var …

Member Avatar for nats01282
0
238
Member Avatar for eburlea

Hi, all. I have a login form with a checkbox that needs to create cookies if checked. How is it possible to check after the form has been submitted if the checkbox has been checked? I have the following code in 'application/forms/Login.php': $remember = new Zend_Form_Element_Checkbox("remember", array('disableLoadDefaultDecorators' => true, 'required' …

Member Avatar for eburlea
0
211
Member Avatar for tony75

Hi How to get the path of home directory in windows? I have the script that write log.txt in my windows 7 Desktop. How can I change path in python to write log.txt in homedir directory? Is there any way to do it? I tried with those 2 methods But …

Member Avatar for tony75
0
7K
Member Avatar for legendaddybok

<%@ page import = "java.util.*"%> <%@ page import = "java.lang.*"%> <%@ page import="java.sql.*" %> <%@ page language="java" import="java.sql.*" errorPage="" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <% String ans=" "; if(request.getParameter("correctAns")!=null) { ans=request.getParameter("correctAns").toString(); } Connection conn = null; …

Member Avatar for legendaddybok
0
200
Member Avatar for godzab

Hello, I am trying to encrypt a String using Symmetric Key Cryptography. When I try to encrypt the string, on runtime it gives me this error: input text: Hello World Exception in thread "main" javax.crypto.IllegalBlockSizeException: data not block size aligned at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source) at javax.crypto.Cipher.doFinal(DashoA13*..) at SimpleSymmetricExample.main(SimpleSymmetricExample.java:25) I know it …

Member Avatar for JamesCherrill
0
3K
Member Avatar for jeffadrian

I am using phpmyadmin on my computer and while I tried to update my data, the following happens " Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0 ". I tried to search " php.ini " on my computer, but I can't …

Member Avatar for jeffadrian
0
11K
Member Avatar for lena1990

hi all, i have a program that insert arabic language to ms access when i create .jar file for the program and move it to another computer and run the jar file it store the arabic data in the ms access database like that ?????. note: you must know that …

Member Avatar for lena1990
-1
747
Member Avatar for showman13

I have a strange occurence in a display and I'm wondering if it could have something to do with the formation of the query I have a table that contains shopping cart line items (called dealer_item), stored as the dealer adds them to the cart. This table currently holds 2 …

Member Avatar for iamthwee
0
131
Member Avatar for markyjj

I need help on a program I am currently creating as I am trying to use a foreach statement on a DataGridView & loop through the rows & cells. I have tried the dataview but this doesn’t seem to have the properties to count through cells. I have therefore tried …

Member Avatar for markyjj
0
205
Member Avatar for G_S

Hello everybody. Lately, I'm having a problem with PyDev which is driving me crazy: It is failing to connect to the Python console, therefore, many built-ins appear as errors (None, __name__, the os modules, etc.). I have tried downgrading PyDev, I have tried disabling IPv6, I have tried disabling my …

Member Avatar for G_S
0
307
Member Avatar for code_rum

Hi, I have imported a csv file but for some reason in some values the data after . is missing for e.g. If my value in csv is 0.5 it displays 0. and 5 went missing but in my csv file i have value as 0.5 I don't what step …

Member Avatar for code_rum
0
312
Member Avatar for krystosan
Member Avatar for knutsford-soft

$header = "From: $From_Email\n"; $header .= "MIME-Version: 1.0\n"; $header .= "Content-Type: multipart/mixed; "; $header .= "boundary=$num\n"; $header .= "--$num\n"; # Define the message section $header .= "Content-Type: text/html\n"; $header .= "Content-Transfer-Encoding:8bit\n\n"; $header .= "$strMail\n"; $header .= "--$num\n"; # Define the attachment section $header .= "Content-Type: image/jpg; "; $header .= "name=\"Photo.jpg\"\n"; …

Member Avatar for knutsford-soft
0
173
Member Avatar for jellybeannn

Can someone please help me with why this button is not working, I've tried putting it in <for id="" runat="server">, but then I get the error: A page can have only one server-side Form tag. When the button is clicked nothing happens. [code] <%@ Page Language="C#" MasterPageFile="~/train.master" AutoEventWireup="true" validateRequest="false" CodeFile="TrainStationTutorial.aspx.cs" …

Member Avatar for Hamza Bukhari
0
2K
Member Avatar for mesbahuk

In the conversion process of a java to c# project, i have come to java's ***indexOf()*** function in ***string.java*** class, which takes in two integers (int ch, int fromIndex) and return some integer value for a char (i'm guessing its an ASCII value). I need to know if there is …

Member Avatar for mesbahuk
0
665
Member Avatar for Papa_Don

Group, I've found code that will format a number found in a TextBox to display it with two decimal places. It looks like this: Private Sub txbStateTaxPcnt_Leave(sender As System.Object, e As System.EventArgs) Handles txbStateTaxPcnt.Leave stateSlsTax = Convert.ToInt32(txbStateTaxPcnt.Text) txbStateTaxPcnt.Text = stateSlsTax.ToString("n2") End Sub This works great when a whole number is …

Member Avatar for nashy13
0
12K
Member Avatar for chriswelborn

I'm not much of a javascript developer right now, as I just recently found the need to learn it. I'm using jQuery, and Javascript (sometimes stupidly, like when I find out jQuery already "abstracted out" something I wrote a 20 line function for). My question is about style though, with …

Member Avatar for Troy III
0
240
Member Avatar for GlenRogers

Hi I take data from a html form to inseert to mysql, sometimes that data has single and double quotes in it. How do you get the quotes to be part of the string so i can add to mysql. Hers what I have, but this still gives me a …

Member Avatar for diafol
0
406
Member Avatar for davidjennings

Hi all I am trying to add a class selected to click area and a remove class in the hide area for the below jquery/javascript. Not really undstanding how it's added. Thanks in advaance D <script type="text/javascript"> $(document).ready(function(){ $('.partner_image').click(function() { var id =$(this).class('selected'); var id = $(this).attr('id'); id = id.replace('partner_',''); …

Member Avatar for EvolutionFallen
0
230
Member Avatar for sanyam.mishra

I am doveloping a game brain champ. This is its version 3. In this version I want to use mouse in addition with keyboard for input. I have successfully tested its standalone keyboard version as well as mouse version. I have used int86() function for mouse with 0x33 interrupt number. …

Member Avatar for sanyam.mishra
0
688
Member Avatar for Dani

How can I split a string by word? When I do `$words = preg_split('/\b\w+\b/', $message);` then the resulting array has the correct number of keys, but the array values are all blank?

Member Avatar for pritaeas
0
210
Member Avatar for tunisia

Hello, I'm trying to look at elements of an xml file. I have one on hand but i'm trying to write a utility for extracting info about the MessageId and KeyID, Serialnumber along with a host of other information. Basically, when I've got all of my ducks in a row …

0
133

The End.