545 Posted Topics
Re: > The javax namespace is usually (that's a loaded word) used for standard extensions, currently known as [optional packages](http://docs.oracle.com/javase/1.5.0/docs/guide/extensions/index.html). The standard extensions are a subset of the non-core APIs; the other segment of the non-core APIs obviously called the non-standard extensions, occupying the namespaces like com.sun.* or com.ibm.. The core … | |
Re: Please go through this. you can see a lot abut php from this thread. http://www.daniweb.com/web-development/php/threads/435023/read-this-before-posting-a-question Instead of going through any book,first it will be god if you go through [php manual](http://php.net/manual/en/). ![]() | |
Re: html5 is not compactible with all browsers.Check http://html5test.com/results/desktop.html for compactibilty with other browsers. Web Audio API is on experimental and currently only chrome and maxthon 4.0 browser supports it. | |
Re: check for updates than this issue will be resolved.Also don;t import R of **import android.R;** If it is there than just remove it. I also faced similar issue.I got it resolved by updating android version. | |
Re: The only way is separate this table into 2 tables and then use it.The first table contains user_id,user_name and second one contains user_id,score,credit.Now use join as suggested by pritaeas. Select u.user_name,count(c.score) from table1 as t LEFT JOIN table2 as c GROUP BY u.user_name,c.score HAVING c.credit >2 | |
Re: there are multiple errors in your program. 1) Spelling mistake while calling Cipher.getInstance() method in encrypt().It must be **DES** not **ES** 2) Cipher initailisation missing in encrypt() method. 3) Change in decrpty method .It is **ECB** not **EGB** .**Cipher cipher = Cipher.getInstance("DES/ECB/PKCS5Padding");** 4) static methods must be called directly by … | |
Re: There are many ways to solve this problem. One of this is: 1) Add unique key on certain values inserted if there is any.Now the record cannot be inserted rather catch exception for duplicate entry and handle exceptions. 2) On insert redirect page to another page ,so it will avoid … | |
Re: check if this solves your problem http://stackoverflow.com/questions/878756/php-session-not-working-in-php5 | |
Re: Better use AUTO_INCREMENT in table and while insert use all fields except that.This will result in auto save of id without much problem. Examples of auto increment can be seen here http://dev.mysql.com/doc/refman/5.0/en/example-auto-increment.html If you still want the id then you can use this query:- SELECT LAST_INSERT_ID(); | |
Re: yes it is possible.Before inserting check if size is less than 4.If it is 4 and you are inserting record then you can add notification from your php page. Another way is using trigger on insert.After inserting check the size and call any procedure once count reaches 5. | |
Re: > Warning > This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0. taken from php manual( http://www.php.net/manual/en/function.session-is-registered.php) > If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, use isset() to check a variable is registered in $_SESSION. For eg:- now use $_SESSION["name"]="iim"; … | |
Re: Both seems same except for capital latters in second example.In second one you are taking first letters as capital but not in previous example. | |
Re: String is a class in java(Be careful in using it as it is immutable). String objects are immutable.It is used as a data type in java. As stultuske suggested refer http://docs.oracle.com/javase/7/docs/api/java/lang/String.html . | |
Re: Refer this http://php.net/manual/en/function.printer-open.php This method will send output directly to printer you have specified. | |
Re: For the error: Warning: session_start(): Cannot send session cache limiter - headers already sent ... this kind of errors would occur, when the encoding of your script file needs to send some headers just after your script starts to execute, this happens mostly with the scripts using normal utf8 encoding. … | |
Re: post your code in which you have problem and add screenshot in thread rather than adding attachment to maximize responses and help. | |
Re: yes jorgem is correct. I just modified background color to make it clear.The page class div takes 25% of body.To represent this,i have used three different colors:- 1 body background color 2 div background color(changed width to 50%) 3 table background color <html> <head> <title>Bail Bonding</title> <style type="text/css"> #page { … | |
Re: Unit Tests are primarily written as a good practice to help developers identify and fix bugs, to refactor code and to serve as documentation for a unit of software under test. To achieve these benefits, unit tests ideally should cover all the possible paths in a program. One unit test … | |
Re: It depends on your requirement. * Oracle:- Oracle is the best database for any mission critical commercial application.Oracle follows almost 12 Codd rule given by Codd for RDMS.([https://forums.oracle.com/forums/thread.jspa?threadID=366022](https://forums.oracle.com/forums/thread.jspa?threadID=366022)) Following are few key features of the oracle database. Real Application Cluster (RAC) Data Guard for standby database Virtual Private Database Automatic … | |
Re: no....it will just take more memory as you are string null in array. Better go with arraylist and if you seriously want array as outout,then change aray to arrayList using toArray() method of List.MAke array of size of ArrayList. | |
Re: Check this to have clear understanding about change in gradient and browser compatibility:- https://developer.mozilla.org/en-US/docs/CSS/linear-gradient > The syntax of linear-gradient has evolved since the first Apple proposal implemented in 2008: > > -webkit-gradient(<type>, <point> [, <radius>]?, <point> [, <radius>]? [, <stop>]*) > In the original syntax, the same function was used … | |
Re: The SPAN element has very similar properties to the DIV element, in that it changes the style of the text it encloses. But without any style attributes, the SPAN element won’t change the enclosed items at all. > There is one difference between div and span. In standard HTML, a … | |
Re: Are you saying it is opening with DOS or file type is changed. If file is just opened with DOS but extension of file is mp3.Then just right click and select openwith and select any of media player Or you can change default opening of files with similar type.Right click,select … | |
Re: [Rules](http://www.daniweb.com/community/rules) is there in the footer of the page.What are you confused with ddanbe?? This is a clear sign of stress. :P | |
Re: what do you mean by sending mail to others peoples in dreamwever? There is a mail function in PHP as suggested by cereal.Make sure you have SMTP server configured if you want to use mail() function(). | |
Re: If you are using **HTML5** then just add "required" attribute in each of your form control.By adding required,it will be mandatory and form will not submit until you fill all the fields marked as "required". Second way is by javascript.Initially keep submit button diabled.Create a function that will check for … | |
Re: I agree with JorgeM.Until you provide your specific requirement,it is pointless to tell you appropriate book or site. As if your site is using HTML5 then you can directly do validation using pattern attribute,required attribute that is introduced in HTML5.Check [here](http://www.w3.org/TR/2011/WD-html5-20110525/common-input-element-attributes.html) the basic attributes added in HTML5 by w3.There are … | |
Re: html5 has introduced a new attribute pattern which will restrict from submitting of form until input matches with the provided pattern.It will remove the use of javascript.But till now there is no full support by browsers for html5 tag.Before using it check with your requirement with browser compatibility. <input type="tel" … | |
Re: Are you having issue in uploading any file?? If yes,then check the php.ini configuration file.Check if > file_uploads = On This allows HTTP file upload. Also check what is the maximum allowed size for upload.Increase it if you want to increase size of upload of each file. >upload_max_filesize = 2M | |
Re: Write a select query to check if textbox value is there in DB.If the number of record returned is greater than 0,then textbox value already exist Query will be something similar to:- SELECT count(*) from your_table where field = textbox.value Read more about count http://msdn.microsoft.com/en-us/library/ms175997.aspx So if it returns more … | |
Re: remove id filed as it is autoincrement So your query should look something like this $query = "INSERT INTO data (title, docname, version, Categroy, Sub_Categroy, Author, approval, documentdir, description, type, size, Updated_by, md5hash, Delete, date_added) VALUES ('$title', '$docname', '$version', '$Categroy', '$Sub_Categroy', '$author', '$approval', '$docdir', '$description', '$type', '$size', '$user', '$md5', '$Delete', … | |
Re: give your table structure? It seems your select query is returning multiple record.Try running the select query sepately in your mysql client and check its output. | |
Re: there is error in line 20 and 22.The variable name must be **options** that you have created above. Why are you using these two lines.Remove these two lines. option.text = '<?php echo $options;?>';//option text attribute option.value= "text"; This might solve your problem as you are adding option which is a … | |
Re: 1. get server OS name http://php.net/manual/en/function.php-uname.php 2. $_SERVER Indices to get ip of user http://www.php.net/manual/en/reserved.variables.server.php function _ip( ) { if (preg_match( "/^([d]{1,3}).([d]{1,3}).([d]{1,3}).([d]{1,3})$/", getenv('HTTP_X_FORWARDED_FOR')) { return getenv('HTTP_X_FORWARDED_FOR'); } return getenv('REMOTE_ADDR'); } 3. $_SERVER Indices to get server software running SERVER_SOFTWARE http://www.php.net/manual/en/reserved.variables.server.php output :-Apache/2.2.22 (Win64) PHP/5.3.13 | |
Re: Check this http://stackoverflow.com/questions/13063076/line-breaks-between-divs-render-a-space-how-to-eliminate-it-from-html you must use the css style **display: inline-block;** to remove break between two divs. | |
Re: yes it is possible to do. I am hoping that menu is coming from Database,if not then its good to create dynamic menu from DB if you want it to more customizable. table structure can be memu(id int not null AUTO_INCREMENT,display varchar(20) not null,isMenuItem tinyint(1)) Now query to get value … | |
Re: There are few changes that you need to do. 1. Instead of using array, use string. 2. If you select one radio, you can select second also. Change the name of radio button. Both radio must have same name to make sure only one is checked. I have not done … | |
Re: use date_format() method example of this is given below.Read [manual](http://php.net/manual/en/function.date.php) if you want to change some other format. <?php echo date("Y-m-d H:i:s"); echo "<br/>"; $date = new DateTime(date("Y-m-d H:i:s")); echo date_format($date, 'D, F jS, Y, g:i A'); ?> | |
Re: Take a look at [this](http://msdn.microsoft.com/en-us/library/ie/ms536651(v=vs.85).aspx) about the trick to open url in different ways using window.open() method of javascript. these are four options to open url **_blank** :The url is loaded into a new, unnamed window. **_parent** :The url is loaded into the current frame's parent. If the frame has … | |
Re: Dhani,your code is fine.It will draw polygon with the coordinates you have provided.I just chcked your code by putting x=400 and y=200 radius 10,it is drawing as expected.Why it is not working for you??? | |
Re: It depends on how **creative** and **innovative** you are. You can even create good logos in simpllest tool like ms paint or complex tool like photoshop. | |
Re: check this http://drupal.org/node/130231 | |
Re: @pritaeas and @Reverend Jim -You missed last line > An example of the rows for an invoice that does not have a "CC" stockNumber in any of the rows might be like this: So i think so this must be solution to spowel4 problem.From the problem i think he want … | |
Re: I too will recommend the same suggestion. Instead of adding search element in li, create search in another element and then right float element to site right | |
Re: please describe the exception.What excetion you are getting,then only we can help you to solve it. | |
![]() | Re: @lastMitch again take care....if your string doesn't contain your delimiter,you will get error notice like i explained yesterday for list.use array_pad() to make sure array size is not less that two. As for symbol that you want to use as a delimiter,i would suggest that before deciding the symbol make … ![]() |
Re: take a look at http://adityangoyal.blogspot.in/2013/04/importexport-mysql-database.html .I have explained how to import and export mysql database. * As what i can see,the error you are getting is because you have to set the path of mysql.exe in your system environment variable. Go to System properties->Environment variable.In system varaiable->path.At end add semicolon … | |
Re: >return null; why are you returning null.It was expecting Connection object to be returned but you are always returning null. Change this to **return con** Moreover change your approach.Database connectivity must not be on presentation layer.Separate your business,data and presentation layer.More better approach will be to use **MVC architecture.** | |
Re: main is special since it has to be present to start the program, so it's required to have a fixed signature. Under the hood, the java runtime looks for the magic signature to start the program. The magic signature is **public static void main(String[] args)** So your code must look … | |
Re: >could you give me the concepts on how to build a login system and user registration system There are certain points that you might take into consider while creating your registration system:- * Create anti-spam log system by introducing captcha or something similar to stop spam bots to flood your … |
The End.