Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

help needed to replace existing website with database driven parts

New Here ,
Sep 10, 2006 Sep 10, 2006
Hello everyone,

I have a website containing roughly about 155 pages.. I made this in Dreamweaver MX over a year ago. It is however growing out of proportions and I wanted to integrate a search function and results page which would be linked to MySql throug PHP.
I bought books and studied hard over the past weeks and got my head around the database and display of the results. Fine there.

Have a look at the site : www.artgalore.co.uk

The idea is that on the "arts&crafts" info pages per medium, at the bottom, I would include a search option which would then offer the customer to locate a course e.g. for woodturning, per country, sorted by type (residential courses or private tutoring). I have worked out the database with several linked tables and my queries are returning properly.

The problem lies in the design.
As you can see the background is a picture of shaded green, the lettering is done with css styles (which needs decluttering as I did this when developing the site as a pure beginner).

I made a test page with the extension .php and imported the css styles, modified the page properties (background), added pictures and tested the page with F12.... only to find that my results page gave the proper answers to the query BUT all the lay-out was gone. No pictures, no background, no styling of the letters.

Is this because of the way I checked the live material ? I also tried to look at my HTML pages as they were, of which I know that they are working fine, but the result was the same.. no lay-out, no CSS.

If this has to do with the F12 checking on the testing server... can someone please help me how to correct this.

I also have some other questions :

1. Do I have to rewrite my complete website on php documents or can I save my html pages with a php extension ?
2. Can I combine html and php pages (not all my pages are connected to the database) on my site ?

I hope someone here can help me urgently as I have spent way too much time on this already and need to get the adjusted site up very soon.

THANK YOU so much for helping.
Chris
TOPICS
Server side applications
366
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 10, 2006 Sep 10, 2006
galorec wrote:
> the result was the same.. no lay-out, no CSS.
>
> If this has to do with the F12 checking on the testing server... can someone
> please help me how to correct this.

CSS works with PHP pages in exactly the same way as ordinary web pages.
If your styles aren't being applied, you have either not uploaded the
stylesheets to your testing server or the link to the stylesheets is wrong.

> 1. Do I have to rewrite my complete website on php documents or can I save my
> html pages with a php extension ?

You can just change the filename extension to .php. Once you have done
so, you can embed PHP code in the page.

> 2. Can I combine html and php pages (not all my pages are connected to the
> database) on my site ?

Yes.

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 10, 2006 Sep 10, 2006
thanks so much David ! You really made my day. I could honestly not face the remake of my site... plenty of other ones to do.

Have a great week,
Chris
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 10, 2006 Sep 10, 2006
> I made a test page with the extension .php and imported the css styles,
> modified the page properties (background), added pictures and tested the
> page
> with F12.... only to find that my results page gave the proper answers to
> the
> query BUT all the lay-out was gone. No pictures, no background, no
> styling of
> the letters.

Are you using root relative links? Are you using temp files to preview with
F12?

> 1. Do I have to rewrite my complete website on php documents or can I
> save my
> html pages with a php extension ?

You only need to have the php extension on pages that actually contain
server scripting.

> 2. Can I combine html and php pages (not all my pages are connected to the
> database) on my site ?

Certainly.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"galorec" <webforumsuser@macromedia.com> wrote in message
news:ee0ehc$lkn$1@forums.macromedia.com...
> Hello everyone,
>
> I have a website containing roughly about 155 pages.. I made this in
> Dreamweaver MX over a year ago. It is however growing out of proportions
> and I
> wanted to integrate a search function and results page which would be
> linked to
> MySql throug PHP.
> I bought books and studied hard over the past weeks and got my head around
> the
> database and display of the results. Fine there.
>
> Have a look at the site : www.artgalore.co.uk
>
> The idea is that on the "arts&crafts" info pages per medium, at the
> bottom, I
> would include a search option which would then offer the customer to
> locate a
> course e.g. for woodturning, per country, sorted by type (residential
> courses
> or private tutoring). I have worked out the database with several linked
> tables
> and my queries are returning properly.
>
> The problem lies in the design.
> As you can see the background is a picture of shaded green, the lettering
> is
> done with css styles (which needs decluttering as I did this when
> developing
> the site as a pure beginner).
>
> I made a test page with the extension .php and imported the css styles,
> modified the page properties (background), added pictures and tested the
> page
> with F12.... only to find that my results page gave the proper answers to
> the
> query BUT all the lay-out was gone. No pictures, no background, no
> styling of
> the letters.
>
> Is this because of the way I checked the live material ? I also tried to
> look
> at my HTML pages as they were, of which I know that they are working fine,
> but
> the result was the same.. no lay-out, no CSS.
>
> If this has to do with the F12 checking on the testing server... can
> someone
> please help me how to correct this.
>
> I also have some other questions :
>
> 1. Do I have to rewrite my complete website on php documents or can I
> save my
> html pages with a php extension ?
> 2. Can I combine html and php pages (not all my pages are connected to the
> database) on my site ?
>
> I hope someone here can help me urgently as I have spent way too much time
> on
> this already and need to get the adjusted site up very soon.
>
> THANK YOU so much for helping.
> Chris
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 10, 2006 Sep 10, 2006
Sorry, David - didn't notice your excellent reply.....

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"David Powers" <david@example.com> wrote in message
news:ee0o4d$3d2$1@forums.macromedia.com...
> galorec wrote:
> > the result was the same.. no lay-out, no CSS.
>>
>> If this has to do with the F12 checking on the testing server... can
>> someone please help me how to correct this.
>
> CSS works with PHP pages in exactly the same way as ordinary web pages. If
> your styles aren't being applied, you have either not uploaded the
> stylesheets to your testing server or the link to the stylesheets is
> wrong.
>
>> 1. Do I have to rewrite my complete website on php documents or can I
>> save my html pages with a php extension ?
>
> You can just change the filename extension to .php. Once you have done so,
> you can embed PHP code in the page.
>
>> 2. Can I combine html and php pages (not all my pages are connected to
>> the database) on my site ?
>
> Yes.
>
> --
> David Powers
> Adobe Community Expert
> Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
> http://foundationphp.com/


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 10, 2006 Sep 10, 2006
LATEST
if your site is growing difficult to manage you may consider a content management system. most have the features you are looking for built in. i personally recommend joomla as an easy to use option. it is based on mysql and php, and allows you to search your entire site, manage users, etc.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines