- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
8 Posted Topics
Re: 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; [url]http://www.php.net/manual/en/function.mail.php[/url] Example: [code=php] <?php $mail['to'] = 'person@domain.suffix'; $mail['from'] = 'you@' . $_SERVER['SERVER_NAME'] . '.suffix'; $mail['subject'] = 'Newsletter'; $mail['message'] = "Hello,\r\n\r\nHow are … | |
Re: Use the date() function: [url]http://php.net/date[/url] [code=php] $time = time(); $date = date('d-m-L H:i:s' , $time); echo $date; // 03-05-2008 18:05:44 [/code] | |
Re: Try this: [code=javascript]var filled = document.getElementById("one"); filled.style.background = "red";[/code] | |
Re: 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. [code=css] img { width: 40%; } [/code] | |
Re: Try adding this small feature, just to check if the page number isn't already zero. [code=php] $limit = 'LIMIT' . (($pageno == 0) ? '0' : ($pageno-1)*$rows_per_page) . ',' . $rows_per_page; [/code] It could be that mysql is getting an invalid number. | |
Re: You can simply use the function time(). [code=php] <?php //connect to database. Username and password need to be changed mysql_connect("**************", "**********", "**************"); //Select database, database_name needs to be changed mysql_select_db("*********"); //This is the directory where images will be saved $target = "e:/domains/p/personally-yours.co.uk/user/htdocs/development/images/upload/"; $target = $target . time() . '_' . … | |
Re: 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 configure just about any program to use the same colours. Anything that has a good … | |
Re: 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: [url]http://php.net/mail[/url] |
The End.