545 Posted Topics

Member Avatar for pooran.c

take a look at http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html and use proper date format. And for changing date format into another format SimpleDateFormat sdf1 = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss.SSSSSSSSS a"); // 3/7/2013 12:33:15.000000000 PM System.out.println(sdf1.format(date));

Member Avatar for pooran.c
0
2K
Member Avatar for Deeksh
Re: sql

there are many methods in MSSQL depending on your requirement(ceiling(),round() or floor()) * ceiling() method :- Returns the smallest integer greater than, or equal to, the specified numeric expression. * round() method :- Returns a numeric value, rounded to the specified length or precision. * floor() method :- Returns the …

Member Avatar for Deeksh
0
156
Member Avatar for Imene Hertha

you need a quick go through to java basics...Take a look at http://docs.oracle.com/javase/tutorial/java/ For your if-else read this http://docs.oracle.com/javase/tutorial/java/nutsandbolts/if.html these links will help you to polish a basics of java.

Member Avatar for <M/>
-3
345
Member Avatar for VIPER5646

i am not sure but it seems that your select statement is at wrong place. Secondly after each Case condition,there must be semicolon.Check http://dev.mysql.com/doc/refman/5.1/en/case.html

Member Avatar for IIM
0
200
Member Avatar for bibiki

Bibiki can you explain what error you get??Are you using filter correctly??Until you show the filter that you are using i can't help. For reference for filter in HQL read http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/filters.html or http://docs.jboss.org/hibernate/orm/3.6/reference/en-US/html/filters.html For example you can also refer http://www.mkyong.com/hibernate/hibernate-data-filter-example-xml-and-annotation/ If still problem is not solved,provide error logs.

Member Avatar for bibiki
0
142
Member Avatar for dhani09

there are issues with different browser event listener.Take a look.I have for now added script in same HTML you can modify it accordingly. For IE and non/IE browser there are differnt way to load and call nethods. > window.addEventListener('load', registerEvents, false); Moreover,you were also missing quotes before and after event …

Member Avatar for dhani09
0
159
Member Avatar for Markie76

take a look at http://www.databasejournal.com/features/mssql/article.php/1460001/Complex-Updates-Using-the-Case-Statement.htm .This article describes how to do that.

Member Avatar for IIM
0
174
Member Avatar for active-worker

Similar thread exist in daniweb.take a look at http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/389802/dynamic-image-resize-based-on-detected-user-screen-resolution

Member Avatar for IIM
0
66
Member Avatar for chennaipackers

this is just simple query.Do you want to do using PHP or by mysql. For mysql just run this command(before this add path of mysql till bin in your system variable path) mysql -u <user> -p<password> -h <hostname> <database> < /path/to/updated_script/database.sql or another way is mysql> Create database test mysql> …

Member Avatar for IIM
0
209
Member Avatar for martjojo1

> <input type="submit" name="submit" value="submit" there is no ">" at end of submit button.Change it to <input type="submit" name="submit" value="submit" />

Member Avatar for pixelsoul
0
455
Member Avatar for Atlanta15Braves

there are many errors in your code. First the method doesn't contain variable x.There is no method type in an HTMLEntity.There is no semicolon after end of first line in function function ChangeColor(changecolor) { var x = document.getElementById('test');//creat variable x and add semicolon at the end x.style.color = changecolor;//ues x.style.color …

Member Avatar for EvolutionFallen
0
409
Member Avatar for Xantipius

> (I used to say until I turn 95 but 95 is getting closer, quicker than one could imagine) You are right every year when i celebrate my birthday threw off party,a thought strikes my mind,**am i celebrating for becoming old year after year?**

Member Avatar for mattster
-1
546
Member Avatar for MasterHacker110

if usage is concerned than i will recall some points where javascript is used:- * Google's Chrome extensions, Opera's extensions, Apple's Safari 5 extensions, Apple's Dashboard Widgets, Microsoft's Gadgets, Yahoo! Widgets, Google Desktop Gadgets, and Serence Klipfolio are implemented using JavaScript. * Tools in the Adobe Creative Suite, including Photoshop, …

Member Avatar for IIM
0
137
Member Avatar for active-worker

> .mini_portfolio_item .block_inside Whether both class (.) is active here or not? It means apply style to child of element(whose class is mini_portfolio_item) with class block_inside >Why there has no gap/space between h4.footer-header?But why there has a gap/space between #video .play”? It means for a particular tag(h4 here),style the one …

Member Avatar for active-worker
0
141
Member Avatar for akkbkht

