Forum: PHP Mar 6th, 2008 |
| Replies: 4 Views: 1,007 Use the date() function: http://php.net/date
$time = time();
$date = date('d-m-L H:i:s' , $time);
echo $date; // 03-05-2008 18:05:44 |
Forum: PHP Mar 5th, 2008 |
| Replies: 4 Views: 925 The chances are quite good they already configured the server for you, so you can simply send a mail.
HAve a look at this function to send an email; http://www.php.net/manual/en/function.mail.php
... |
Forum: JavaScript / DHTML / AJAX Feb 29th, 2008 |
| Replies: 9 Views: 7,689 Shortened..
field2.style.backgroundColor = (field2.checked == 1) ? "red" : "white"; |
Forum: PHP Feb 27th, 2008 |
| Replies: 2 Views: 2,040 You can simply use the function time().
<?php
//connect to database. Username and password need to be changed
mysql_connect("**************", "**********", "**************");
//Select... |
Forum: JavaScript / DHTML / AJAX Feb 27th, 2008 |
| Replies: 9 Views: 7,689 Try this:
var filled = document.getElementById("one");
filled.style.background = "red"; |
Forum: PHP Feb 27th, 2008 |
| Replies: 4 Views: 546 Try adding this small feature, just to check if the page number isn't already zero.
$limit = 'LIMIT' . (($pageno == 0) ? '0' : ($pageno-1)*$rows_per_page) . ',' . $rows_per_page;
It could be... |
Forum: PHP Feb 27th, 2008 |
| Replies: 7 Views: 882 When displaying things such as large images or content, use a CSS stylesheet and set them to a percentage, instead of a static pixel width.
img {
width: 40%;
} |
Forum: PHP Feb 26th, 2008 |
| Replies: 8 Views: 844 I shall think it depends from person to person.
I like to use Zend when creating applications, or projects larger than a few scripts.
The syntax highligher is quite good, but then again, you can... |
Forum: PHP Feb 26th, 2008 |
| Replies: 8 Views: 565 You need to configure php to be able to send emails.
You would also need a aditional program to send emails, and configure php to use that aditional program.
Read about it here:... |