The following code is causing me a headache. I want to put: "12-25-2004 0:0:0" on the screen.
But the following code:
echo date('d-m-Y H:m:s', mktime(0,0,0,12,25,1978));
returns:
25-Dec-1978 12:12:00
What is happening?
I've got a simple problem but I can't find the solution. I hope someone can help me (I was surprised I couldnt find it in previous posts on this forum...)
What I want is:
a table (width 100%) with 3 columns, two with a fixed width (e.g. 50 and 40px), one with a variable width (which 'fills the...
I want to write a function which calculates the timestamp from a week number:
function timestampFromWeeknr($iWeekNr, $iYear)
{
//here should come magical calculation
return $iTimeStamp
}
More accurately speaking, it should be the timestamp from the Monday of that week, at 0:00am.
Has...
I don't now where to put this question, because its a combination of Javavscript/HTML/PHP.
Anyway, I wanted to make a flexible form, which allows the user to enter multiple events for an online agenda.
The user can enter data in several input fields. These input fields are in a table:
<form...
I want to make a replacement for the <select>-tag.
For this im using the code below:
Test <div class="select">
<div class="selectedItem" id="as_SelectedItem">option 1</div>
<div class="pulldownButton" onClick="showObject('n1');">pulldownbutton</div>
<div id="n1" style="display: none;">...
I've got a string:
"In the British-Commonwealth in some cases"
I want to split this string up in words, but also want to split on -, so I get one array:
Array[0] "In"
Array[1] "the"
Array[2] "British-"
Array[3] "Commonwealth"
Array[4] "in"
Array[5] "some"
Array[6] "cases"
How to do this? Im...
Is it possible, using javascript:
1) to give the text inside a textarea a different color
2) to give different words inside a textarea a different color? E.g. "The red car had some blue scratches on it"
As you might guess, the second question interests me most ;)
Hi,
I want to make an automatic mailing system, which gets information from a MySQL database and sents it to a number of subscribers.
I know how to code everything, except one thing: the 'automatic' part. I don't want to go to my website each day and press a 'Send mail' button. What I want is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.