1,576 Posted Topics

Member Avatar for Craigowls

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 …

Member Avatar for hericles
0
515
Member Avatar for Maideen

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.

Member Avatar for hericles
0
1K
Member Avatar for iConqueror

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 …

Member Avatar for Diamonddrake
0
234
Member Avatar for bolfescu

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?

Member Avatar for hericles
0
96
Member Avatar for mehul12345

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.

Member Avatar for mehul12345
0
871
Member Avatar for iConqueror

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

Member Avatar for Reverend Jim
0
214
Member Avatar for Peter1

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 …

Member Avatar for diafol
0
294
Member Avatar for kuldeepJS

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?

Member Avatar for hericles
0
123
Member Avatar for Rake$h

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);

Member Avatar for Rake$h
0
94
Member Avatar for dimi231080

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 …

Member Avatar for cgeier
0
685
Member Avatar for Praveen_10

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.

Member Avatar for Praveen_10
0
201
Member Avatar for zabi77

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.

Member Avatar for hericles
0
189
Member Avatar for Praveen_10

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 …

Member Avatar for castajiz_2
0
299
Member Avatar for iConqueror

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 …

Member Avatar for iConqueror
0
293
Member Avatar for vikrant.cornelio

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 …

Member Avatar for hericles
0
478
Member Avatar for stokie-rich

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 …

Member Avatar for hericles
0
176
Member Avatar for Ealiom

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.

Member Avatar for JamesCherrill
0
635
Member Avatar for BogdanCov
Member Avatar for suman_4

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 …

Member Avatar for hericles
0
154
Member Avatar for brittney_2

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.

Member Avatar for brittney_2
0
223
Member Avatar for SimonIoa

$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 …

Member Avatar for SimonIoa
0
95
Member Avatar for Joshua_7

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 …

Member Avatar for hericles
0
510
Member Avatar for RikTelner

The world bank data file says 0.51 hectares per person for the US so times that by 10 million and convert to km2

Member Avatar for jwenting
0
246
Member Avatar for jaejoong

Um, there is absolutely nothing here to guide us. How do you expect us to help?

Member Avatar for jared.geli
0
114
Member Avatar for nelsonfaboan.rios

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?

Member Avatar for nelsonfaboan.rios
0
358
Member Avatar for Mustafa_7

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?

Member Avatar for wirelessvictory
0
242
Member Avatar for Josefo1

DisplayMember and valueMember aren't properties of the DropDownList. You simply can't use them as they aren't relevant to that control.

Member Avatar for Josefo1
0
261
Member Avatar for bogorehmed

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.

Member Avatar for bogorehmed
0
90
Member Avatar for Cameronsmith63

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 …

Member Avatar for hericles
0
90
Member Avatar for castajiz_2

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.

Member Avatar for JorgeM
0
2K
Member Avatar for mbowenitj

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.

Member Avatar for mbowenitj
0
259
Member Avatar for kavi4u

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?

Member Avatar for vaynenick
0
2K
Member Avatar for knish

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 …

Member Avatar for hericles
0
155
Member Avatar for mbowenitj

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...

Member Avatar for mbowenitj
0
297
Member Avatar for mbowenitj

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 …

Member Avatar for mbowenitj
0
285
Member Avatar for mbowenitj
Member Avatar for Jay_7

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)

Member Avatar for andrevanzuydam
0
269
Member Avatar for Bharadwajcvrg
Member Avatar for Bharadwajcvrg
0
781
Member Avatar for Pyler

You can stand comic sans...? If we're doing this, can I put in a vote for Calibri, always liked it :)

Member Avatar for ddanbe
0
281
Member Avatar for jay.barnes
Member Avatar for kpkarthik90

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 …

Member Avatar for Ketul_1
0
209
Member Avatar for jonel.sumang

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 …

Member Avatar for Learner010
0
293
Member Avatar for gandrap

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 …

Member Avatar for urtrivedi
0
261
Member Avatar for Rasvinder_1

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`

Member Avatar for hericles
0
126
Member Avatar for troverman

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 …

Member Avatar for troverman
0
321
Member Avatar for bolfescu

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 …

Member Avatar for hericles
0
313
Member Avatar for obuobi

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.

Member Avatar for obuobi
0
253
Member Avatar for [NOPE]FOREVER

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 …

Member Avatar for hericles
7
220
Member Avatar for jKidz

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 …

Member Avatar for hericles
1
190
Member Avatar for garyjohnson

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;

Member Avatar for shophiarajan47
0
428

The End.