Regular Expressions: Special Characters
We need to using the following attribute when applying something regular expression object to describes a pattern of characters.
Tuesday, December 9, 2014
Monday, November 10, 2014
CSS selectors
CSS selectors
Selectors are important role for using CSS (Cascading Style Sheets) on web design.
Typically most common and widely selectors could been divided into 5 categories.
Selectors are important role for using CSS (Cascading Style Sheets) on web design.
Typically most common and widely selectors could been divided into 5 categories.
- Types of selector Class
ID, Universal and Pseudo-classes can be used to target different
elements in HTML. - Class Selectors
Classes can be applied to as many elements as you want, and CSS
can be used to target them. - ID Selectors
An ID can only be applied to one element in a document, and can be
combined with classes. - Descendant Selectors
Descendant selectors can be used to target elements based on the
ancestors, for example a <h2> inside a <div> with a class of planet - Pseudo-Classes
Pseudo-classes can be used to style elements based on user
interaction, for example a link that has been visited.
Friday, October 10, 2014
Tuesday, October 7, 2014
PHP Full Text Search Error
When you run the php website involved to full text search that might be occurs this problem.
SQL query :
$q = "SELECT uname,post_date,subject,message FROM forum WHERE MATCH (message)
AGAINST ( '$target') ORDER BY post_date ASC";
“Warning: mysqli_num_rows( ) expects parameter 1 to be
mysqli_result, boolean"
Database engine type : innoDB
You need to choose Full Text Search for the table.
SQL syntax :
ALTER TABLE FORUM ADD FULLTEXT(column )
Example
ALTER TABLE table_test ADD FULLTEXT(message_test)
SQL query :
$q = "SELECT uname,post_date,subject,message FROM forum WHERE MATCH (message)
AGAINST ( '$target') ORDER BY post_date ASC";
“Warning: mysqli_num_rows( ) expects parameter 1 to be
mysqli_result, boolean"
Database engine type : innoDB
You need to choose Full Text Search for the table.
SQL syntax :
ALTER TABLE FORUM ADD FULLTEXT(column )
Example
ALTER TABLE table_test ADD FULLTEXT(message_test)
Thursday, September 18, 2014
SHA1 encryption
When we have to involved to develop a interactive web site such as online forum or e commercial simultaneously
we need to store and protect the information of user.
Password security problem would be usually occurs to mostly website.
Developer should be considered majority of scenario or circumstances
for choosing a appropriate method for password encryption.
SHA1('$p') is a function for
protecting a password. The acronym SHA stands for Secure Hash Algorithm, which is a security measure created by
the US National Security Agency. It instructs MySQL to encode the password by converting it to a string 40 characters.
SQL syntax:
VALUES (' ', '$fn', '$ln', '$e', SHA1('$p'), NOW() )";
SQL syntax:
VALUES (' ', '$fn', '$ln', '$e', SHA1('$p'), NOW() )";
Saturday, September 6, 2014
Shibuya Hikarie Gorgeous building short movie
Shibuya Hikarie
Gorgeous building short movie
The Shibuya Hikarie (渋谷ヒカリエ) is a Tokyu skyscraper and retail complex completed in 2012 and located in the Shibuya shopping district of Tokyo, Japan
Thursday, September 4, 2014
Max and Min-width Properties and Pre tag
Max and Min-width Properties and Pre tag
When we want to our website design or other web application suitable displaying for different device, you should be setting the max-width and min-width properties. Most of browser support ( IE7-> Firefox )
div { min-width : 200px; max-width : 500px; padding : 5px; border : 1px solid #000000; }
If you would like to preserves both spaces and line
breaks in your content.
Please using the
<pre> tag
<pre>
Westlife
I Have A Dream
:Bjorn Ulvaeus、Benny Andersson
:Bjorn Ulvaeus、Benny Andersson
I have a dream, a fantasy
To help me through reality
And my destination makes it worth the while
Pushing through the darkness still another mile
I believe in angels
</pre>
Westlife
I Have A Dream
:Bjorn Ulvaeus、Benny Andersson
:Bjorn Ulvaeus、Benny Andersson
I have a dream, a fantasy
To help me through reality
And my destination makes it worth the while
Pushing through the darkness still another mile
I believe in angels
</pre>
Subscribe to:
Posts (Atom)