2,040 Posted Topics

Member Avatar for k_manimuthu

If I understand your problem correctly, you simply need to alias your output column name... SELECT function_name as base_function_name FROM base_table UNION SELECT function_name as firstcall_function_name FROM firstcall_table UNION SELECT function_name as secondcall_function_name FROM secondcall_table

Member Avatar for diafol
0
249
Member Avatar for kathymac

You may take a look at this [post](http://stackoverflow.com/questions/391005/convert-html-css-to-pdf-with-php). It gives you an idea of what other script you need in order to convert it from PHP to PDF. If you really want to implement it yourself, it will be a long process; besides, you will need to know how to …

Member Avatar for Aeonix
0
355
Member Avatar for phoenix254

At line 4, it seems to be a syntax error already. Please take a look at [here](http://socket.io/docs/#). You need to specify a server or port for the listening before you set its listening port.

Member Avatar for Taywin
0
263
Member Avatar for Lev_2

If you read the module [documentation](http://perl-win32-gui.sourceforge.net/cgi-bin/docs.cgi?doc=reference-options), you will see that the developer hasn't decided the functionality of `-vscroll` option yet... Therefore, I can't tell you any further info.

Member Avatar for Taywin
0
402
Member Avatar for Sophia_1

I would actually stop at line 17 first. You declared value for `$uploaded_size` variable to an empty string, and then compared the value with an int? It means your variable is equal to 0 by default... You need to assign the real size of the supposed to be uploaded first …

Member Avatar for Taywin
0
561
Member Avatar for UK-1991

Please be careful with your current script because your page is vulnerable to SQL injection. Your script is using the input value from client ($_GET[...]) directly which means someone could simply inject SQL statement and cause a big mess in your database... Regarding to your latter question, please take a …

Member Avatar for Taywin
0
261
Member Avatar for daisyy

You may look at this [post](http://stackoverflow.com/questions/8484722/access-denied-for-user-rootlocalhost-while-attempting-to-grant-privileges) which may help resolving your issue.

Member Avatar for Taywin
0
2K
Member Avatar for Hamis_1

The reason the page is loaded because you are using `this.form.submit()` which means you submit the form to the server, and then reload the page. What you need is AJAX function in place of `form.submit()`. Do you know much about AJAX?

Member Avatar for Taywin
0
23K
Member Avatar for lewashby

The issue is from the design layout... It is specified for a fix setup of display... You could add `min-width` to the table, but it won't solve all the problems though...

Member Avatar for Taywin
0
162
Member Avatar for Habib_7

Well, there are other script languages that you do the work for you... You need a server to run the script for you without opening a browser though.

Member Avatar for Taywin
0
565
Member Avatar for deibaby03

You just showed us the database schema, but you didn't show us how you enter it (i.e. SQL statement used in preparing). What is your code? PS: The data entry is simple. PSS: The error is straight forward. It meant you were trying to INSERT a record without specifying `strEntCode` …

Member Avatar for Taywin
0
249
Member Avatar for AntonyRayan

If the element you are binding is a INPUT tag with type of checkbox, then you need to use `a.checked` instead of `a.value`. I don't know how you compose your HTML so can't say more.

Member Avatar for diafol
0
123
Member Avatar for gtcorwin

For this type, using match with regular expression should be faster. You may look at how to do it [here](http://www.purplefrogsystems.com/blog/2011/07/pattern-matching-in-ssis-using-regular-expressions-and-the-script-component/). However, it all depends on your experience in regex as well.

Member Avatar for Taywin
0
119
Member Avatar for minteks

Another hint. 1) You need to modify the `getTrackInfo()` method. Please **read** the requirement of what value the method should return. Of course, it must not be **null**. 2) The requirement states the format of return value. Currently, you have only the name of the track if selected. you still …

Member Avatar for Taywin
0
262
Member Avatar for wikit

There are so many ways to deal with this. If I were to implement it, I would break this down into multiple tables (for future expansion). Tables 1)users -- user_id, other_fields 2)items -- item_id, other_fields 3)user_items -- user_id (foreign key), item_id (foreign key), status_id (foreign key) 4)statuses -- status_id, description …

Member Avatar for diafol
0
257
Member Avatar for playagain
Member Avatar for NuGG
Member Avatar for samantha2015

tiny blob allows up to 256 bytes (unsign). Your string data is 29 characters which may require larger space than that size? 1) Why would you save a date data in tiny blob instead of date itself? If you want it to be encrypted, then alter the database schema to …

