Not finding what you are looking for? Request a recipe!

  1. Avg. Rating 5.0
  2. Avg. Rating 5.0

    Upload image to website (PHP)

    Uploading images with PHP is relatively easy. For security reasons, you should always check that the file is an image, and that it doesn't exceed a maximum size. The original question posed by Daniel Hogg specified that the image should be uploaded to an image placeholder. As long as the image has t ...

  3. Avg. Rating 5.0

    Display an image stored in a database (PHP)

    The browser doesn't know how to handle the data stored in the database, so it just dumps raw data onto the screen. You need to store the image's MIME type in the database, and use a proxy script to display the image in your web page.

  4. Avg. Rating 5.0

    Centering web pages and other elements with CSS

    Centering block-level HTML elements is easy: just make sure the element has a declared width, and set the left and right margins to auto. To center a page, wrap the entire contents in a div, and set its horizontal margins to auto. If the page contains AP Divs, set the position property of the wrappe ...

  5. Avg. Rating 5.0

    Format dates stored in MySQL

    Use the MySQL DATE_FORMAT() function in your SQL query, and assign the result to an alias. MySQL returns the correctly formatted date as part of the database result (recordset).

  6. Avg. Rating 5.0

    How do I get rid of the blue border around images used as li ...

    Create a CSS style rule to eliminate the border from all images used as links.

  7. Avg. Rating 5.0

    Display user's name and other details after login (PHP)

    Use the Dreamweaver Log In User server behavior for the login page. The server behavior creates a PHP session variable called $_SESSION['MM_Username'], which you can use as a filter in a recordset to retrieve the user's details. If you store the results of the recordset in your own session variables ...

  8. Avg. Rating 5.0

    Create nested lists from a recordset (PHP)

    Before the recordset is displayed in a repeat region, initialize an empty variable to keep track of value of the field with the repeated value(s). Each time the repeat region loop runs, check to see if the value is the same as the current one. If the value is different, display it. Otherwise, skip i ...

  9. Avg. Rating 5.0

    Cleaning up imported HTML files

    Dreamweaver cleans up most problems with imported HTML through the Clean Up Word HTML and Clean Up (X)HTML options on the Commands menu. After removing unwanted markup, use Apply Source Formatting (also on the Commands menu) to lay out the code in an organized and readable manner.

  10. Avg. Rating 5.0

    Generate SEO-friendly, 2-column layouts in Dreamweaver

    You can customize the 32 built-in CSS layouts in Dreamweaver CS3 and CS4 by editing the source files in the Dreamweaver configuration folder.