> cell1.innerHTML='<input name="myinput" type="input">'; the type should be **"text"** not **input**.Though it is working because default type is text.Correct it. Alternative of above example,you can do it by using createElement and then set attributes of that element. var table=document.getElementById("myTable"); var row=table.insertRow(0); var cell1=row.insertCell(0); var cell2=row.insertCell(1); var element = document.createElement("input"); element.setAttribute("type", …

Member Avatar for akkbkht
0
190
Member Avatar for Himanshu Chawla

> if(select MAX(Rate)+2 From HumanResources.EmployeePayHistory)>127 > break > else > continue @pixelsoul- one error in your explaination as per i think(i am not sure as the query is max so it will return max of all data or max of data iterated).It will break out of loop if it is …

Member Avatar for akkbkht
-1
172
Member Avatar for shakayu

add session_start() method in your first line of php of each page.Session will be started.If you want to use data from particular session variable,call it but make sure session_start() mthod is called before it.

Member Avatar for shakayu
0
168
Member Avatar for irfath

show your progress so far??? For admin only feature,you have to create login feature to your page.If the login member is admin then display a form to upload file something similar to http://www.tizag.com/phpT/fileupload.php .

Member Avatar for masterjiraya
0
280
Member Avatar for Fiorentino01^

You need to read left join properly to understand its syntax.Check out its syntax at http://dev.mysql.com/doc/refman/5.0/en/join.html You can even go to some example here to know its usage http://www.tizag.com/mysqlTutorial/mysqlleftjoin.php By the way following will be the way to solve.Please go through the above code to learn it rather than just …

Member Avatar for Fiorentino01^
0
204
Member Avatar for zebusman

you have to make sure proper data is added.A way to do it is validation.If you are using html5 then there is pattern and required attribute.Pattern will make sure data entered is of particular format and required make sure data is entered <input type="tel" pattern="\d\d\d\d-\d\d\d\d" required> If you are not …

Member Avatar for zebusman
0
378
Member Avatar for shijieru

Each part may be encoded and the "Content-Transfer-Encoding" header supplied if the value of that part does not conform to the default (7BIT) encoding (see [RFC2045], section 6) If the contents of a file are submitted with a form, the file input should be identified by the appropriate content type …

Member Avatar for IIM
0
212
Member Avatar for IIM

I am getting a strange problem today on logging to DW.I am not able to login through my phone.When i click on Login button,the lightbox appears and automatically disappears. I was able to login from past few months,the problem is recently injected.

Member Avatar for <M/>
0
199
Member Avatar for jinxmc

use html5 pattern and required attribute in that case eg: <input type="tel" pattern="\d\d\d\d-\d\d\d\d" required>

Member Avatar for IIM
0
482
Member Avatar for akkbkht

Write select tag and between select start and end tag, write sql statement to get data from table. Iterate it and add value in option tag.

Member Avatar for akkbkht
0
262
Member Avatar for 72dpi

@LastMitch: It will not work properly.as you are assigning $content value to one. Just take the value from URL and then it will work. $Content= $_GET['Content']; // change the case #

Member Avatar for michel.cote
2
1K
Member Avatar for marvin.gorres.5

use str_split() method. read file and let the variable in which file content is there is $str. $arr2 = str_split($str, 4); For more info http://php.net/manual/en/function.str-split.php

Member Avatar for abhi_d_one
0
278
Member Avatar for aijaz110

what exactly is the problem??? Do you mean scrolling news and onMouseOver stop the scrolling and onMouseOut start scrolling. <marquee onMouseOver="this.stop();" onMouseOut="this.start();">

Member Avatar for IIM
0
148
Member Avatar for LastMitch

> Notice: Undefined offset: 1 You're not getting an Error, but a Notice.This is caused because your $_GET["size"] doesn't contain "#" anywhere in the string so it contains only one element in array.list() is used to assign a list of variables in one operation.Your list contains 2 elements but as …

Member Avatar for LastMitch
0
27K
Member Avatar for nhatty
Re: so

your social network site will only become popular if it introduces some extra bit of entertainent than already available ones.There must be some unique feature to distinguish your site from others like fb,twitter did.

Member Avatar for <M/>
0
85
Member Avatar for gargkapil2008

You are getting that error because there is a primary or unique key in your table and by using this procedure you are inserting same value for that and that's what giving you this error.Use autoincrement for primary field and instead of getting all data,get all data except primary key …

Member Avatar for adam_k
0
192
Member Avatar for gbhs
Member Avatar for toldav

>1- Circle myCircle1; >this is an instance variable of an object correct It is a reference variable.I think so you are a bit confused about reference and instance variable.Read [this](http://docs.oracle.com/javase/tutorial/java/javaOO/objectcreation.html) >this assign myCircle3 to myCircle2 actually it is reverse.Assigning myCircle2 to myCircle3

Member Avatar for toldav
0
128
Member Avatar for game06

are you talking something similar to snake game??? In that you need one more variable to knw the direction,on collision change the direction variable.Depending on the value of that variable either increment,decrement value of x and similarly for y. Edit:- don't call playerWCollision() if hit() returns collision by changing direction …

Member Avatar for game06
0
138
Member Avatar for Papa_Don

@doncwilson_1: use autoincrement if that field is unique and increment by 1 everytime.take a look http://dev.mysql.com/doc/refman/5.0/en/example-auto-increment.html if you still need to get last printerId then you this query SELECT * FROM Printer ORDER BY PrinterID DESC LIMIT 1 order by will first give data in descending order of PrinterId and …

Member Avatar for Papa_Don
0
2K
Member Avatar for <M/>

> I graduated 52nd in my class @GrimJack- Does that mean there were 52 students only in your class.Just kidding.. :P

Member Avatar for <M/>
0
329
Member Avatar for helpme005

we are not here to help you complete your homework.Show your effort to solve this problem,then only expect help from others.

Member Avatar for helpme005
0
237
Member Avatar for shubham.sss05
Re: PHP

> how to show only 10 image at one time in php ? @shubham.sss05: are you asking about showing only ten images from a group of images?Are you refering to pagination?In that case you can just see [this](http://www.daniweb.com/web-development/php/code/351142/simple-but-powerful-paging-function#post1508939) example

Member Avatar for mohammed.ismail
0
174
Member Avatar for Kosamov

1) In line number 19,* is a String,enclose * with double quotes. 2) Secondly use .equals instead of ==(in your case city !="*" must be replaced with **!city.equals("*")**) as == is used to compare two objects and equals to compare the content of thoe objects.

Member Avatar for Kosamov
0
163
Member Avatar for wolfgangcs

quote from php manual http://php.net/manual/en/function.mysql-fetch-array.php stating deprecation of mysql_fetch_array() > Warning > This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives …

Member Avatar for masterjiraya
0
598
Member Avatar for Abdulove

I also agree with them.Atleast show the code that you have done so far.We are not here to do your homework. Any way for this,Take input from user using input textbox and then just check if number is divisible by 2(even),if yes then use for loop and print using echo …

Member Avatar for masterjiraya
-3
125
Member Avatar for IIM

there is some overflow problem in post.For instance take a look on this post. http://www.daniweb.com/software-development/java/threads/450735/timezone-conversion#post1951104 ![dac8dfd733bc989d4614fbae66fbe24e](/attachments/large/3/dac8dfd733bc989d4614fbae66fbe24e.png "dac8dfd733bc989d4614fbae66fbe24e") Edit:- It is showing properly in edit section ![1b85be624a1d744e831980def4e998f3](/attachments/large/3/1b85be624a1d744e831980def4e998f3.png "1b85be624a1d744e831980def4e998f3")

Member Avatar for Dani
0
274
Member Avatar for ganges
Member Avatar for CimmerianX
0
8K
Member Avatar for GeoEqual

use distinct keyword t get distinct name.SUM() function to return total sum of a numeric column where name is same,i.e done by using groupby clause. SELECT DISTINCT name, sum( qty ) , unticost, sum( totalcost ) FROM `table1` GROUP BY name

Member Avatar for GeoEqual
0
124
Member Avatar for Xecantur

if player 1 wins you are calling same method,and similarly for player two.So you can do this in 2 if-else statement.Add all conditions in one with ||(OR).Your condition check will check all conditions for palyer one win in first if and similarly for second.

Member Avatar for Xecantur
0
175
Member Avatar for <M/>

Are you asking of displaying java code or using java code in your HTML. If it is just the display then you can add it in <pre> tag as suggested by JorgeM. But if you mean like using **JAVA objects,methods,variables** in html you can use **JSTL**(JavaServer Pages Standard Tag Library) …

Member Avatar for <M/>
0
2K
Member Avatar for fheppell

fheppell- show your table structure.Because as per error there is no coloumn with name **download-url**. Make sure you are writing correct spelling as mentioned in table

Member Avatar for fheppell
0
271
Member Avatar for <M/>

I think you are refering to lightbox(popup page just like login in daniweb).Take a look at these examples. http://www.designyourway.net/blog/resources/30-efficient-jquery-lightbox-plugins/

Member Avatar for <M/>
0
165
Member Avatar for <M/>

<m/> you want to change content without page refresh then easiest way is make an ajax call and replaace the div with id "content" with the new div containing the response from the requested page.you can use jquery based ajax if you are using jquery.

Member Avatar for IIM
0
153
Member Avatar for fheppell

Read the content from [php manual](http://www.php.net/manual/en/faq.passwords.php#faq.passwords.fasthash) >1) Why are common hashing functions such as md5() and sha1() unsuitable for passwords? > Hashing algorithms such as MD5, SHA1 and SHA256 are designed to be very fast and efficient. With modern techniques and computer equipment, it has become trivial to "brute force" …

Member Avatar for annaharris
0
185
Member Avatar for gogs85

storing image in db is not recommended as you will be storing it in BLOB(Binary large object) datatype.So for storing it in Database it will be encoded in binary format and saved and will retrieving it will again decode.As you have so many files,it will be better you store it …

Member Avatar for gogs85
0
150

The End.