-
Using table from site to site
I am really quite new at all of this and will keep this as brief as possible. I am working on developing a site that will have a number of sub domains linked to it. Each one of those sub domains will have a table or directory that is exactly the same. Rather than copying it and, when changes occur changing each one
I thought I might somehow be able to pull it from one single location and have it appear in each subdomain thereby only ever having to change one and placing a short line of coding where I need it to appear.
I am not familiar with much when it comes to web design and therefore databases and CSS are a bit foreign but I can follow direction if I knew what would be best. I was thinking javascript but if someone has their javascript turned off on their browser they will not be pulled along for the ride.
Any thoughts?
Of course there are but please share them as simply as possible.
Thanks for your help.
D
-
-
Hope you have fairly good idea about what your are going to develop?
All the decisions are based on what you want to develop.
If you are looking for something very very simple then most probably HTML + some JavaScript code will be enough.
But if you are going for a database driven web site then you must use Server-side coding. In other words u have to use some server-side technologies like PHP, ASP, ASP.NET, ColdFusion, etc. Database operations are handled by server-side code since those operations are very critical for the site.
For the client-side scripting purposes you can use JavaScript. Since it works on client-side it is not going to affect your database related operations.
The database selection must be depends upon the volume of data you are going to handle in your website. If it is very low you can go for some elementary database tools like MS-Access (Windows Platform). If you need a good database without paying anything i would suggest MySQL (It is free and a very good database tool too).
As you mentioned in your posting you can maintain a single database for a set of database if you want to control your database centrally.
It is really difficult to comment on something which you haven't defined correctly. I mean you didn't mentioned the nature of your site.
-
-
If your server is Apache check out SSI
-
-
blm126 - Thank you! I will certainly get to studying it. I have just started up with this host and the server is Linux and it appears that Apache is part of the package.
codexploiter - Here is an example of what I need to achieve. I put up a sample at http://www.a-diversion.com/DUALACTIONCLEANSE/index.html It is the table at the bottom that I want to replicate since each product will have its own domain or, at the very least, will have its own subdomain. That table could change every couple of days so changing over 200 individual sites might be a bit tedious and a complete waste of time if there is a simpler way to accomplish it.
Cheers
-
-
I think this can be implemented using database programming and also you can handle this in an efficient way like i mentioned in my earlier posting. You can keep all these hyperlink information in table(s) based on your requirements and retrieve them according to your needs.
So if you want to make any changes there is no necessity to edit the html/asp page but the database.
In terms of performance it will take some time compared to and HTML page since it is a database operation.
-
-
The simplest way is with an iframe or frameset. Server side, though complicated, is probably a better solution.
-
-
Server side really isn't that complex once you've worked with it a bit. It's new, and confusing at first, but you'll catch on soon.
I'd definitely use server side for this and not frames, for many reasons.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
-
Okay...the consensus appears to be server side so I best get busy and start learning how to do this. If anyone has a link that properly explains this process it would be greatly appreciated.
Many thanks
D
-
-
Server side programming requires having the particular language installed on your server--
PHP is usually on linux, though sometimes on windows. If it isn't on your server, it's possible to install (if you have access to do so).
ASP is windows only (theoretically, there are ways to run it on linux, but it's expensive), so you could go with that, though I'd recommend php over it, even if you are running windows.
SSI is easy, though limited, but would do what you want, assuming you have that available.
Those are probably the likely options.
Anyway, I'd just see if SSI works (google it for info... doesn't seem too complex, though I don't know much about it).
And, if you want more options, or if that doesn't work, you might want to look into PHP.
(*SSI-- see the above links in BLM's post)
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
-
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks