Link to home
Start Free TrialLog in
Avatar of Mark Velasco
Mark VelascoFlag for United States of America

asked on

Connecting the pieces of a wev application

I finished a couple of basic courses dealing with javascript and PHP, though that's really nothing yet.  Going through MySQL essentials and I know understanding and using these scripts wills take time, I learn better visually or just doing it.

What confuses me at this point still is where to save PHP and MySQL.  Let me clarify.

*I create an HTML5 page save it as index,html with a link in the gead section pointing to where I save the CSS file below
*I create a CSS3 page and save it as something like main.css in a separate file in the same folder as the html

This is where I get lost

* I create a PHP page and save it in the same folder as the above two with a PHP extension and point to it in the HTML head?

* I create a database which I'm working on the course, but the PHP will point to the database from the PHP page?

I actually do get that HTML, CSS and Javascript are client side and PHP and MySQL are server side.  I'm using RepairShopr,com as my inspiration and it will take time so I'm patient with the process of crawling before I walk.

I really appreciate the time to help me get through the basics. Only so much you can learn from watching videos if you start from the wrong direction.
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mark Velasco

ASKER

OK,

so instead of making an HTML page I create a PHP page with html in it as save it as a PHP file.  The CSS will still go in the HEAD section of the HTML part of the PHP page pointing to the CSS location.

On the PHP page before the HTML code is where I create PHP instructions as mentioned above to connect to MySQL server.

One on the Lynda.com PHP essential courses said to put PHP at the bottom of the HTML before closing out the body tag.  But they didn't say anything about the database connection with PHP going at the top so thanks for that info.

instead of having an index.html file pointing to my website, it will be MyPHP.PHP Right?  Where does this get saved? in the root where the index.html file usually goes?

I'm using Godaddy FYI.  So if I understand from something I watched, the PHP and HTML sort of weave in and out of each other as needed on the same page, the MyPHP.PHP file, the CSS still has its own file.

I'm really sorry if i seem redundant, it just seems getting started will be the hard part as these pieces need to go in very specific places and I really want to make sure I understand the foundation.  The courses are helpful but kind of explain things in a vacuum and leave out details like where to save, what extension to use so I appreciate the info.

If I'm still not getting something, I hope to hear back from you guys, heck even if I'm on the right track please let me know.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hey Guys,

I appreciate all the help.  I'm going to give all the resources you provided as a way to help progress things.  Sorry if I seem clueless on these topics but I've spent my time in break/fix and made a decent living at that, so coding is something I never really touched but very interested in learning.

But my brain works funny, I need things in logical order, step by step especially with something as diverse and new to me as coding/scripting.  There's so much info out on the web it's overload.

At least here I know I'll get pointed in the right direction with people who know their stuff.  Thanks again
These were all great tips, advice and helpful.  I spread the points as equally as I could for the time and patience these experts gave me.  It's too bad I had to choose one as the "Best Solution" because each provided valuable info and resources, so not a knock on the others.

It was nice to have a place to ask questions from experts and not made to feel dumb, a nuisance or not even get an answer.  It's a credit to these members willing to share the expertise whether it's a beginner (like myself) or a veteran having a complex issue.