-
Began Watching retrieve data from SQL tables
Hi guys, I'm in a bit of a situation here and I was wondering if anybody has any suggestion. Basically, I need to retrieve some data from 2 or perhaps … -
Replied To a Post in retrieve data from SQL tables
Regardless of Entity Framework or your data model, the select query could be something like: SELECT expenseCode.ExpenseId,expenseCode.Cost,expenses.ExpenseType FROM expenseCode INNER JOIN expenses ON expenseCode.ExpenseId=expenses.Id; Which you can put in a … -
Replied To a Post in set focus
I don't know what you have and I don't know what you want, so I can't help you with anything other than general usage. `$("#myTextbox").focus();` will set focus to an … -
Began Watching set focus
How to focus cursor using jquery for text box, while moving to next field , if it is empty, -
Replied To a Post in set focus
"Focus on a textbox while moving to the next textbox if it's empty" You mean as in focus on the first non-empty textbox? > while moving to next field Moving … -
Began Watching need help w/passing info to php
Hi, I could use some help passing a function or its variables to a php file. Since JS is so verbose I'm posting succinct code to demonstrate my path. Everything … -
Replied To a Post in need help w/passing info to php
Several things I'm noticing: You seem to be mixing JavaScript and HTML, some of it might never run. <input id="rNo" type="radio" name="YesNo" value="No" onclick="this.form.submit();"> <input id="rYes" type="radio" name="YesNo" value="Yes" onClick="location.href='http://localhost/home/calcprint.php';" … -
Replied To a Post in Proportionally fit image into Container ?
If the container has a different ratio than the image then either the div will have whitespace or the image will be stretched yes. I changed the **.one** class to … -
Began Watching Database performance from php calls
Hi everyone, I'm wondering about a potential problem I might get. My problem is lets say I have 2 tables one called **speakers** and **clients**. In the client table the … -
Replied To a Post in Database performance from php calls
Are you still in a position to change the table structure? What you are describing sounds like a one-to-many (or many-to-many) relationship between speakers and clients. You could avoid saving … -
Began Watching A little help?
I'm making a program that will let you access a system via encrypted code from a USB. But I can't seem to figure out how I would go about making … -
Replied To a Post in A little help?
LOL > I just figured it out. So I just solved my own question. Guess which [question](https://www.daniweb.com/software-development/threads/490097/do-i-have-some-sort-of-programming-talent) about you I just solved? I now know you were telling the truth … -
Began Watching Java db connection (not connecting)
Hello, I am trying to connect to a hosted database on netbeans(java). So far I have the following: Connection con = null; Properties conProps = new Properties(); conProps.setProperty("user", "user"); conProps.setProperty("password", … -
Replied To a Post in Java db connection (not connecting)
Are you hosting it yourself? Check ports and whether the host allows remote access to a MySQL database. Also check you have the proper user privileges in place (GRANT). -
Began Watching I need a way to pass an address and get back geo coordinates
Here's what I need to accomplish. So any help on this would be absolutely magnificent. I've programmed in WinAPI32, but for fast development I'm looking to use QT IDE in … -
Replied To a Post in I need a way to pass an address and get back geo coordinates
How accurate do the address coordinates need to be? You could download [an open source dataset](http://download.geonames.org/export/zip/). -
Began Watching Can't get debugger to work
I added a Breakpoint here: public class JavaApplication8 { I added another here: public static void main(String[] args) { Finally, I added one more here: Scanner input = new Scanner(System.in); … -
Replied To a Post in Can't get debugger to work
> I want to debug this, so I can learn how the debugger works. "The debugger" You might want to specify what IDE you are using next time, there's not … -
Replied To a Post in Altering css
No worries, mods *cough* Americans *cough* are sensitive. But more likely they're just worried Google will make a fuss. > he expected more in the screen shot Perhaps for question … -
Began Watching How to display image or data if I choose one item from dropdown list
I have category table and product table.I retrieved item name from category table.Product table has id,image,title,category,description.If I choose one item from category,I want to display image concern with it. This … -
Replied To a Post in How to display image or data if I choose one item from dropdown list
> This is my code. Well there's your problem. Also, no idea which image you mean. You want to show a product image when you select a specific category? There … -
Began Watching Help with assignment
Hello i have been working on my assignment for java for a while now and I was hoping I can get some help. My teacher makes us run test cases … -
Replied To a Post in Help with assignment
Some things I'm noticing: There are no test cases (Unit Tests), but I'll assume you meant "it doesn't work". ` {import` Is that just a pasting error? Can't have a … -
Began Watching Altering css
hya all i wonder if someone can help me in trying to make the text are in my website transparent so the image in the background can be seen in … -
Replied To a Post in Altering css
.content1{ opacity: 0.4; filter: alpha(opacity=40); } The lower the number, the more see through. The second line is for IE compatibility. You can add it to the existing `.content1`. If … -
Replied To a Post in Proportionally fit image into Container ?
I thought: given an arbitrary width (whether it comes from a div, canvas or in my example 200) adjust the height proportionally, write it to a canvas of the same … -
Began Watching Do I have some sort of programming talent?
Hello. I'm a thirteen year old programmer. I find it strange how I can learn the core of a language in about half an hour. No joke. I've been programming … -
Replied To a Post in Do I have some sort of programming talent?
> I'm a thirteen year old programmer. From your linkedin you posted on your profile:  You "enrolled" when you were 9? You'd think there would have been something … -
Began Watching If condition
update_image.php if($image_width > $data2['maxwidth'] or $image_height > $data2['maxheight']) { echo '<br>'."Image is too big".'<br>'; echo $image_width.'>'.$data2['maxwidth_bn'].'<br>'; echo $image_height.'>'.$data2['maxheight_bn']; exit(); } Successfully upload pictures Image is too big 995>1000 229>240 I … -
Replied To a Post in If condition
if($image_width > $data3['maxwidth_bn'] || $image_height > $data3['maxheight_bn']) That means: **IF** the image width is **larger** than max_width **OR** the image height is **larger** than max_height, the image is too big. … -
Began Watching display records which does not match mm/yy/dddd pattern
The above date is stored in varchar type i want to display the error date for rectification. so i tried NOT LIKE '__/__/____' but it didnot work. I want to … -
Replied To a Post in display records which does not match mm/yy/dddd pattern
You could use MySQL's [REGEXP](http://dev.mysql.com/doc/refman/5.7/en/regexp.html#operator_regexp) to search for that pattern. -
Began Watching select option in angular js from json file
Hello, I want to show select list in angular js Data is in .php file in json format as below: `["{\"0\":\"949\",\"user_id\":\"949\",\"gslab_id\":\"GS-0835\"}","{\"0\":\"493\",\"user_id\":\"493\",\"gslab_id\":\"GS-0451\"}","{\"0\":\"338\",\"user_id\":\"338\",\"gslab_id\":\"GS-0322\"}","{\"0\":\"961\",\"user_id\":\"961\",\"gslab_id\":\"GS-0843\"}","{\"0\":\"444\",\"user_id\":\"444\",\"gslab_id\":\"GS-0409\"}"]` what I have written till is in my index.php … -
Replied To a Post in select option in angular js from json file
And if you change `$scope.contents` to `$scope.content`? -
Replied To a Post in Proportionally fit image into Container ?
If I use var canvas = document.getElementById('myCanvas'); var context = canvas.getContext('2d'); var imageObj = new Image(); imageObj.src = 'img url snipped'; imageObj.onload = function() { var width = 200; var … -
Replied To a Post in Update user data
No, read it again. The other one of the two. You're on your own now though as far as I'm concerned. I'm not here to write your code for you, … -
Gave Reputation to Taywin in Update user data
>And those who see this question just do it in the code dont post some tips and tricks of how to do it ! This is rather rude to me. … -
Began Watching 3 column page layout - how to get the functionality
The project i am currently working on has an HTML/CSS layout which consists of 3 columns, the first contains a menu to access the various pages. When one of these … -
Replied To a Post in 3 column page layout - how to get the functionality
You mean a partial view? Include them with `@Html.partial()` in your cshtml (if you're using the Razor view engine anyway, not sure about the use with other engines). You can … -
Replied To a Post in Update user data
$user_mBalance = getUserData('payCheck'); That is the balance of the **current** user, i.e. `$total`. Just do the exact same for the **receiving** user. Same query but with a different ID. That … -
Replied To a Post in Sql query problems
If you're new you should be willing to learn and follow tutorials. What's the point in one of us converting your format for you? You're not saying you're having a … -
Replied To a Post in Update user data
Where do you fetch `$total2`? It needs to be the amount already known in the database, so you need to fetch it with a query similar to `$getUser_payCheck`. But that's … -
Began Watching Update user data
Hello i need little help overhere im confuzed getting user data from mysql database i want to update the `payCheck` column in the database but that column is located in … -
Replied To a Post in Update user data
Get the `total` for the receiver with a query (similar to line 14), then add the `howMuch` to `total` and do the update query (similar to line 25) again but … -
Began Watching Trivial Question...
... but I can't for the life of me figure it out. I have an object that comes from an application which has a Status property, and within that property … -
Replied To a Post in Trivial Question...
Anything you can tell about the inner workings of that object? Because if I try something like: var Object = function(){ this.Status = { Name : "foo" }; }; var … -
Began Watching Sql query problems
hy, i'm having a big problem, thats because i'm new in this, i have two qrys unfort doesnt work if(isset($_GET['id'])){ $id=$_GET['id']; $qry=mysql_query("SELECT *,replace(category, ',', ' ') as category FROM articles … -
Replied To a Post in Sql query problems
Read Taywin's last part again: > I do not want to modify your script because it is using bad format already If he gave you the answer **before** you modified … -
Replied To a Post in Proportionally fit image into Container ?
A little more than that. The image has to be resized and drawn onto the canvas, then you can export the canvas to a data url with that function. Perhaps … -
Replied To a Post in unable to save data in php table
Well you should definitely use an UPDATE instead of a SELECT query then. Thing is, PHP runs on the server so you won't be able to fetch user input and …
The End.