- Strength to Increase Rep
- +9
- Strength to Decrease Rep
- -2
- Upvotes Received
- 368
- Posts with Upvotes
- 288
- Upvoting Members
- 54
- Downvotes Received
- 227
- Posts with Downvotes
- 227
- Downvoting Members
- 5
205 Posted Topics
Re: An apple and yoghurt - not together, that'd be weird. | |
Re: I use the FPDF class and some extensions to it, and find it very useful. [FPDI](http://www.setasign.de/products/pdf-php-solutions/fpdi/) allows you to import existing PDF files to use as templates and you can add data via standard FPDF functions. > I need to confirm that is really worked? The original code posted looks … | |
Re: > I feel that all this business of personalized searches is also annoying in the same way: I'm not searching the web to find things I already know about. I'd wish there was a button to reverse it completely (as in, "give the results that are as far removed as … | |
Re: What specific error messages are you getting? at a quick glance I can advise the following: You will probably need to surround your SET variables with quotes, ie: [ICODE]"... SET PublishDate='$update' ..."[/ICODE] Also, assuming that PublishDate is a datetime field of some sort in your database, you will need to … | |
Re: The way email validation usually works is to have a unique key or hash that is sent to the email, and then passed back to the webpage when the user clicks on the link. The web page then needs to identify that the hash is the same as that which … | |
Re: what code are you using to display the timestamp? | |
Re: You might have more luck posting under the "MS SQL" forum (this is the MySQL forum). First advice I can offer is to check your Services applet and see if the Microsoft SQL Server service is listed and running etc. | |
Re: `ORDER BY unit_cm DESC LIMIT 3` will actually give you the 3 records with the highest values of `unit_cm` To get the smallest values use `ORDER BY unit_cm ASC LIMIT 3` in the subquery. ![]() | |
Re: You need to concatenate the values into the URL string of your link. This is a general example, but if you provide more context about the code you are using (such as if it is databound, produced in code behind etc.) I can give you more specific pointers. <asp:HyperLink ID="HyperLink1" … | |
Re: It sounds like a file pointer still pointing to the first file, while you are trying to move it further through the second file (possibly before it is appended to the first). If you are able to post code I could probably be more specific? | |
Re: You can instantiate an instance of the MS Word application via C# and programatically access all of the functions you would via the graphical interface. Your project needs to reference `Microsoft.Office.Interop.Word` and you must have word installed on the machine this will run on (ie; if it will be deployed … | |
Re: try maybe sorting on ID and date both descending SELECT * FROM $logbook WHERE Date<='$Date' AND ID!='$ID' ORDER BY Date DESC, ID DESC LIMIT 1 you could also add an extra clause to exclude the previously selected ID ` AND ID!='$Next["ID"]' ` (of course you need to grab the value … | |
Re: echo doesn't print the variable values when using a single quoted string. ie: [CODE] $id = 1; echo "<td>$id</td>"; // output: "<td>1</td>" echo '<td>$id</td>'; // output: "<td>$id</td>" [/CODE] there are a number of ways you could get around this issue, one would be to change those two link lines to … | |
Re: Although this appears to be a zombie thread, I'm going to recommend [iTextSharp](http://sourceforge.net/projects/itextsharp/) which is free open source part of the [iTextPdf](http://itextpdf.com/) library project. If you look in their docs they have sample code to convert from HTML as well as building a PDF from scratch. | |
Re: the `onclick` event on a standard HTML button invokes javascript, not Java. So your code is looking for a javascript function called `addBook` on a javascript object called `cart`. I believe you need to have the form `POST` to your servlet in order for the Java code to execute on … | |
Re: Can you post some code? looks like you have a object type where it expects a defined variable. | |
Re: What is the error? Also, why is the execute not inside the try block? I'm going to take a stab in the dark here and guess that your issue has something to do with having a *slash* in your parameter name `"@Amt/Day"` - try removing that and see what happens. | |
Re: You could try casting the datasource table you are passing in as an object (it could be just a resolution issue with the constructor definition expecting an object type, even though theoretically anything is an object). Dim datasource As New ReportDataSource("USACity_mCity", CType(DS, Object)) | |
Re: Mine comes from a character name I used when I first started playing MMO's. I had a bunch of characters, but this was the one that became well known in the guild and circle of players I was involved with. I started using it on the game forum, got an … | |
Re: I realise you have probably already moved on from this, but for posterity sake... > CommandName=<%#Eval("Category")%> you need quotes when specifying server values, which is probably the cause of the parsing error. CommandName='<%#Eval("Category")%>' | |
Re: 1) Are you using Windows or Forms based authentication? The way I have done this, is to use the Page.User to look up the username in the database, since the authentication is already taken care of you can assume is valid by the time it hits page code whether it … | |
Re: It is also possible there is a bios setting to disable the bluetooth radio. If you have upgraded to Windows Vista/7/8 it may have done things to your bios inadvertantly. I'd say it would be worth a check... | |
Re: > You'd be better off using a loop He'd be better off using a single regex like Atli originally posted, much faster execution, less steps, and more elegant code to read. | |
Re: You need to have a high powered antenna on both ends, since each end needs to transmit as well as receive in order to have a valid connection. There are also other factors, some environmental, that can affect the signal, such as; line of sight, weather, signal interferance. You would … | |
Re: Looks to me as though they join like this: form1.k8regNo <- form2.k8regNo form2.form2_ID <- form4.form4_ID form4.k9regNo <- form3.k9regNo Does this sound about right? Do you know how to write [joins](https://dev.mysql.com/doc/refman/5.0/en/join.html) in SQL? | |
Re: You should index on any fields involved in joins. You can also have multiple indexes based on fields used in conditions (where clause) for different queries, but you should test the performance as not all indexes will prove sufficiently beneficial to warrent the overhead. Also consider the type of join … ![]() | |
Re: You have set up your checkbox's as a control array, which means that `$_POST['generation']` will itself be an array (not a single value) and must be iterated to find the selected value for insertion in the database. You will need some additional logic to handle this, you can't just pass … | |
Re: I assume you are talking about handling those exceptions? Catching exceptions is generally the same regardless of the type. [This tutorial](http://www.tutorialspoint.com/java/java_exceptions.htm) has some `try-catch` code examples. | |
Re: Fpdf will work without any external references, it can create the pdf document without having a reader installed. Probably your browser is trying to display the pdf after it's created and that is what is causing it to try to download the reader. | |
Re: You don't need single quotes around your variables inserted in the sql string - there weren't single quotes in the original, and adding them makes the table name and limiters string values. Echo your sql string to the page so you can see it and copy/run it manually to check … | |
Re: Have a read of the [MySQL Join documentation](https://dev.mysql.com/doc/refman/5.5/en/join.html), specifically the section that covers Left/Right joins. What I would use here is a `LEFT JOIN` which allows the parent record (ie: dealer_item) to be shown with a null record where no data exists in the child record (dealer_product). More left join … | |
Hi guys, Working on one of my web projects recently I came accross a need for presenting some readonly data as part of the user input form. The readonly property of the input tags seem to work as expected for other types of input control, but not for the checkbox. … | |
Hi All I have googled this exception extensively, and all the discussions I've found seem to be related to file uploading and exceeding the allowed file size limit. In my case however, I am not uploading anything, it is a simple postback. I have a gridview displaying the results of … | |
Re: [mysql_query](http://php.net/manual/en/function.mysql-query.php) returns a [resource](http://www.php.net/manual/en/language.types.resource.php) datatype on success, which is not simply printable like you are trying to do. You need to call either [mysql_fetch_array](http://www.php.net/manual/en/function.mysql-fetch-array.php) or [mysql_fetch_assoc](http://www.php.net/manual/en/function.mysql-fetch-assoc.php) passing the `$result` to that function, which will return each row as an Array structure that can be iterated and printed as any typical … | |
![]() | Re: have a look at these pages for various server packages (including links). https://en.wikipedia.org/wiki/List_of_AMP_packages https://en.wikipedia.org/wiki/Comparison_of_WAMPs ![]() |
![]() | Re: I mostly like the new design, nice and clean. It seems to be a bit easier to find stuff by navigating compared to the original as well. I actually hadn't scrolled all the way to the bottom of a page until you mentioned the photostrip - had to check it … ![]() |
Re: I don't think you have to specify a field size for `timestamp` type columns. This appears to be where the error message is orriginating, so I would try removing it so those fields read simply as: `msgstartdt` timestamp NOT NULL , `msgdttime` timestamp NOT NULL , | |
Re: You will have to expand the border (probably both form and container) to see the hidden controls, then copy/paste them from the container onto the form. | |
Re: Is that your entire css? You haven't specified any other margin or float values or anything for other elements? | |
Re: Server side, yes. Only the submit button that was clicked will be set in the POST data. | |
Re: Did you specify column types or let it auto generate? Can you post the table schema? | |
Re: I believe it is your logout button. <a href="index.jsp" id="btnLogout" onclick="<%session.invalidate();%>">Logout</a> It is a while since I've worked in jsp, so someone may correct me, but I believe this is executing the `session.invalidate()` function and printing the result into the javascript `onclick` call. You are not able to use javascript … | |
Re: Probably he has an event declared in the ASP/HTML code with no corresponding function in the code behind. | |
Re: You can do it all in the loop if you handle the parameters properly. private void autofillyr(int incrementBy, int maxyr, int no_year) { for (int i = no_year; i < maxyr; i += incrementBy) { year.Items.Add(new ListItem(i.ToString(), i.ToString())); } } and the function call... protected void Page_Load(object sender, EventArgs e) … | |
Re: I think what you are looking for is Windows authentication rather than Forms authentication. You can set this in the `web.config` file as <system.web> <authentication mode="Windows"/> </system.web> You can read some about this on [MSDN](http://msdn.microsoft.com/en-us/library/ff647405.aspx) - you wont need to worry about impersonation unless the website needs to access restricted … | |
Hi all, I have a somewhat philosophical issue I would be interested to see others opinions on. I have a site that receives several values via the querystring that are necessary for use throughout the site. By default other links internal to the site do no include these values, so … | |
Re: you're missing a brace so the for loop will always return on the first iteration. for(index = 0; index < length; index++){ if(array1[index] == array2[index]){ count++ } } //<-- add this brace and see if that fixes it. return count } | |
Re: You could grab the server address (as above) and use it to determine the subnet, then perform a [ping](http://pear.php.net/manual/en/package.networking.net-ping.ping.php) sweep for active addresses. Not super efficient but I'm not aware of any way of simply listing active addresses. |
The End.