545 Posted Topics
Re: hi nitin, i would like to share my experience,instead of taking response about work and pay,just have an experience with these companies and with time you will be matured enough to get knowledge about companies. There is a blog that collected data from glassdoor. have a look in this http://www.businessinsider.com/the-worlds-highest-paid-software-engineers-work-for-these-25-companies-2013-4?op=1 | |
Re: add "C:\WINDOWS\system32;" to the start of my PATH environment variable, like this: * Log in with Administrator priviledges. * Right-click "My Computer" & select "Properties." * Click "Advanced" tab. * Click "Environment Variables" button. * In the "System variables" box, scroll down to "PATH" and highlight it. * Click the … | |
Re: these two solutions might solve your problem http://www.mkyong.com/tomcat/tomcat-javalangoutofmemoryerror-permgen-space/ http://stackoverflow.com/questions/15523510/permgen-space-error-when-deploying-tomcat-7 | |
Re: 1) Yes you can import data from mysql and use it in json format. 2) For your 2ns problem,this might solve your issue http://stackoverflow.com/questions/7497980/i-want-to-add-jsonobject-in-jsonarray-and-that-jsonaraay-included-in-other-jsoob There a lot of sites for json jquery .Take a look at 1) http://api.jquery.com/jQuery.getJSON/ 2) http://api.jquery.com/jQuery.parseJSON/ Take a look at http://api.jquery.com/ and read the jquery api … | |
Re: just add onclick event on img. <img src="http://placehold.it/300x300" class="placeholder" onclick="window.location.href = 'http://www.google.com'"> | |
Re: please can you explain your doubt with problem as it is a bit confusing for me to know your exact problem. | |
Re: its very simple ,use having clause.Have a look at http://dev.mysql.com/doc/refman/5.0/en/group-by-extensions.html SELECT user8, concat(round(count( * ) *100 / (SELECT count( * ) FROM `lm_users`)) , "%") as percent FROM `lm_users` GROUP BY user8 having percent>0 **Please mark thread as solved if your problem is solved.** | |
Re: As Broj suggested don't use mysql extension instead use PDO or mysqli.It is deprecated as of PHP 5.5.0.Refer [this](http://www.php.net/manual/en/intro.mysql.php) > This extension is deprecated as of PHP 5.5.0, and is not recommended for writing new code as it will be removed in the future. Instead, either the mysqli or PDO_MySQL … | |
Re: As from http://stackoverflow.com/questions/13115880/how-to-deploy-war-file-in-eclipse-to-tomcat-server > ok I figured it out my self. I searched the google for > > SEVERE: Error filterStart > and found, check the localhost_yyyy_mm_dd.log file for more information about error. > > In that file there was an error called java.lang.UnsupportedClassVersionError. The reason for that was my … | |
Re: > 1) Warning: fopen(/home/easytyr1/public_html/system/logs/) [function.fopen]: failed to open stream: Is a directory in /home/easytyr1/public_html/system/library/log.php on line 12 From http://www.php.net/manual/en/function.fopen.php#105465 it seems you are using something liken,please change code according to this. > > <?php > $fplog = fopen('ipn.log','a'); > ?> > > After the migration, however, I received the following … | |
Re: @spyindiarahul:-Don't do this,if you are in search of true love. > Women want to be wooed, so buy her some nice jewelry, go out to places you both like, have some fancy dinners, and when she is in her best mood you ask the question. You need to talk to … | |
Re: use subquery to get total records and then calculate percent by using count of data for each state using group by clause. SELECT user8, concat((count( * ) *100 / (SELECT count( * ) FROM `lm_users`)) , "%") AS percent FROM `lm_users` GROUP BY user8 | |
![]() | Re: 1) have you added die() function in your database connectivity to check if you are able to connect to database. Also add die() statement in line 9. $result=mysqli_query($con,$login_query) or die(mysqli_error()); This will help you to know if there is any error in database connectivity or your script. 2) Also,after line … |
Re: yes gusano79 is right.The error is because of line 21 `price = input.nextDouble();`. Change this to `price = Double.parseDouble(input.nextLine())` As it takes next line as category.To check this,just check the value of category and you can see that or start your code in debug mode and put breakpoint before line … | |
Re: very simple.Just call these scripts on page load of your homepage.Write onload event and call the script that you want to call whenever user comes to your desired page. | |
Re: To store image you can have a separate table in your Database.For eg:- User[**user_id**,display_name,*pic_id*,email_id etc] Profile_Pic[**pic_id**,file_type,file_location,file_name,file_size] Now to insert file refer [this](http://www.w3schools.com/php/php_file_upload.asp) or [this](http://www.tizag.com/phpT/fileupload.php).While inserting save corresponding data detail in database to map pic with user profile. To display pic,EvolutionFallen has already provided solution. | |
Re: are you getting error : header already sent error??? OR > setcookie() defines a cookie to be sent along with the rest of the HTTP headers. Like other headers, cookies must be sent before any output from your script (this is a protocol restriction). This requires that you place calls … | |
Re: can you please tell what data was there in $viagens['HoraPartida']. Because until that we can't tell solution to your problem. | |
Re: instead of this, choice = sc.nextInt();//line 141 try with using, choice = Integer.parseInt(sc.nextLine()); As per my thinking,the error is because of this,as when you press enter after entering number,that is what is taken as filename.Changing into this will solve your issue here. | |
Re: yes stultuske is right. But if you want some executable file,then you can simply create executable jar . | |
Re: your question is confusing,you said in example to get room with available 2, how the result can be (1,lala1) ?? Please confirm your use case. As for now,i think that you can use map(key-value pair),with room-name as key and available as value. | |
Re: Might be dani playing with some code, resulting in default date of 1st Jan 1970. For eg,some thing leading to this Somehow time since 1st Jan 1970 field,integer to count time was coming null,leading to that issue <?php echo date('d/M/Y',null); ?> | |
Re: i am not sure about this extension,but if the question is just about creating then you can just go to File->New->Other then write the file name with extension. | |
![]() | Re: Are you doing it with any programming language like java/php. If yes,then simpler way is to create data transfer object and set whatever value you want to save and save to all columns.set default value for all columns.If value not set,then data will be inserted with its default value. ![]() |
Re: can you tell the line number in which you are getting error??? | |
Re: This is the expected behaviour of **autoincrement**.Because ,if you delete any row from between,then do you want that all row id must be changed and correspondingly there mapping tables.No right. If you want to add data to id just greater that the maximum value.In that case,instead of using auto_increment,use query … | |
Re: yes even i agree with diafol. As for status,i think so you can divide it into two table,store status_id(FK to status table) as you suggested and status table must look like this.As it must be obvious for from database to know the status.:- **status** status_id int not null status_name varchar … | |
Re: Yes DarkLighting7 is right that between every commands there must be space.Add space before **values**. But there is one error in your code.Integer must not be enclosed with quotes.Also i think so escape symbol is not required here. statement.executeUpdate("INSERT INTO incident" + "(ticket_no, date, description, priority,state,follow_up,status) " + "values('" + … | |
Re: There is an event ,onunload in javascript that is called when the window is closed.You can fire this event to invalidate the session.Add this event on the body,so whenever your html body is unloaded,this event is fired,and inside this event,invalidate session. The other way around is as Atli discussed above.In … | |
Re: It's already mentioned in the [link](http://php.net/manual/en/function.mysql-escape-string.php) you have provided > 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: Most probably error is due to variables not working inside quotes. try this:- $query = "INSERT INTO mailing (`test`) VALUES ('".$insert_csv['first_name']."')"; If still it is not working do let us know the error you get b adding die statement after running query. ![]() | |
Re: Never use `$result='SELECT username FROM members WHERE username = "'.$myusername.'" AND id = '.1.' LIMIT 1';` This statement can be easily hacked using mysql injection. For eg:- if you enter in your username as " or "1"='1 Try to use prepared statement. | |
Re: http://stackoverflow.com/questions/9032204/how-to-read-multibyte-characters-from-a-csv-file-using-php might help in solving your issue. | |
Re: Now accrding to your instructor,there will be a class Student with constructors that can set value of instance variables. Now you have to make your instance variables private so that it is not accessible directly oustside the class.Create accessors and mutators to access instance variables. (The role of accessors and … | |
Re: As stated by harris,please show up your code to expect better help.Most propably the way you are using this is wrong. There are three ways of inserting a style sheet: * External style sheet <head> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head> * Internal style sheet <head> <style> hr {color:sienna;} p {margin-left:20px;} … | |
Re: http://www.ibm.com/developerworks/library/l-lan/index.html might help you. | |
Re: I think so syed is checking the file in any host provided space.There on click on any file,it will be downloaded.There is one more option called preview(as i can remember),on click of that you can see the page. Just try to first work on local system then go to your … | |
Re: Take a tour to http://en.lmgtfy.com/?q=html+comments .This will help you to solve many problems in future. ![]() | |
Re: > The foreach construct provides an easy way to iterate over arrays. foreach works only on arrays and objects, and will issue an error when you try to use it on a variable with a different data type or an uninitialized variable. So according to above quote from PHP [manual](http://php.net/manual/en/control-structures.foreach.php),your … ![]() | |
Re: James are you sure that it is for **final** static. Because as per my view it is not necessary to be a final(static variables are like instance variables, if you don't initialize explicitly, they will get default value, but for the final you have to explicitly initialize them with a … | |
Re: qoute from [php manual](http://php.net/manual/en/function.session-register.php) > This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0. instead of session_register(),use $_SESSION,see a small example below. <?php session_start();//don't forget to start session before using it $_SESSION["name"] = "IIM"; ?> | |
Re: yes zagga you are right. You can directly like directly like javascript in onclick event(if it is a single line ,without calling function. I have been using **<button onclick="window.location.href='myurl'">Next</button>** since i was working on IE8,and still all browsers supports it. For an example ,check this <html> <head><title>HREF</title></head> <body> <input type="button" … | |
Re: Error in below code.Please try not to mix javascipt with php. // This is a PHP code outputing Javascript code. echo '<script language="JavaScript" type="text/javascript">'."\n";//error echo 'var parDoc = window.parent.document;'; if ($result == 'OK') { echo 'parDoc.getElementById("picture_error").innerHTML = "";'; } else { echo "parDoc.getElementById('picture_error').innerHTML = '".$result_msg."';"; } if($filename != '') { … | |
Re: No it cannot be .Might be,you are using a separate file for database connection and in your index file you are missing to include that file. | |
Re: if it it regarding opacity,then you can use #main { /* IE 8 */ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* IE 5-7 */ filter: alpha(opacity=82); /* Netscape */ -moz-opacity: 0.82; /* Safari 1.x */ -khtml-opacity: 0.82; /* Good browsers */ opacity: 0.82; } As for background :rgba is concerned,not all browsers support it.you … | |
Re: <html> <head> <style type="text/css"> ul#level-one{ width: 83.2%;/*gjatesia e Menuse kryesore*/ height: 36px; position: relative; list-style: none; line-height: 36px; background: #f0f0f0 url("images/menu-back.png") repeat-x bottom left;/* for non-css3 browsers */ background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#f0f0f0)); /* for firefox 3.6+ */ visibility: visible; z-index: 2; left: 10px; background-color: -moz-linear-gradient(; background-image: … | |
Re: you can use iText jar to create pdf.Download and read documentation of iText jar from [here](http://itextpdf.com/).In case of any issue n using it revert back with your query and your code. | |
Re: From php manual > In PHP, you can also write 'else if' (in two words) and the behavior would be identical to the one of 'elseif' (in a single word). The syntactic meaning is slightly different (if you're familiar with C, this is the same behavior) but the bottom line … | |
Re: Refer http://www.seomoz.org/ugc/7-content-archetypes-that-generate-natural-links It gives ways to generate natural links. Add proper and eye-catching matter that is unique. It will surely help to build natural links. | |
Re: alias name has several advantages. 1. The readability of a QUERY(MOSTLY USED WITH SELECT STATEMENT) can be improved by giving a table an alias, also known as a correlation name or range variable. A table alias can be assigned either with or without the AS keyword: * table_name AS table … |
The End.