Skip to main content

Posts

MySQL :: Need To know

A common mistake is to protect only string data values. Remember to check numeric data as well. If an application generates a query such as SELECT * FROM table WHERE ID=234 when a user enters the value 234, the user can enter the value 234 OR 1=1 to cause the application to generate the query SELECT * FROM table WHERE ID=234 OR 1=1. As a result, the server retrieves every row in the table. This exposes every row and causes excessive server load. The simplest way to protect from this type of attack is to use single quotation marks around the numeric constants: SELECT * FROM table WHERE ID='234'. If the user enters extra information, it all becomes part of the string. In a numeric context, MySQL automatically converts this string to a number and strips any trailing non-numeric characters from it.

Hiding Sidebar On Certain Page

In WordPress, a Page is used to display information other than regular posts and it lives outside of the normal blog chronology. In the default Kubrick theme there are 3 Page Templates that can be used to display the content of a Page: page.php - Default Page Template, displays Page content archives.php - ignores Page content and instead displays a list of Archives links.php - ignores Page content and instead displays your links So which Template does WordPress use to display the content of a particular Page? WP will search your theme's files for templates and use the first one it finds in this order: The Page's selected Page Template page.php index.php Now you probably don't want to remove the sidebar from page.php because that will remove it from ALL Pages using that Template. So, we simply create a new Page Template and assign it to the Page that you don't want the sidebar to appear in. This is not as difficult as it sounds. Simply create a duplicate of your ...

lagn mhanje kay ...

“Accordion”-4

This is an ‘Accordion’ Script. So-called ‘Accordion’ is a drop-down panel that holds some additional content. JavaScript In order to make the script work, the index-#.html file with a gallery should contain these lines of HTML code: accordion-4-1 The section of the index-#.html file contains these lines of code that initialize the script functionality with basic values: accordion-4-2 In this block of coding we specify the id of the accordion button – #link and its actions. When the button is clicked the class link2 is applied to the button, and the action for an element with the id #dropdown_box is triggered. HTML Below you can see general HTML script representation: accordion-4-3 header-banner-right – class defines the height and position when the box with the content is hidden (closed) #link – this class is used for the button element #dropdown_box – this id should be assigned to a box with the content CSS You can find script related stylesheet in the main style....

How to embed flash intro in HTML

There are several methods of embedding Flash elements into HTML pages. 1st method: To embed the Flash intro that you just edited into an HTML page, you should go back to your Flash program and do the following steps: Step 1 Choose “File > Open”. Open the Flash intro you have modified. Step 2 Choose “File > Export Movie” or press “CTRL + SHIFT + ALT + s” Step 3 Name the file “intro.htm”. Choose the location where the file is to be stored (in your HTML folder). Click “OK”. Step 4 Open the HTML page where you want to insert your Flash movie. Insert this code: In the code above there is both an tag and an tag. This is because the tag is recognized by Internet Explorer, and Mozilla recognizes the tag and ignores the tag. There are a few more attributes used: classID is an attribute to the tag. It tells Internet Explorer to load the ActiveX plug-in if it is not installed. The plug-ins page is an attribute to the tag. It displays a link to the Shockwave dow...