Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+2
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #22.5K
~12.4K People Reached
Favorite Tags
Member Avatar for Pranu_1

Your code is close. Try these two minor fixes: mailMess.From.Add("abc@gmail.com"); mailMess.To.Add("xyz@gmail.com"); If you still have an issue, or if you just want to use some other email host server (i.e. post-office) add this code: SmtpMail.Credentials = New System.Net.NetworkCredential("Your post Office Username", "and Password"; SmtpMail.Host = "your mail server (ie. smtp.mailhost.net)"; …

Member Avatar for anand9796
0
554
Member Avatar for madamx

This is a HUGE topic. I will atempt a short explanation. A constructor is a special function called to create an "object" of a specific class. Lets look at an example of a class called "Fruit": public Class Fruit { String FruitType; String Color; public Fruit() { FruitType='Unknown'; FruitColor='Unknown' } …

Member Avatar for SeanDevoy
0
448
Member Avatar for FD

Your problem is in line 15 and 16: 15. $totalshifttime = ($time2 -$time1) / 3600; 16. $totallate= $totalshifttime - $date ; 15 subtracts $time1 from $time2 / 3600 (hrs): 09:00-01:00 = 08:00/3600 = 8. 16 subtracts current time (say 02:00) from 8, not even 8:00 ???? I think what you …

Member Avatar for SeanDevoy
0
635
Member Avatar for elamigosam

Let the database do the work for you. Change your first select to only return the rows that are not read: select * from announcements where annID not in (select annID from annComplete) That is standard SQL, I am a Sql Server guy with limited MySQL use, but I think …

Member Avatar for SeanDevoy
0
513
Member Avatar for omi4u

You have not provided any information about what fields are in you datagrid or what you want displayed. If the datagrid uses the samew data as your query, you need this (assuming the datagrid name is DG): DG.DataSource=table DB.DataBind() HTH, Sean

Member Avatar for SeanDevoy
0
507
Member Avatar for spades0001

There is a great article on this reasonably complex topic. A lot is involved because of the disconnect between server-side rendering and user/ajax side requests. The server renders a row at a time and does not keep the complete data-set around, while the user is looking at that data the …

Member Avatar for SeanDevoy
0
3K
Member Avatar for SimonIoa

It is hard to answer without knowing the table designs. But, assuming Messages has a column "user" which matches friend_one or friend_two in the friends table and there is a primary key on the friends table, it seems to me this would be a little cleaner approach: select F1.friend_two, F2.friend_one, …

Member Avatar for SeanDevoy
0
2K
Member Avatar for PM312

As mentioned, you are very close. The part it seems you don't understand is that for "aggregate functions" (like SUM, MAX, MIN and others) the rules for "SELECT" columns and "GROUP BY" columns are necesarilly quite strict. Every column in the "SELECT" fields must either be an aggregated column or …

Member Avatar for SeanDevoy
0
3K
Member Avatar for SimonIoa

Hi Simonloa, I have years and years of sql server experience. I would like to help you but it is hard to follow what your tables are and what the goal is. Are you running these queries from an application? If so, what language? In general UNION is a very …

Member Avatar for SeanDevoy
0
2K