Member Avatar for jwenting
0
679
Member Avatar for johnywhy

To do so, you must attach the `onmouseover` event to the element on the top of your page. In other words, you must design your page layout, such that your page is divided into sections. Once you have a layout, then attach the event to only element you want the …

Member Avatar for almostbob
0
258
Member Avatar for divinity02

A quick answer for your random number generator... You may start with [Random](http://docs.oracle.com/javase/7/docs/api/java/util/Random.html) class from Java...

Member Avatar for newcoder310
0
273
Member Avatar for koneill

Errr... You are using old and some even deprecated way of HTML scripting... Also, you are using `document.write()` which is to rewrite the whole page with the content you specify... What you should do is to have an area of display in place in the page for each content you …

Member Avatar for Akash_Soni
0
272
Member Avatar for zelrick

It is possible to parse data, but it may be a nightmare depending on the following... 1) Would data format be correct all the time? 2) If not, what do you have to deal with any improper format? 3) Could you simply ignore/dump the improper data format? If you could …

Member Avatar for zelrick
0
2K
Member Avatar for c1ockwerk

You may need to read [this](http://www.mysqlab.net/knowledge/kb/detail/topic/performance/id/5114) for a bit more understanding on key_buffer. The article also suggested a way to check your DB status and optimize it.

Member Avatar for Taywin
0
99
Member Avatar for babir

If you are new to Ajax, you shouldn't try to jump start from the top of the hill! You need to learn how [Ajax](http://www.w3schools.com/ajax/default.asp) works and such. If you try to start from the middle of knowledge, you will leave with half baked knowledge which leads to bad scripting... At …

Member Avatar for Taywin
0
236
Member Avatar for saurabh.mehta.33234

To OP, I guess you may have to go back to your professor and ask why this code is written the way it is. May also ask when was this code written? It looks deprecated...

Member Avatar for Taywin
0
384
Member Avatar for joshmac

There is no way to debug from the script. What you need to do is to find where the error occurs (in what line number). You may test your page on Firefox which has Firebug installed. This way, you would see which line that actually causes the error, and then …

Member Avatar for Taywin
0
576
Member Avatar for Tinnin

Your `YEARWEEK()` function is the problem. This [post](http://dba.stackexchange.com/questions/21865/are-these-mysql-queries-efficient) should answer what you need.

Member Avatar for Taywin
0
309
Member Avatar for surya55

What do you mean by the "right" example? I did a quick google and I found [this](http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/DemonstratesTreeViewer.htm) and [this](http://www.eclipse.org/articles/Article-TreeViewer/TreeViewerArticle.htm?PHPSESSID=4d48764999a9cb66a7fd58a954ef2131) examples...

Member Avatar for Taywin
0
113
Member Avatar for Ojaswi_1

The answer is "YES it is possible." However, is it possible for you to implement? My answer would be "I don't know." I have no idea how skillful you are, what features you want in a search engine, what type of content your engine can search, what type of medium …

Member Avatar for Taywin
0
256
Member Avatar for phoenix254

As diafol said, there is NO WAY to prevent CSRF and/or XSS from input values. The rule of thumb, NEVER trust any input from user. You must SANITIZE the value if security is concerned. Either way (`document.getElementById()` or `$('#id/.class');` is the same. When you are talking about `bind data`, what …

Member Avatar for diafol
0
226
Member Avatar for centenond

If you ever start thinking about optimization, this [paper](http://publications.lib.chalmers.se/records/fulltext/147114.pdf) seems to be a good (and quite easy) one to read. :)

Member Avatar for centenond
0
304
Member Avatar for rchawdhari

The question is why do you need to create `view` in Rails? You should not need to be manipulating with database schema at all but rather use Rails' object to do that for you. Weird...

Member Avatar for rchawdhari
0
631
Member Avatar for darren2005

Please be careful when you debug scripts and use `return` command; especially inside a loop. The reason is that it will exit the loop right after the return and you may miss what you are trying to do. To debug inside a loop for each loop value, you should use …

Member Avatar for darren2005
0
196
Member Avatar for MrXortex

This is an old post but I just want to answer just in case anyone else has the same issue... In is application, you expect `current_user` as a global variable which is somewhat OK. However, you didn't tell Rails that you want the object to be loaded from a session …

Member Avatar for Taywin
0
631
Member Avatar for AntonyRayan

If you are dealing with plan text, split the string using "-" as delimiter (or use it as regEX). var date1 = "08-15-2015"; var date2 = "08-10-2015"; var mdy1 = date1.split("-"); // should get ["08", "15", "2015"] var mdy2 = date2.split("-"); // should get ["08", "10", "2015"] Then compare each …

Member Avatar for Taywin
0
201
Member Avatar for kavithakesav

In order to keep track of number of visitors, you need something to hold on the counter value as scru said. So pure JavaScript can't do it because a client browser is local to the client machine. Also, you need to determine how you count it. You should not increase …

Member Avatar for john58975
0
632
Member Avatar for Pobunjenik

You may need to use Thread class in order to simulate an animation. Because of your loop, you won't see anything much in GUI. Or a very simple way is to use actionPerformed() to do the job for you ([example](http://www.clear.rice.edu/comp310/JavaResources/animation.html)).

Member Avatar for sishenyelang
0
1K
Member Avatar for Tom_11

Wrong category you are posting... You need to go to 'Web Development' and then 'PHP'. What is your current output by the way? And keep popping up form isn't a good idea because it is difficult to maintain. How about hover over a date and it display time available, then …

Member Avatar for suresh43
0
183
Member Avatar for Mr.M

>Opening the file with the append flag specified solves the issue of overwriting. That makes sure the new data is added to the end of the file. Be careful, the idea does not guarantee to prevent the concurrentcy issue. Appending a file is not a solution in anyway (regardless how …

Member Avatar for JamesCherrill
0
11K
Member Avatar for fireburner29

If you look at how the CSS work, you would see that the width of smoke image of CSS is being set to 250px. The JQuery is used to display the smoke, but not sizing it. You have to update the viewport .smoke in CSS yourself. Increase the width, margin-top, …

Member Avatar for fireburner29
0
1K
Member Avatar for gretty

Hmm... Parsing HTML text is not easy. I am not sure what's the purpose of your Java class? I would assume that you are printing out tag and its value??? How would you print out a nested value in a tag then? What would you do with ill-formatted HTML text? …

Member Avatar for olupotd
0
201
Member Avatar for surya55
Member Avatar for rubberman
0
982
Member Avatar for icanbeafrog

From your requirement, it is unclear how you implement your `Coin` and `Pocket` class. What is in your `Coin` class? I assume that your `Coin` class constructor is similar to... public Coin (String type) { if (!isValidCoinType(type)) { // Throw an error or do something // The isValidCoinType() method can …

Member Avatar for JamesCherrill
0
162
Member Avatar for CoderGuy101

I am not sure what your program can do. Is it just a simple timer but choosing what you want to cook? If so, I am thinking about Microwave-like interface... Nothing complex at all.

Member Avatar for JamesCherrill
0
150
Member Avatar for jean_5

So far, I could think of this... SELECT region, sum(case when idDescription='Right' then 1 else 0 end) as idRight, sum(case when idDescription='Left' then 1 else 0 end) as idLeft FROM tab GROUP BY region But that is only the first 3 column you would get... Not have time to tinker …

Member Avatar for Taywin
0
106
Member Avatar for juniper.root

If you are talking about printing out to HTML as a file and it can be opened using a browser, it may be because a browser usually tries to correct the HTML and can display (almost) correct. The problem with premature header could be from not closing scope or incorrectly …

Member Avatar for 2teez
0
233
Member Avatar for davy_yg

As hericles said, you are using 2 different variables in comparison `$data2['maxwidth'] v. $data2['maxwidth_bn']` and `$data2['maxheight'] v. $data2['maxheight_bn']`. There is no way to check whether both your variables are the same as its counter part.

Member Avatar for Traevel
-1
130
Member Avatar for manalibhadula

Here is my guess... You did NOT create a new Map object inside your loop but rather replaced the instance's values. Then you added the object to the list. As a results, the list is added with the same reference to the same object in the loop. You need to …

Member Avatar for manalibhadula
0
225
Member Avatar for Stefce

A quick note on line 9 - `if(!empty($howMuch) || !empty($where)) {`, this will always be true unless both variables are not defined (or empty). Are you sure you want that? Shouldn't it be `&&` instead of `||`?

Member Avatar for Stefce
0
732
Member Avatar for bolfescu

You should update and switch to `mysqli` or PDO format... Besides, I see no need of select all (`*`) if you need only category, but I don't know your DB schema, so I am not going to make more comment on that. Anyway, you need to obtain `$qry` and then …

Member Avatar for Traevel
0
179

The End.