Search:
Type: Posts; User: zimonyi
Search :
Search took 0.01 seconds.
Hello,
if you have a Date object you can create a Calendar object from that Date.
Calendar cal = new Calendar();
cal.setTime(yourDbDate);
cal.add(Calendar.DATE, -7);
Archie
You should also generally (especially if you have an infinite loop with A LOT of conditions) keep printing your conditions, because most likely you have a value that is never set the way you want to,...
The following line in your code:
while ((continuePlaying) && (wonGame) && (isMoveValid=false))
should probably be:
Correct syntax is either:
SELECT t.name FROM trace t, trans c WHERE t.name = 'name1' OR t.name= 'name 3' OR t.name = 'name4' OR t.name = 'name5' AND t.id=c.id;
or
SELECT t.name FROM...
Which database are you using?
How many levels do you have? Is it static? I.e you can always only have three?
If so, I suggest you create three different function in whatever programming...
Change your AND to an OR between the dates.
If you use AND it means that both the requirements need to be met.
What you want is to see if any start date is the same or greater then your start...
What happens if you just run this part of your select?
select '101-a',now(),2675,0,'ASC','2010-12-18',0.00 from tblassoc
Achie
Hello,
if you just run the SELECT statement, what result do you get?
Archie
What type is your column post_date in the database?
What type is your variable $timestamp?
Archie
Hello,
in many database you can create so called anonymous tables which you have done there with your tables which you alias as "a".
I would suggest that you make some of your calculcations...
This below should do the trick:
UPDATE wp_posts p, wp_gdsr_data_article d
SET p.views = d.views
WHERE p.id = d.post_id;
Since I haven't tested it, you might want to make a backup or copies of...
I understood that, but different databases might use different syntax, so if you let me know which database you are using, I can come up with the correct update syntax.
Archie
Ok, first begin with removing all data from the wp_posts table views column:
UPDATE wp_posts SET views = NULL;
Then you want to copy all views from the table wp_gdsr_data_article into the...
In regards to your second problem, I think you should do the same as my suggestion for your first problem.
Archie
Hello,
in regards to your first problem, meaning the printLetters(char c) method, I would not make the printLetters() method recursive.
Instead I would call another private method that does the...
Hello,
Sesame documentation
Just start reading.
Archie
Do you have data in the column views today?
Which of the tables should contain the "master" data?
If you only want to copy all the data from one table to the other it is pretty easy but if not,...
That's not what I meant. I mean that if he only wants the name, he might as well use DISTINCT (which is what it is for).
Using GROUP BY will work just as well but is also used together with those...
Even if it is GROUP BY, my queries will still return the same results even if we remove DISTING and add GROUP BY.
GROUP BY will also return unique rows so I still think you need to provide...
Ok, again, you cannot DISTINCT on a single column. You DISTINCT on a row.
So, with your example rows in your table, then the following query:
SELECT DISTINCT name1 FROM table;
would...
Will you have many applications?
If not, then I would suggest a simple form for creating users, and a simple login/password form for logging on.
It should be enough if you use HTTPS (i.e....
Since SQL does what you ask of it, can you tell me exactly what you mean by DISTINCT on ID1 and ID2?
DISTINCT will make each row unique in all its column values. Nothing more, nothing less. You...
I seem to have missed you response but glad it all worked out.
Archie
It should be, the configure commands:
--enable-soap
--with-xmlrpc
should give you what you need in order to allow for web services.
Archie
Can you please ask your question?
You can only ever INSERT one row at a time if you have the data yourself (and not selecting it from other tables).
So basically you would need to store your...