Hi, I'm Ahmad. I make websites with Joomla!

Welcome, Feel free to navigate my website and I will be glad to hear from you.

Download Calendar Stamp 1.5

Recommended Book

0523_Mastering_Joomla_1

What's going on twitter

  • I took it and so should you—The Survey for People Who Make Websites 2011! http://t.co/xG9Gv0i5 via @alistapart
  • why doesn't #facebook push #html5 notifications instead of #javascript ? seriously?
  • Any one knows where to get one of those standing desks in Egypt? http://t.co/e1Enk4bX
27
Feb
2009
Updating MySQL Table from another table PDF Print E-mail
MySQL Logo

During the migration of my 3 years old Joomla!1.0 website to 1.5 something weird happened just before launcing the new site. All the data on the column "fulltext" from the table "jos_content" was lost and I couldn't identify the cause. Everything was ready and I discovered accidentaly.

Note to self -> Backup Frequently!!

To fix that I exported the "id" and "fulltext" from my old Joomla!1.0 from the database, created a new table in the new Jooml1.5 with the data from the old site and updated the data between the 2 tables. using this:

UPDATE jos_content a SET `fulltext` = (SELECT `fulltext` from jos_content_old b where a.id = b.id);

And within few seconds the table was updated :) That statement saved alot of work! Note that the a and b used just to create Alias for easy reference.

I hope I'll be writing more about that migratin in the next few days. It took me sometime cause the site was old and alot of extensions and addons needed to be upgraded. I hope you find my experience useful!

Have a nice day