335 Posted Topics
Re: That already is ajax. Can you be more specific? | |
Re: Buy a new one | |
Re: You can also do thing like this: Delete From Agents Where Id = 2 And (Select Count(*) From Agents) > 1 | |
I accidentally clicked on: Click here to no longer receive any community emails from DaniWeb. In an email I received. How can I undo this? Is it the checkbox in edit profile - Receive Occasional Community-related Email? Thanks | |
Re: I don't see any quantity or sales columns :( What database is this coming from? Do you want the SQL to populate your dataset in the first place, or are you wanting to sum things after the data is in a .net DataSet? | |
Re: You can call a function from anywhere. You can call a function from main and this function inside it's body can call other functions. Those other functions can also call functions. This is how you build up complex applications. A recursive function is one that calls itself. This is often … | |
Re: Hi Suzie If I have read things right you are asking for a good way to reuse some code library you have written right? Eg a logging utility for example. I can show you a few ways of doing this but have you also considered using nuget with third party … | |
Re: Which object is null? The debugger is your friend - use it to see. | |
Re: Auto incrementing ids work this way by design. If you want more control then use a column you can explicitly control. | |
Re: This error message means you are trying to insert or update data which is too long. Eg trying to enter "Dave" into a database column defined as only being 3 characters in length. Decrease your data or increase your column width. | |
Re: Can't you just debug it and see. Do you know how to debug and step through code? | |
Re: Are you able to use jQuery for this or just native JavaScript? | |
Re: Database Replication is one term for synching databases - particularly when talking about SQL Server. Not sure about the other term - could be multi tenant? | |
I love optical illusions and they normally work on me but in the following one you are supposed to be able to see a red pill and a blue pill when in fact they are both grey. I see them both as grey though - does anyone else see red … | |
Re: Here is one way. using System; using System.Linq; namespace ForEach { class Program { static void Main(string[] args) { const string s = "111\n222\n333"; foreach (var line in s.Split('\n').ToArray()) { if (line == "333") { Console.WriteLine("Found the 333 number"); } } Console.ReadKey(); } } } | |
Re: Antony, this is a serious question... Do you think we can give you an answer to this without knowing your database schema? | |
Re: <a href="http://www.success.com"><img class="headlineimage" id="img1" src="success.jpg" width="200" height="150" /></a> You can change the href with code too. | |
Re: Read a book, watch some videos, take a class, find a provate tutor, read a website. The above advice also applies to T in HowToLearn<T> | |
Re: You really need to understand how http works under the hood for this kind of thing. Its too much to cover in a textbox on a forum like this. You would be much better off spending some time watching some videos. This one for example is quite good: https://www.youtube.com/watch?v=gav4HmZ8xe8 | |
Re: The scope of JavaScript code is per page so refreshing the page is like making the code start again - like switching it off and on again. So if you want to persist some value - ie the state of your counter - then you will need to store it … | |
Wife had car crash Cat collapsed and had to be rushed to the vets Ordered takeaway food to be delivered for 19.30, delivered at 18.15 when no one is in. Giving up now and just drinking lots of wine :( | |
Re: It just means you are declaring a variable called flag and giving it a value of 1 or 0. This will presumably be used elsewhere in the code to keep a track of the state of something. It is also probably boolean in nature. | |
Re: Have you debugged or echoed to see that the actual SQL statements resovle to? | |
Re: Hi Thomas I don't code in C++ but in C# we would do this with a static property. I do think you may be misunderstanding inheritance. Could you post the simplest version possible of code needed to demonstrate what you are trying to achieve and I can comment further. | |
Re: I think parameter 1 should be a mysqli_result but you gave it a boolean! | |
| |
Re: It is far more likeley that you have done something wrong. For example you have two spellings of minGrooote there. One with one t and one with two ts. Can you show me the code where you declare and assign values to these two variables? | |
Re: What type of program is going to host this? | |
Re: insteadof echo $b, append a$ to C$ with a comma each time you go through your foreach. You will need a little finesse to make sure you don't end up with a comma at the very end. | |
Re: Hi I'm not a PHP developer but do have good OOP skills. Loose coupling is certainly key. Have your validation class return an instance of ValidationResult (a class you will define unless there already is one in PHP?). This could be an instance of a class which has a boolean … | |
Re: I think if you change slideShowItem = '.slides li' to slideShowItem = $('.slides li') then you will get a collection of items. I had a play with your code and changed a few things just for a bit of fun. Its far from perfect but if it gives you any … | |
| |
Re: I'm so glad I don't do php if this is what it looks like! | |
Re: Your tags are malformed - put the close div at the end. | |
Re: Switching ascending to descending should be easy. Can you show us your ascending code? | |
Re: Hi Sorry I'm a bit late coming to this thread now but pretty much agree with everything that has been said. Do use self describing names for variables and methods though. So Iterate is maybe not the best method name - I would rethink that one. Also naming conventions for … | |
Re: I know how. Depends how you want to architect/tier this though - any thoughts? Also what database are you using and do you want to use stored procedures? Finally what is your level of programming skill and which language do you want this in? | |
Re: There are many ways to do this but a good way of seeing one in action is to create an out of the box MVC app in Visual Studio. It will create a templated app with logins all setup and done so you can look at that and see how … | |
Re: I have some working gmail code as below. See if this helps you fix your problem. using (var mailMessage = new MailMessage(ApplicationConfig.Instance.EmailSenderAddress, recipient, subject, body)) { mailMessage.IsBodyHtml = true; var basicCredentials = new NetworkCredential("myusername@gmail.com", "XXXXXXXXXXXXXXXXXXX"); var smtpClient = new SmtpClient("smtp.gmail.com") { UseDefaultCredentials = false, Credentials = basicCredentials, EnableSsl = true … | |
Re: It says it is free here so just download it I guess. https://community.jaspersoft.com/project/ireport-designer | |
Re: Yep Suzie is spot on. I assume by shared place you mean a network share? If so the app doesn't run there, that's just where the file is. The app runs in memory on the users pc. | |
Re: You have suspicious looking spaces in ' 8req' WHERE id = '3 ' | |
Re: Is it possible. Certainly. Operating systems are not trival though. The ones we have today are the result of probably millions of man hours so I wish you the best of luck! | |
| |
Re: You say you are using Vb.net but what is your UI technology? WinForms, WPF, WebForms, MVC etc? |
The End.