Tips and tricks for those using Blogger (blogspot) for their blogs. Complete help for the New Blogger, blogger Hacks, Blog design, Blog Template, SEO, Adsense, Blogging Tips and Tricks, Making money through blogs.
Thursday, July 8, 2010
PHP - Printing a random file from a folder
This code is useful if you have ad codes in different files and want to randomly rotate them.
Show headline ticker in your blog
Display a cool headlines ticker in your blogs and change the way it looks!
With our "Headlines widget" you can put a customized latest posts ticker directly into your blogs unlike a normal code copy and past process.

Like our earlier headlines scroller widget, we developed a clean interface to take the full advantage of this cool feature:
Just copy the above code and paste it in new widget of your blog. Also, don’t forget to add your sitename in the last line of HTML code where I’ve mentioned “http://yoursitename.blogspot.com”. I mean just replace it with your sitename and you are done.
MySql Tutorial 6 - Using mysql in Batch Mode
shell>mysql <batch-file
If you are running mysql under Windows and have some special characters in the file that cause problems, you can do this:
C:\>mysql -e "sourcebatch-file"
If you need to specify connection parameters on the command line, the command might look like this:
shell>mysql -hhost-uuser-p <batch-file
Enter password:********
MySql Tutorial 5 - Getting Information About Databases and Tables
You have previously seen
SHOW DATABASES, which lists the databases managed by the server. To find out which database is currently selected, use the DATABASE() function:mysql>SELECT DATABASE();
+------------+
| DATABASE() |
+------------+
| menagerie |
+------------+
MySql Tutorial 4 - Retrieving Information from a Table
Contents
MySql Tutorial 3 – Creating and Using a Database
1. Creating and Selecting a Database
2. Creating a Table
3. Loading Data into a Table
Once you know how to enter commands, you are ready to access a database.
Suppose that you have several pets in your home (your menagerie) and you would like to keep track of various types of information about them. You can do so by creating tables to hold your data and loading them with the desired information. Then you can answer different sorts of questions about your animals by retrieving data from the tables. This section shows you how to:
MySql Tutorial 2 - Entering Queries
Here's a simple command that asks the server to tell you its version number and the current date. Type it in as shown here following the
mysql> prompt and press Enter:mysql>SELECT VERSION(), CURRENT_DATE;
+----------------+--------------+
| VERSION() | CURRENT_DATE |
+----------------+--------------+
| 5.0.7-beta-Max | 2005-07-11 |
+----------------+--------------+
1 row in set (0.01 sec)
mysql>