Not sure how to ask this question about tables and making changes

They have: 3 posts

Joined: Jul 2004

Sorry for the bad title i know it wont help much when people are searching the forums.

But my question is i was wondering if there is a way to change all my tables on my site by making a single change. I have a site that is about 30 pages and i need to change a few categories but i dont want to go through every page to make the update. Im kinda new to html and im using dreamweaver, i heard I should learn php and mysql but i really do not know html to greatly yet. I would appreciate it if anyone can help me out.Thanks

Busy's picture

He has: 6,151 posts

Joined: May 2001

You need something that uses tab browsing (i use editpad), then just use search and replace.
Only problem is or can be is the state of your tables, or rather how complex they are and how different your changes are. If you just changing cellpadding or something the above is no big deal, if your adding rowspan, extra cells here and there then it can become a problem.

Copy and paste is pretty foolproof.

30 pages isn't much, I once edited 1800 html pages in notepad - wouldn't do it again.

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

If you have a shell/command line interface -- preferably on a *nix box -- you can do recursive search and replace with the various regex tools available. Smiling

You could set up your site to use SSI or PHP to include other common files (sections like header, menu) allowing you to edit any of them once with global effect. There are various degrees to which you use PHP with this; it could be simple include()s, or it could use a template engine, or a full-blown content management system. Wink

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.