335 Posted Topics

Member Avatar for jj.dcruz
Member Avatar for Courtney_2
Member Avatar for UK-1991

You can also do thing like this: Delete From Agents Where Id = 2 And (Select Count(*) From Agents) > 1

Member Avatar for lps
0
108
Member Avatar for dbissu2
Member Avatar for DaveAmour

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

Member Avatar for Dani
0
87
Member Avatar for eetigu

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?

Member Avatar for moshelilin
0
286
Member Avatar for kubura musah

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 …

Member Avatar for kubura musah
0
179
Member Avatar for Colin_3
Member Avatar for Suzie999

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 …

Member Avatar for DaveAmour
0
235
Member Avatar for Yuki_1
Member Avatar for DaveAmour
0
137
Member Avatar for Niloofar24

Auto incrementing ids work this way by design. If you want more control then use a column you can explicitly control.

Member Avatar for DJBirdi
0
306
Member Avatar for altjen

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.

Member Avatar for altjen
0
151
Member Avatar for karodhill
Member Avatar for Muhammad_63
Member Avatar for piers
0
114
Member Avatar for london-G

Database Replication is one term for synching databases - particularly when talking about SQL Server. Not sure about the other term - could be multi tenant?

Member Avatar for JorgeM
0
126
Member Avatar for DaveAmour

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 …

Member Avatar for advent_geek
1
405
Member Avatar for waseem1345

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

Member Avatar for DaveAmour
0
244
Member Avatar for AntonyRayan

Antony, this is a serious question... Do you think we can give you an answer to this without knowing your database schema?

Member Avatar for kalxas
0
377
Member Avatar for Hong_1

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

Member Avatar for DaveAmour
0
250
Member Avatar for ArpitJ.25

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>

Member Avatar for David W
0
136
Member Avatar for David_55

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

Member Avatar for DaveAmour
0
303
Member Avatar for kazkuzzer007

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 …

Member Avatar for piers
0
4K
Member Avatar for DaveAmour

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 :(

Member Avatar for vegaseat
0
198
Member Avatar for ArpitJ.25
Re: C++

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.

Member Avatar for Schol-R-LEA
0
170
Member Avatar for shitanshu_1
Member Avatar for Thomas_25

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.

Member Avatar for Thomas_25
0
335
Member Avatar for janicemurby

I think parameter 1 should be a mysqli_result but you gave it a boolean!

Member Avatar for cereal
0
213
Member Avatar for phoenix254
Member Avatar for JorgeM
0
166
Member Avatar for nevek

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?

Member Avatar for DaveAmour
0
131
Member Avatar for coder91
Member Avatar for slowlearner2010

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.

Member Avatar for slowlearner2010
0
160
Member Avatar for AntonyRayan
Member Avatar for jay.barnes

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 …

Member Avatar for jay.barnes
0
420
Member Avatar for chichi9

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 …

Member Avatar for DaveAmour
0
325
Member Avatar for Khalil_2
Member Avatar for janicemurby
Member Avatar for london-G
Member Avatar for london-G
0
314
Member Avatar for Ma Nicole Ydralyn

Switching ascending to descending should be easy. Can you show us your ascending code?

Member Avatar for vegaseat
0
132
Member Avatar for erum
Member Avatar for erum
0
172
Member Avatar for ddanbe

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 …

Member Avatar for ddanbe
0
367
Member Avatar for JerrimePatient

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?

Member Avatar for DaveAmour
0
250
Member Avatar for JerrimePatient

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 …

Member Avatar for JerrimePatient
0
188
Member Avatar for get2tk

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 …

Member Avatar for DaveAmour
0
1K
Member Avatar for rahulrevolution

It says it is free here so just download it I guess. https://community.jaspersoft.com/project/ireport-designer

Member Avatar for stultuske
0
110
Member Avatar for Amr_Mohammad_R

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.

Member Avatar for Amr_Mohammad_R
0
187
Member Avatar for wagraphics
Member Avatar for phoenix254
Member Avatar for phoenix254
0
224
Member Avatar for Mpradeep

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!

Member Avatar for Slavi
0
106
Member Avatar for vishal_isharani
Member Avatar for vishal_isharani
0
240
Member Avatar for dipankarnalui

You say you are using Vb.net but what is your UI technology? WinForms, WPF, WebForms, MVC etc?

Member Avatar for ddanbe
0
327

The End.