Move MYSQL database from one PC to another (Windows 7)

Step 1: Find where the mySQL data exist. Look for the my.ini file and inside it find for the datadir path. In Windows 7 you must check the directory C:\ProgramData\MySQL\MySQL Server 5.5\data) 

Step 2: Copy all the folders and ib_data files in order to transfer to your new mySQL installation. DO NOT COPY the IB_LOGFILEx files.

Step 3: Go to target computer, stop the mySQL Service 

Step 4:  In the target computer find the location of the mySQL data. Backup the directory of the mySQL Data and then paste the data of the Step1.

Step 5: Restart mySQL Service

Use base_url() function inside a jQuery script

1. In the template.php view or in your current view define a global variable in script:

<script type="text/javascript">

CI_ROOT = "<?php echo(base_url());?>";

</script>

With base_url you get the root url of your website.

2. Use the CI_ROOT in any js file to get the root url.
For example, in a jquery - ajax call:
...
$.post(CI_ROOT + 'bookings/updBooking_ByAjax', data, function(res){
alert(res);
...

MySQL - How to create a calendar table

1. Create the table
CREATE TABLE `calendar` (
`cdate` date NOT NULL DEFAULT '2000-01-01',
`cday` int(2) unsigned NOT NULL DEFAULT '1',
`cmonth` int(2) unsigned NOT NULL DEFAULT '1',
`cyear` int(4) unsigned NOT NULL DEFAULT '2000',
PRIMARY KEY (`cdate`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


2. Create an auxiliary table ints (0-9)
CREATE TABLE ints (i INTEGER);
INSERT INTO ints VALUES (0), (1), (2), (3), (4), (5), (6), (7), (8), (9);

3. Fill your calendar with dates from 01-01-2005 until 31-12-2030

INSERT INTO calendar (cdate, cday, cmonth, cyear)
SELECT cal.date as cdate, DAY(cal.date) as cday, MONTH(cal.date) as cmonth, YEAR(cal.date) as cyear
FROM (
SELECT '2005-01-01' + INTERVAL d.i*1000 + c.i* 100 + a.i * 10 + b.i DAY as date
FROM ints a JOIN ints b JOIN ints c JOIN ints d
ORDER BY d.i*1000 + c.i*100 + a.i*10 + b.i) cal
WHERE cal.date BETWEEN '2005-01-01' AND '2030-12-31'

Note: The above fourth join generates up to 10000 dates. In case you need more dates, add extra joints of the table 'ints'

INSERT INTO WHERE NOT EXISTS

If you want to insert values into a MySQL table, but only if those values don’t already exist, and you don’t want to use a primary key on the table (and deal with the resulting error suppression ), here’s an elegant one-query method of doing so.

INSERT INTO [table name] SELECT '[value1]', '[value2]' FROM DUAL
WHERE NOT EXISTS(
SELECT [column1] FROM [same table name]
WHERE [column1]='[value1]'
AND [column2]='[value2]' LIMIT 1)

OK, technically it’s not a single query.
But it is only one round trip to the MySQL server.

ALIANTHOS BEACH HOTEL IN PLAKIAS, CRETE



WELCOME TO ALIANTHOS BEACH HOTEL IN PLAKIAS, CRETE
Welcome to Alianthos Beach Hotel, our small charming family-run hotel that is located in the traditional village of Plakias, and enjoy the sunny and beautiful Crete, an island of unique and unforgettable experiences.

Our hotel has been a favourite for tourists for more than 25 years, offering a cosy, relaxing and truly memorable holiday and perfectly combines the traditional Cretan style with modern comfort and convenience.

The hotel is famous for its ideal position, on the sea-front road of the village overlooking the crystal waters of the amazing sandy beach of Plakias, the breath-taking view to the Plakias bay and the Livyan Sea, the hospitality and the high-quality accommodation services. All of them in combination to the reasonable prices, making our hotel very attractive to our guests.

We invite you in our hotel to experience the cretan hospitality, to share the culture and the history of our place, to explore the friendly villages of south Crete, to enjoy the beautiful beaches, the bustling cities with nightlife and shopping and the holiday activities such as sea sports, trekking, countryside and mountain walks.


Technologies: HTML, CSS, PHP, mySQL

ANTHOS APARTMENTS IN PLAKIAS, CRETE



Welcome to Anthos Apartments, an amazing small group of apartments that is located in Plakias, a picturesque traditional village in the southern coast of Crete.

Our family-run apartments offer charming self-catering accommodation for your holidays in Crete in a cosy, comfortable and fully-equipped environment. The swimming pool, the big balconies and the amazing garden with flowers and trees can become an ideal solution for quiet and relaxing holidays away from the noise of the city and a guaranty for unforgettable holidays.

Anthos apartments are located on the top of a small hill, in a walking distance (500 meters) away from the beautiful sandy beach of Plakias and offer to our guests an amazing sea-view to the Plakias Bay, the villages and the hills around.

We invite you in our apartments to experience the Cretan hospitality, to share the culture and the history of our place, to explore the friendly villages of south Crete, to enjoy the beautiful beaches, the bustling cities with nightlife and shopping and the holiday activities such as sea sports, trekking, countryside and mountain walks.

Technologies: HTML, CSS, PHP, mySQL

ATHENS HAPPY TRAIN


Athens Sightseeing with the Happy Train

The Happy Train is a toy-like street train that starts its tour from the Constitution Square and follows an amazing route through the historical center of the city, the old neightbourhoods and the hill of Acropolis.

We invite you to explore the unique sights of Acropolis, Plaka, Temple of Zeus, Thisseon, Ancient and Roman Market, Zappeion, Panathinaiko Stadium, Theatre of Herodes Atticus, Hadrian Arch, Monastiraki Square, New Acropolis Museum and others in our 60-minute duration sightseeing tour. You can hop-on and hop -off as much as you like at any of the stops on the route, and have a wonderful view of the city history and modern life in your hands.

Athens Sightseeing by Happy Train is one of the fun things to do in the city, especially when you need a rest from the hot midday sun. It is very popular with kids and families and an ideal choice for tourists that can easily spend a day hopping on and off to visit some of the city’s main attractions.

Technologies: HTML, CSS, Javascript, PHP.

Tutorial for User Login and User Register page with php and mySQL

http://www.tutorialized.com/view/tutorial/PHP-Login-System-Part-1/42004

MANOLIS APARTMENTS FOR HOLIDAYS IN PLAKIAS, CRETE


MANOLIS APARTMENTS FOR HOLIDAYS IN PLAKIAS, CRETE
Manolis Apartments is a family company that offers a cosy, fresh, fully-equipped environment just only 100m from the beach in Plakias, Crete and can become an ideal solution for quiet and relaxing holidays away from the noise of the city and a guaranty for unforgettable holidays.


Technologies: HTML, CSS, Javascript, PHP.

popup div in the center of the page

CSS LightView Style popup
http://www.sohtanaka.com/web-design/css-lightview-style-popup/

HORSEBACK RIDING IN PLAKIAS, CRETE


CRETE HORSE RIDING IN PLAKIAS CRETE
A tourist and sports web site that offers horse riding and riding lessons in the amazing beaches and countryside in the area of Plakias, in south Crete.


Technologies: HTML, CSS, Javascript, PHP.

PHP Error: cannot modify header information headers already sent

Text editors sometimes insert a UTF-8 byte order mark at the top of a file. In this case, the error message will usually say that "output started" at line 1 of some file. To fix this, configure your text editor to save the file without a byte order mark.

For example, in Macromedia Dreamweaver go to
Modify > Page Properties > Title/Encoding and uncheck Include Unicode Signature

Insert "zero" values in AUTONUMBER field in mySQL

Στη mySQL όταν θέλει κανείς να εισάγει ένα dump script και έχει πίνακες με τιμές 0 σε πεδία που είναι auto_number, τότε διαπιστώνει κανείς ότι δεν δέχεται την τιμή 0,
βάζει αυτόματα - κατά την εκτέλεση του dump - αντί για 0 το 1 και στη συνέχεια χτυπούν τα PKs.

Αυτό που μπορεί να κάνει κανείς είναι να «πειράξει» το sql-mode της mySQL.

Από το αρχείο my.ini (windows) ή my.cnf (linux) προσθέτοντας
στην παράμετρο sql-mode, την τιμή NO_AUTO_VALUE_ON_ZERO ( η τιμή της μεταβλητής είναι μια λίστα από παραμέτρους
της mySQL που η παρουσία τους τις ενεργοποιεί)
όπως φαίνεται παρακάτω:

sql-mode="...,NO_AUTO_VALUE_ON_ZERO"

Κάνεις restart την mySQL, τρέχεις το dump και εφόσον όλα είναι ΟΚ μπορείς να επαναφέρεις την παράμετρο sql-mode
στην αρχική της μορφή.

How to protect your email from span in a website

EMAIL OBFUSCATOR
http://www.jottings.com/obfuscator/

Search Engine Rating Factors

  • Keyword Use in Title Tag
  • Anchor Text of Inbound Link
  • Global Link Popularity of Site
  • Age of Site
  • Link Popularity within the Site'
  • Topical Relevance of Inbound Link
  • Link Popularity of Site in Topic
  • Keyword Use in Body Text
  • Global Link Popularity of Linkin
  • Topical Relationship of Linking

Click SEOMoz to view the entire article.

ELECTRONIC DOCUMENTS MANAGEMENT SYSTEM



ELECTRONIC DOCUMENTS MANAGEMENT SYSTEM

It fulfills all the requirements for document management of a large company or organization. It supports multi-users and multi-departments simultaneously).


ΗΛΕΚΤΡΟΝΙΚΟ ΠΡΩΤΟΚΟΛΛΟ ΕΓΓΡΑΦΩΝ.

Υποστηρίζει πλήρως τη λειτουργικότητα ενός πρωτοκόλλου με τη διαχείριση ηλεκτρονικών εγγράφων (εισαγωγή με μοναδικό αριθμό πρωτοκόλλου, επεξεργασία και ορισμός των χαρακτηριστικών κάθε εγγράφου, υποστήριξη συνημμένων αρχείων κ.λπ.), την αρχειοθέτηση και τους μηχανισμούς αναζήτησης βάσει κριτηριών που έχει ορίσει ο χρήστης. Υποστηρίζει πολλαπλό αριθμό χρηστών και πολλαπλό αριθμό διαφορετικών Τμημάτων-Υπηρεσιών.


Technologies: HTML, CSS, Javascript, Ajax, Java, Struts and mySQL.

A SAFETY MANAGEMENT SYSTEM FOR SMALL AND MID ENTERPRICES



A web application for safety management and analyris for SMEs.

Technologies: HTML, CSS, Javascript, JSP, MySQL

LOANS COLLECTION WEB APPLICATION


LOANS COLLECTION MANAGEMENT SYSTEM

Loans Collection Management Web Application for Banks or Insurances

ΔΙΑΔΙΚΤΥΑΚΗ ΕΦΑΡΜΟΓΗ ΔΙΑΧΕΙΡΙΣΗΣ ΚΑΘΥΣΤΕΡΟΥΜΕΝΩΝ ΠΛΗΡΩΜΩΝ

Σύστημα παρακολούθησης και διαχείρισης καθυστερούμενων πληρωμών (π.χ. πιστοδοτήσεων δανείων, δόσεων αγορών κ.λπ.), βασισμένο σε πλήρως παραμετροποιημένες πολιτικές
διαχείρισης των καθυστερούμενων πληρωμών και πολιτικές ανάθεσης των πληρωμών στους
κατάλληλους υπαλλήλους.
Υποστηρίζει μεγάλο αριθμό χρηστών.




Technologies: HTML, CSS, Javascript, Java, JSP, mySQL, Aythentication and authorization mechanisms.

CRETE HOLIDAY VILLAS



A new website about Holidays in Crete, using HTML, CSS, PHP and mySQL.



Click Crete Villas to view the website