1,576 Posted Topics
Re: Firstly, Access is a database system. It can't 'open' a pdf but it can store either it or its file location. What parts are you having trouble with exactly? Can you query the database to get back the image? There are several ways to handle adding water marks. One way … | |
Re: Try using the CAST or CONVERT functions of sql: CAST(column_name AS INT) Of course, your VarChar column needs to be all numbers for it to work. | |
Re: It comes down to how the compiler reads and interprets your code. By defining different symbols for different things the compiler can infere what action you are trying to do. If you have done a course on compilers you would have used similar structures to tell your compiler how to … | |
Re: To remove the "fa fa-bars" class you can use this: $.('.menu').removeClass('fa'); And to add a class use .addClass(). The toggle should work as it is. Is it not working currently? | |
Re: An average is just the total sum of the elements divided by the number of elements. increment your sum variable by the entered value inside the loop and then, once the loop is finished divide it by 5. | |
Re: Way back I self taught myself some Java as a start point (but never got very good at all). My first university course used Delphi. Then I taught myself VB.Net, and then C#, while my uni courses went over Java/Objective C/Android and a little bit of prolog/haskell | |
Re: As long as each table has one column which refers it to another table, through which a linkage can be made, you can join them all. It doesn't need to be the same column in all tables as long as a chain of connectivity can be made. In your case … ![]() | |
Re: Have you debugged it from the email end? Is the link correct and if you copy and paste it into the browser do you get the image back? | |
Re: I don't know what you're trying to do with the IF statement but the total line should be like this: (if you want to add integers at least) int total = int.Parse(textbox1.text) + int.Parse(textbox2.text) + int.Parse(textbox3.text) + int.Parse(textbox4.text) + int.Parse(textbox5.text); | |
Re: Post some code and then we can really help. Any the rows repeated as a group? I.e. you have rows 1,2,3,4,1,2,3,4? Because that is a clear indicator your loading code is runnning twice. Are you using the datasouce and databind methodss or adding the items to the grid row by … | |
Re: It is because getString() accepts an integer, not a string. You pass in the zero-based reference for the column you want. Instead of passing in "CarName" pass in the position of that column. | |
Re: You need session_start() at the top of all scripts that intend to use the session state, whether to read from or set it. Adding session_start() to your checklogin.php should fix the problem. | |
Re: That would indicate that your database connection and query are fine, its just returning and empty result set i.e. that user name and password combination are found in the database. Your code doesn't show where username and pwd are being defined. Are they the actual textbox controls themselves? Add a … | |
Re: It should be fairly understandable if you buld the string yourself, keeping track of x at the same time but I'll try to give a coherent explanation. On the first loop x == 0 an A is always added so "a" becomes the first letter. X < 1 so a … | |
Re: Your settimeout is firing everytime because it isn't wrapped in a function that needs to be called. It's just sitting there waiting to fire when that script block is reached. It is the same as putting alert('hi'); inside script tags. The alert will appear every time. Create a function, with … | |
Re: You can do a couple of things. Frstly, you can generate the random number in your code and use it in your query. Get the MAX(id) from the table as a SELECT and use it to generate a random number between 0 and MAX(id). Pass that random ID back to … | |
Re: Are you sure rm actually has rows? You're not checking for that and then trying to access the element at position 1. If there is no element at position 1 you would see this error. | |
Re: Say you have a static variable, counter, in your class and a method that incremented and displayed counter. You then create two instances of the class, X and Y. Calling x.increment() will output 1. The static variable becomes 1. Calling y.increment will output 2 because it accesses the same static … | |
Re: An IF statement by itself won't direct your code to the exception because failing the IF statement isn't an exception. You need to THROW the exception but not quite as you have it there. You want to throw the exception if the IF statement fails. | |
Re: $query is not a string, it is a mysql_query so your concatenation isn't working as you would think. Build your string and then create your query. $select = "SELECT M.msg_id, M.uploads, M.message, M.description, M.type, M.text, M.views_count, U.username, C.name as country_name FROM users AS U INNER JOIN messages AS M ON … | |
Re: What anit virus are you running? I'd do a scan with whatever you have installed AND also ue a decent online tool like Panda to do secondary check. Its possible you have something running that is just waiting for that internet connection. You could also turn off all of the … | |
Re: The world bank data file says 0.51 hectares per person for the US so times that by 10 million and convert to km2 | |
Re: Um, there is absolutely nothing here to guide us. How do you expect us to help? | |
Re: Out of curiosity, have you had any luck with this? I'd be interested to know what affected the mouse on another computer when you ran your program. As Ketsuekiame asked, what runtime errors are you getting? | |
Re: Welcome and congrats on the MSc offer :) Glasgow is going to be a little bit wetter than Iraq me thinks. Is that why the umbrella in your profile pic? | |
Re: DisplayMember and valueMember aren't properties of the DropDownList. You simply can't use them as they aren't relevant to that control. | |
Re: Check network discovery is on in the Control Panel - Network and sharing screen. Or possibly your firewall could be blocking it if you have it set for super security mode. | |
Re: Wow, I had plenty of issues moving a 2005 project to 2008. I don't even want to think about what would need to be done to go from 2005 to 2013. I'm not sure about this, haven't looked into or done it myself, but maybe the piggy back approach might … | |
Re: Yeah, I tried a range of standard start pages (index & default) with a host of extensions but got 403 for all of them. It looks like you have no start page defined. Try browsing to page URL you know exists and see if it displays. | |
Re: Are any of the columns used in that insert statement integers, double, floats, etc? If yes, you would need to parse the matching input from text to whatever the column type is. | |
Re: Kavi4u, you do know this functionality is provided by tab (forward) and shift-tab (back) right? How are going to handle a user wanting to move the cursor back inside the current text box to correct a typo? | |
Re: I'm a little unclear of what you need exactly but you canhave a button point to any code you want. Just make sure the code you want to run is in a function by itself and inside the button click code call the function you need. So if you have … | |
Re: Post up your code and we'll have a look. Its hard to fix someone's problem when you can't see what could be causing it... | |
Re: As I mentioned in your other post, use the exception object to determine the ACTUAL reason for the error (located by looking at ex.Message). It will, normally quite clearly, point you to the exact problem. Alternatively, step through your code in debug mode and see which line of code causes … | |
Re: Are you getting any errors when you run it and, if so, what are they? | |
Re: That syntax doesn't look right. At the very least there should be () around the string and, if memory serves, sqlsrv_query takes more parameters than that... but I could be wrong (too lazy to look up the docs) | |
Re: Is there a question that goes along with this code? | |
Re: You can stand comic sans...? If we're doing this, can I put in a vote for Calibri, always liked it :) | |
Re: May be obvious but need to ask: is your CSS file in the same directory? | |
Re: The use of @media queries in the html head would be a strong indicator and quick to check. Look for css files with names that suggest different sizes e.g. mobile.css `<link href="mobile.css" type="text/css" media="screen and (max-device-width: 480px)" rel="stylesheet"/>` CSS links like the one above only run if the media criteria … | |
Re: Is there any particular part you are stuck with? Posting up what you have done already makes it far more likely someone will help you. Requests to do your homework for you don't get much of a response. If you haven't started, break it down into what it is asking … | |
Re: The way you have your query you will end up with two columns, a.price and b.price, per row so your second requirement of having table 2 values first then table 1 doesn't really fit. Do you have two tables containing the same items but just a different price in each … | |
Re: You mean wish to apply WHERE gender != 'M' right? So males are not included in the query? `select section_no,max(age) as 'Maximum Age' from table1 WHERE gender != 'M' group by section_no` | |
Re: I think you might have ended up on a email blacklist. Trying to locate which black list you are now on can be difficult. It will effect everyone using the same domain part of the email address (everything after the @) so other people in the company will have the … | |
Re: I'm not sure I understand. Do you want to get the next record when the user requests it (from a button or link for example)? The WHILE loop is doing exactly what it should, loopoing through the result ser until no rows are left. How do you want the script … | |
Re: There is a very cool jQuery plugin that will do that for you. [Click Here](http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html) That will allow you to use client side scripting to get the user input and find the searched term in the page. | |
![]() | Re: That is a lot of constraints for one table and, without knowing your exact intention, I do have to say I'm unsure about it. Is the part ID really going to be unique across all rows? And having a line_type column that can only ever equal 'part' seems like a … |
Re: Use a JOIN to connect the two tables. For that to happen both tables need to share a common key that you can JOIN them ON. A sample JOIN looks like: SELECT a.col1, b.col2 FROM tablea AS a JOIN tableb AS b ON a.col1 = b.col1 WHERE <some flter> As … | |
Re: The background property is a shortcut to combine all background commands into one, as opposed to having a background-color and a background-image. So you are setting a background-color and then using the background: to say you don't want a color. try: background: #3d3d3d url(../images/first_section_bg.jpg) no-repeat center center; |
The End.