Categories
-
Recent Posts
Blogroll
Category Archives: Web Design
Prevent JQuery From Conflict with Other Libraries
JQuery is getting more and more popular, many people are using JQuery in WordPress. The right way to import JQuery to your WordPress is like this: < ?php wp_enqueue_script(“jquery”); ? > Rather than using <script> syntax. Remember to run this … Continue reading
New Website Released: Allbloglist.com
AllBlogList.com is a catalog website for blogs. It collects blogs from all over the world. You can submit your website to AllBlogList.com for free. It may help your blog to be visited by more and more people. AllBlogList.com is a free … Continue reading
Redirect Users According to Browser Language
I started a new blog Gearor.com, which is a gadgets and tech blog. I also set up a Chinese version using sub domain cn.Gearor.com. So I tried to do one thing, if visitors come with a Chinese browser, the website … Continue reading
Say Hello to Kohana 3
Kohana 3 has been released for a while. This is a redesign version of Kohana. Kohana 3 and 2 will both be in active, if you are new to Kohana, I suggest you to start with Kohana 3. The most … Continue reading
Posted in Web Design
Tagged Design Pattern, Framework, Hello World, HMVC, Installation, Kohana 3, Kohana PHP, PHP
1 Comment
Addslashes or Mysql_real_escape_string to use to Avoid SQL Injection
I was reading some articles about avoiding SQL injection. People used to use addslashes() function, and later more and more programmers are using mysql_real_escape_string(). What’s the difference between these two functions? Alan Storm from StackOverFlow gives a description which is … Continue reading
Posted in Web Design
Tagged Addslashes, MySQL, Mysql_real_escape_string, PHP, SQL Injection
2 Comments
Design a Master CSS Stylesheet
Every time we start a new website, we need to write our CSS code from the beginning. Actually, many of the codes are the same as our previous website, like settings of blockquote, title(<h1> to <h6>), etc. I was thinking that … Continue reading
An OOP Way to Work with MySQL Database in PHP
This is my learning note of PHP and OOP(Object Oriented Programming) from Brian Muse’s tutorial, if you are new to OOP, you may find something helpful in this post. If you are a professional, I would appreciate it if you … Continue reading
Posted in Web Design
Tagged MySQL, Object Oriented Programming, OOP, PHP, Tutorial, Web Application
1 Comment
10 Movie Poster Photoshop Tutorials
A picture speaks a thousand words, a poster tells even more, especially for movie posters. There are a lot of great movie posters out there, how do designers create them? Here are 10 Photoshop tutorials to tech you to create … Continue reading
CSS: How to Center Your Images
If you have a paragraph(<p>) or a <div> with only images, it’s very easy to center them, just set the ‘text-align’ to ‘center’: p{ text-align: center } What if there is other content in the paragraph, like text, and you … Continue reading
Posted in Plugins, Tutorials and Hacks, Web Design
Tagged CSS, images, img, Style, text-align, Web Design
1 Comment