545 Posted Topics
Re: 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)); | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: 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 | |
Re: 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> … | |
Re: > <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" /> | |
Re: 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 … | |
Re: > (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?** | |
Re: 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, … | |
Re: > .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 … | |
Re: > 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", … | |
Re: > 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 … | |
Re: 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. | |
Re: 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 . | |
Re: 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 … | |
![]() | Re: 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 … ![]() |
Re: 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 … | |
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. | |
Re: use html5 pattern and required attribute in that case eg: <input type="tel" pattern="\d\d\d\d-\d\d\d\d" required> | |
Re: 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. | |
Re: @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 # | |
Re: 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 | |
Re: 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();"> | |
![]() | Re: > 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 … ![]() |
Re: 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. | |
Re: 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 … | |
Re: can you show your table structure? | |
Re: >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 | |
Re: 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 … | |
Re: @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 … | |
Re: > I graduated 52nd in my class @GrimJack- Does that mean there were 52 students only in your class.Just kidding.. :P | |
Re: we are not here to help you complete your homework.Show your effort to solve this problem,then only expect help from others. | |
Re: > 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 | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
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  Edit:- It is showing properly in edit section  | |
Re: check this http://pcsupport.about.com/od/windows7/ht/windows-7-administrator-password.htm | |
Re: 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 | |
Re: 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. | |
Re: 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) … | |
Re: 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 | |
Re: 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/ | |
Re: <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. | |
Re: 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" … | |
Re: 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 … |
The End.